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

BodyGyro`s cframe Property?

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

Well "cframe" needs to be capitalized.

ent.BodyGyro.CFrame=plr.Cha

3 comments

0

@Grenaderade, "cframe" is the property for BodyGyros. Check the wiki

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...

0

Well, sorry, I don't know much about BodyGyros and scripting.

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