Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

?Gyro doesn't work on test dummy?

local gyro = Instance.new("BodyGyro",hum.Parent.Torso)

gyro.maxTorque = Vector3.new(0,math.huge,0);
gyro.P = 10000
gyro.D = 250
gyro.cframe = part.CFrame

while true do
gyro.cframe = part.CFrame
wait()
end

end
ThrowKnife(script.Parent,game.Workspace.Part1)

Is it the script or is it the test dummy?

1 answer

✓ Accepted answer
local gyro = Instance.new("BodyGyro",hum.Parent.Torso)

gyro.maxTorque = Vector3.new(0,math.huge,0);
gyro.P = 10000
gyro.D = 250
gyro.cframe = CFrame.new(gyro.Parent.Position, part.Position)

while true do
gyro.cframe =  CFrame.new(gyro.Parent.Position, part.Position)
wait()
end

end
ThrowKnife(script.Parent,game.Workspace.Part1)

Explanation:

gyro.cframe requires 2 arguements, the current position its looking at, and the new position you want it to look at. in other words you need 1st position(start position) 2nd position(end position) and make sure the dummy is unachored

2 comments

0

Thank you,

0

I totally forgot how to use BodyGyro lol

This discussion is preserved as it was. New answers, comments, and votes are closed.