So I was making jojo game and I got bodygyro bug....can I get help?
Asked by
5 years ago Edited 5 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.
01 | local bodypos = Instance.new( "BodyPosition" ,rot) |
03 | bodypos.MaxForce = Vector 3. new( 8000 , 8000 , 8000 ) |
07 | local bodygyro = Instance.new( "BodyGyro" ,rot) |
09 | bodygyro.MaxTorque = Vector 3. new( 0 , 0 , 0 ) |
11 | bodygyro.Name = "BodyG" |
13 | Run.Heartbeat:Connect( function () |
14 | local x,y,z = HRP.CFrame:ToEulerAnglesXYZ() |
15 | bodypos.Position = (Character:FindFirstChild( "HumanoidRootPart" ).CFrame * CFrame.new( 3 , 2 , 2 )).p |
16 | bodygyro.CFrame = Character.HumanoidRootPart.CFrame * CFrame.Angles( 0 , 0 , 0 ) |