Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local UIS = game:GetService("UserInputService")
- local mouse = player:GetMouse()
- local char = player.Character
- local stabilize = Instance.new("BodyGyro", char.HumanoidRootPart)
- stabilize.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
- stabilize.P = 100000
- local enabled = false
- mouse.KeyDown:connect(function(key) if key == "r" then enabled = not enabled end end)
- while wait() do
- if enabled == true then
- stabilize.CFrame = CFrame.new(char.HumanoidRootPart.CFrame.p, mouse.Hit.p)
- stabilize.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
- else
- stabilize.MaxTorque = Vector3.new(0, 0, 0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement