Sungmingamerpro13

TransitionScript(STORY GAME)

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