I would like to be able to make my gui fade out, to achive a waking up effect.
here is my script so far,
local IntroLabel = script.Parent
local Frame = script.Parent.Parent
function SoundEffect()
local Sound = Instance.new("Sound")
Sound.Name = "TextSound"
Sound.SoundId = "http://roblox.com/asset/?id=3333976425"
Sound.PlaybackSpeed = 1
Sound.Volume = 1
Sound:Play()
coroutine.resume(coroutine.create(function()
wait(1)
Sound.Destroy()
end))
end
function setText(word)
Text = word
for i = 1, #Text do
IntroLabel.Text = string.sub(Text, 1, i)
SoundEffect()
IntroLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
wait(0.04)
end
end
wait(5)
setText("".. game.Players.LocalPlayer.Name .. ". Its time to wake up.")
wait(3)
setText("".. game.Players.LocalPlayer.Name .. "?")
wait(3)
setText("".. game.Players.LocalPlayer.Name .. ". Wake up!")
wait(3)
setText("Oh god, WAKE UP.")
wait(3)
after the wait(3) i’d like the fade effect then. Any help appreciated.