Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent.OnServerEvent:Connect(function(Player)
- local A = Player.Character.HumanoidRootPart.CFrame
- for i = 1,60 do
- local B = game.ReplicatedStorage.Stair:Clone()
- local C = A * CFrame.new(0,-3.684+(0.5*i),-1.7*i)
- B.Parent = workspace
- B.CFrame = C
- game.Debris:AddItem(B,10)
- game:GetService('TweenService'):Create(B,TweenInfo.new(.1,Enum.EasingStyle.Elastic,Enum.EasingDirection.InOut),{
- Transparency = 0.5
- }):Play()
- delay(9.5,function()
- game:GetService('TweenService'):Create(B,TweenInfo.new(.4,Enum.EasingStyle.Cubic,Enum.EasingDirection.In),{
- Transparency = 1
- }):Play()
- end)
- wait()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement