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

BodyGyro`s cframe Property?

Asked by 11 years ago
1game.Players.PlayerAdded:connect(function(plr)
2    repeat wait() until plr.Character
3    while wait() do
4        script.Parent.BodyGyro.cframe=plr.Character.Torso.CFrame
5    end
6end)

This script will not work. :(

1 answer

Log in to vote
-1
Answered by 11 years ago

Well "cframe" needs to be capitalized.

1ent.BodyGyro.CFrame=plr.Cha
0
@Grenaderade, "cframe" is the property for BodyGyros. Check the wiki 73epic311 13 — 11y
0
Correct, the BodyMover objects name their properties different from normal objects. BodyGyro.CFrame would be wrong, just like BodyVelocity.Velocity would be. About your script, could the "repeat until plr.Character" line be replaced by a WaitForChild() method? I haven't used repeat much personally... deaththerapy 60 — 11y
0
Well, sorry, I don't know much about BodyGyros and scripting. Grenaderade 525 — 11y
Ad

Answer this question