Advertisement
Sungmingamerpro13

SleepingScript

Dec 16th, 2022
1,071
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.49 KB | None | 0 0
  1. local SleepingEvent = game.ReplicatedStorage.SleepingEvent
  2.  
  3. local UpFrame = script.Parent.UpFrame
  4. local DownFrame = script.Parent.DownFrame
  5.  
  6. SleepingEvent.OnClientEvent:Connect(function()
  7.     UpFrame.Position = UDim2.new(0,0,-1,0)
  8.     DownFrame.Position = UDim2.new(0,0,1,0)
  9.     wait(3)
  10.     UpFrame:TweenPosition(UDim2.new(0,0,0,0),.1)
  11.     DownFrame:TweenPosition(UDim2.new(0,0,0.5,0),.1)
  12.     wait(3)
  13.     UpFrame:TweenPosition(UDim2.new(0,0,-1,0),.1)
  14.     DownFrame:TweenPosition(UDim2.new(0,0,1,0),.1)
  15. end)
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement