dog = Game.Players.LocalPlayer
print(dog)
Game.Workspace.dog.Torso.Anchored = true
I want to do this because Game.Workspace.LocalPlayer does not work, is there any way I can do this?
dog = Game.Players.LocalPlayer
print(dog)
Game.Workspace.dog.Torso.Anchored = true
I want to do this because Game.Workspace.LocalPlayer does not work, is there any way I can do this?
Right. There is another thing under LocalPlayer called Character . A character is basically an NPC that you control.
local dog = game.Players.LocalPlayer --You misspelled game as Game.
print(tostring(dog.Name)) --If you wanna get the player, you have to do player.Name
dog.Character.Torso.Anchored = true
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Ahh, I didn't know about the characters part, so I could just do
"game.Players.LocalPlayer.Character.Torso.Anchored = false" Tried to do a new line but it just posted the comment