Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function killfunction(part)
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v:IsA("Motor6D") then
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = v.Part0
- a2.Parent = v.Part1
- Socket.Parent = v.Parent
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.CFrame = v.C0
- a2.CFrame = v.C1
- Socket.LimitsEnabled = true
- v:Destroy()
- end
- end
- end
- owner.Character.Humanoid.RequiresNeck = false
- killfunction()
- local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
- owner.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Physics)
- for i,v in pairs(owner.Character:GetDescendants()) do
- pcall(function()
- v.CanCollide = false
- end)
- end
- pcall(function()
- workspace.CurrentCamera.CameraSubject = owner.Character.Torso
- workspace.CurrentCamera.CameraSubject = owner.Character.UpperTorso
- end)
- local Mouse = owner:GetMouse()
- function KeyDown(key)
- key = key:lower()
- if key:byte() == 32 then
- local Up = Instance.new("BodyVelocity",owner.Character.HumanoidRootPart)
- Up.MaxForce = Vector3.new(0,1000000,0)
- Up.Velocity = Vector3.new(0,25,0)
- wait(0.25)
- Up:Destroy()
- end
- end
- Mouse.KeyDown:Connect(KeyDown)
- ]],owner.PlayerGui))
- local Velocity = Instance.new("BodyAngularVelocity")
- Velocity.Parent = owner.Character.HumanoidRootPart
- while true do
- wait()
- Velocity.AngularVelocity = Vector3.new(owner.Character.Humanoid.MoveDirection.z * 10,0,owner.Character.Humanoid.MoveDirection.x * -10)
- Velocity.MaxTorque = Vector3.new(5000,5000,5000)
- if owner.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then
- Velocity.MaxTorque = Vector3.new(0,0,0)
- end
- end
Add Comment
Please, Sign In to add comment