Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

So I was making jojo game and I got bodygyro bug....can I get help?

Asked by 4 years ago
Edited 4 years ago

Yes,this is again a jojo game thread,I'm looking for a fix that I can't find. Bodyposition is getting updated so it's fine and all but problem is bodygyro Bodygyro doesn't want to rotate with player at all,no errors in the console.

local bodypos = Instance.new("BodyPosition",rot)
bodypos.D = 1000
bodypos.MaxForce = Vector3.new(8000, 8000, 8000)
bodypos.P = 100000
bodypos.Name = "lol"

local bodygyro = Instance.new("BodyGyro",rot)
bodygyro.D = 0
bodygyro.MaxTorque = Vector3.new(0, 0, 0)
bodygyro.P = 30000
bodygyro.Name = "BodyG"

Run.Heartbeat:Connect(function()
    local x,y,z = HRP.CFrame:ToEulerAnglesXYZ()
    bodypos.Position = (Character:FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(3,2,2)).p
    bodygyro.CFrame = Character.HumanoidRootPart.CFrame * CFrame.Angles(0,0,0)
end)

Answer this question