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

Torso is not a valid member of Model? [SOLVED]

I want to print() a player's current Position, but I don't know how. I tried printing the position of the player's Torso with print(game.Players.LocalPlayer.Character.Torso.Position) and print(game.Players.LocalPlayer.Character:findFirstChild('Torso')) but it either returns a error message that Torso is not a valid member of Model, or it prints out: nil.

I'm a begginer Lua scripter, so please excuse my lack of knowledge.

1 comment

0

This could be because you're using r15, which means there are more than one part that makes up the torso. The fix this, try using "HumanoidRootPart"

1 answer

also a beginner here, but it might be because you're using r15. in that case, print your head instead

2 comments

0

To add on: Yes this is true, "Torso" doesn't exist in R15, but LowerTorso and UpperTorso do

0

Thank you, using print(game.Players.LocalPlayer.Character.LowerTorso.Position) works. :)

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