local plr = game.Players.LocalPlayer
local char = plr.CharacterAdded:Wait()
local tool = script.Parent
local ready = true
tool.Equipped:Connect(function(mouse)
mouse.Button1Down:Connect(function()
if ready == true then
ready = false
print("hi")
local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit * 300)
local part, hitPosition = workspace:FindPartOnRay(ray, char)
local bodyGyro = Instance.new("BodyGyro", char.Torso)
bodyGyro.CFrame = CFrame.new(bodygyro.Parent.Position, hitposition)
bodyGyro.MaxTorque = Vector3.new(8000000000, 0, 8000000000)
wait(3)
end
ready = true
end)
end)
COMMUNITY QUESTION
why isn't my bodygyro script not rotating my character?
1 answer
The y axis in maxforce was 0, i forgot that the character rotates on the y axis, haha
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
it does rotate, but very slowly, and it keeps rotating. it doesnt stop when it rotates towards the object