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

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

Asked by 6 years ago
Edited 6 years ago

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.

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" mrsbigballz 8 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

0
To add on: Yes this is true, "Torso" doesn't exist in R15, but LowerTorso and UpperTorso do Gamprofwiesonel 31 — 6y
0
Thank you, using print(game.Players.LocalPlayer.Character.LowerTorso.Position) works. :) RiskoZoSlovenska 378 — 6y
Ad

Answer this question