Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local SleepEvent = ReplicatedStorage:WaitForChild("SleepEvent")
- UpFrame = script.Parent.UpFrame
- DownFrame = script.Parent.DownFrame
- SleepEvent.OnClientEvent:Connect(function()
- UpFrame:TweenPosition(UDim2.new(0,0,0,0),.1)
- DownFrame:TweenPosition(UDim2.new(0,0,0.5,0),.1)
- wait(5)
- UpFrame:TweenPosition(UDim2.new(0,0,-1,0),.1)
- DownFrame:TweenPosition(UDim2.new(0,0,1,0),.1)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement