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 9 years ago
game.Players.PlayerAdded:connect(function(plr)
    repeat wait() until plr.Character
    while wait() do
        script.Parent.BodyGyro.cframe=plr.Character.Torso.CFrame
    end
end)

This script will not work. :(

1 answer

Log in to vote
-1
Answered by 9 years ago

Well "cframe" needs to be capitalized.

ent.BodyGyro.CFrame=plr.Cha
0
@Grenaderade, "cframe" is the property for BodyGyros. Check the wiki 73epic311 13 — 9y
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 — 9y
0
Well, sorry, I don't know much about BodyGyros and scripting. Grenaderade 525 — 9y
Ad

Answer this question