Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Humanoid
- repeat
- RootPart.CFrame = getgenv().OldPos * CFrame.new(0, .5, 0)
- Character:SetPrimaryPartCFrame(getgenv().OldPos * CFrame.new(0, .5, 0))
- Humanoid:ChangeState("GettingUp")
- table.foreach(Character:GetChildren(), function(_, x)
- if x:IsA("BasePart") then
- x.Velocity, x.RotVelocity = Vector3.new(), Vector3.new()
- end
- end)
- task.wait()
- until (RootPart.Position - getgenv().OldPos.p).Magnitude < 25
- workspace.FallenPartsDestroyHeight = getgenv().FPDH
- else
- return Message("Error Occurred", "Random error", 5)
- end
- end
- TextButton.MouseButton1Click:Connect(function()
- local targetName = TextBox.Text
- local targetPlayer = GetPlayer(targetName)
- if targetPlayer then
- SkidFling(targetPlayer)
- else
- Message("Error Occurred", "Invalid username", 5)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement