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

How can I post my own CFrames in studio?

Asked by 1 year ago

I'm relatively new to scripting and know how to print a part's CFrames but when I try to do the same for the local players CFrames it doesnt seem to work

ive tried things like

local Char = game.Workspace:WaitForChild("NarceIine") pls = "NarceIine"

while true do wait(3) print(pls.CFrame) end

and it didnt work, I don't think this information will help me in any way, I'm just curious

thanks in advance

1 answer

Log in to vote
0
Answered by 1 year ago

Player models(characters) are parented in workspace as a model. These models contain the parts of the characters, such as their limbs, joints, accessories, etc. When you are looking for a "general" position or CFrame of a player, its best to refer to their HumanoidRootPart, an invisible part centered near their torso that controls their movement.

local Char = game.Workspace:WaitForChild("Narceline")
print(Char:WaitForChild("HumanoidRootPart").CFrame
Ad

Answer this question