Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TweenService = game:GetService("TweenService")
- local player = game.Players.LocalPlayer
- local TransitionEvent = game.ReplicatedStorage.TransitionEvent
- local ScreenGui = player.PlayerGui.ScreenGui
- local Transition = ScreenGui.Transition
- TransitionEvent.OnClientEvent:Connect(function(timer)
- local goal_start = {}
- local goal_end = {}
- goal_start.BackgroundTransparency = 0
- goal_end.BackgroundTransparency = 1
- local tweenInfo = TweenInfo.new(2) -- add N time
- local tween_start = TweenService:Create(Transition, tweenInfo, goal_start)
- local tween_end = TweenService:Create(Transition, tweenInfo, goal_end)
- tween_start:Play()
- wait(7)
- tween_end:Play()
- end)
Add Comment
Please, Sign In to add comment