Sungmingamerpro13

Story Game TransitionScript Main New

Dec 21st, 2022
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.08 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.DialogueGui
  5. local Transition = ScreenGui.TransitionFrame
  6. local TransitionLogo = Transition.TransitionLogo
  7.  
  8. TransitionEvent.OnClientEvent:Connect(function(timer)
  9.     local goal_start = {}
  10.     local goal_start2 = {}
  11.     local goal_end = {}
  12.     local goal_end2 = {}
  13.     goal_start.BackgroundTransparency = 0
  14.     goal_end.BackgroundTransparency = 1
  15.     goal_start2.ImageTransparency = 0
  16.     goal_end2.ImageTransparency = 1
  17.     local tweenInfo = TweenInfo.new(2) -- add N time
  18.     local tweenInfo2 = TweenInfo.new(2)
  19.     local tween_start = TweenService:Create(Transition, tweenInfo, goal_start)
  20.     local tween_start2 = TweenService:Create(TransitionLogo, tweenInfo2, goal_start2)
  21.     local tween_end = TweenService:Create(Transition, tweenInfo, goal_end)
  22.     local tween_end2 = TweenService:Create(TransitionLogo, tweenInfo2, goal_end2)
  23.     tween_start:Play()
  24.     tween_start2:Play()
  25.     wait(7)
  26.     tween_end:Play()
  27.     tween_end2:Play()
  28. end)
Tags: Roblox
Add Comment
Please, Sign In to add comment