Advertisement
Sungmingamerpro13

New Transition

Jan 1st, 2023
1,579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.42 KB | Source Code | 0 0
  1. local TransitionEvent = game.ReplicatedStorage.TransitionEvent
  2.  
  3. local player = game.Players.LocalPlayer
  4. local Transition = player.PlayerGui:WaitForChild("DialogueSystem").TransitionFrame
  5.  
  6. TransitionEvent.OnClientEvent:Connect(function()
  7.     Transition.Position = UDim2.new(-1,0,0,0)
  8.     wait(3)
  9.     Transition:TweenPosition(UDim2.new(0,0,0,0),.1)
  10.     wait(3)
  11.     Transition:TweenPosition(UDim2.new(-1,0,0,0),.1)
  12. end)
  13.  
Tags: Roblox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement