Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variables
- DefaultMessageDelayTime = 4
- LetterInvertal = 0.05
- MessageWaitSigns = {',', '?', '.'}
- MessageWaitSignDelay = 1
- MessageCutsceneValue = game.ReplicatedStorage.CutsceneEvent.MessageCutscene
- SkipButtonValue = game.ReplicatedStorage.CutsceneEvent.SkipButtonValue
- EndCutsceneValue = game.ReplicatedStorage.CutsceneEvent.EndCutsceneValue
- TVWindowValue = game.ReplicatedStorage.CutsceneEvent.TVWindowValue
- function SetMessages(Text, MessageDelayTime)
- -- This makes the message appear like a typewriter
- for i = 1,#Text,1 do
- MessageCutsceneValue.Value = string.sub(Text,1,i)
- for _, L in pairs(MessageWaitSigns) do
- if string.sub(Text,i,i) == L then
- wait(MessageWaitSignDelay)
- end
- end
- wait(LetterInvertal)
- end
- if tonumber(MessageDelayTime) ~= nil then
- wait(MessageDelayTime)
- else
- wait(DefaultMessageDelayTime)
- end
- MessageCutsceneValue.Value = 'None'
- return true
- end
- function TVIcon(ID)
- game.Workspace.TV.TVWindow.SurfaceGui.Icon.Image = "rbxassetid://"..ID
- end
- SkipButtonValue.Value = true
- for i = 15,0,-1 do
- TVWindowValue.Value = "Live In ("..i..")"
- wait(1)
- if EndCutsceneValue.Value == true then
- break
- elseif i == 0 and EndCutsceneValue.Value == false then
- print("Start")
- end
- end
- TVWindowValue.Value = "None"
- repeat wait(0.1) until EndCutsceneValue.Value == true or EndCutsceneValue.Value == false
- if EndCutsceneValue.Value == true then
- print("Skip")
- wait(5)
- SetMessages("Let's Go")
- else
- print("Not Skip")
- wait(5)
- TVIcon("138447008950302")
- SetMessages("Breaking News: Monsters are attacking Roblox")
- wait(5)
- SetMessages("Breaking News: All windows and doors are closed.")
- wait(5)
- SetMessages("Let's Go")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement