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

?Gyro doesn't work on test dummy?

Asked by 9 years ago
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

Log in to vote
0
Answered by 9 years ago
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

0
Thank you, drslicendice 27 — 9y
0
I totally forgot how to use BodyGyro lol drslicendice 27 — 9y
Ad

Answer this question