Sungmingamerpro13

Transition Story Game(Main Game)

Nov 28th, 2022
191
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. local TweenService = game:GetService("TweenService")
  2. local player = game.Players.LocalPlayer
  3. local TransitionEvent = game.ReplicatedStorage.TransitionEvent
  4. local ScreenGui = player.PlayerGui.ScreenGui
  5. local Transition = ScreenGui.Transition
  6.  
  7. TransitionEvent.OnClientEvent:Connect(function(timer)
  8. local goal_start = {}
  9. local goal_end = {}
  10. goal_start.BackgroundTransparency = 0
  11. goal_end.BackgroundTransparency = 1
  12. local tweenInfo = TweenInfo.new(2) -- add N time
  13. local tween_start = TweenService:Create(Transition, tweenInfo, goal_start)
  14. local tween_end = TweenService:Create(Transition, tweenInfo, goal_end)
  15. tween_start:Play()
  16. wait(7)
  17. tween_end:Play()
  18. end)
Comments
Add Comment
Please, Sign In to add comment