Advertisement
Sungmingamerpro13

SleepingScript v2(STORY GAME)

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