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

How to char a player's character?

Asked by 5 years ago

So i have seen there should be code like Player.["Left Arm"] but i dont know what to do next

1 answer

Log in to vote
0
Answered by 5 years ago

"I have seen code like Player["Left Arm"] but don't know what to do next" ... is all I have to say, obviously you are new to coding so i'll give you the run down. In coding you need to know what your making, that's like painting but not knowing what to paint. Player["Left Arm"] is getting the players left arm. This will not work id you chuck it in a script, but something like this would:

local Player = game.Players.LocalPlayer
local LeftArm = Player.Character["Left Arm"]
-- Do something with the left arm

That will work in a local script. In a server script its more difficult. You need you need to get the player a different way, the most common is in parameter . Like in the touched function: Touched wiki page

as you see the parameter is OtherPart, that could be the player, or who knows. As you see no one could help you with the only information "I have seen code like Player["Left Arm"] but don't know what to do next"

Please up vote if it helped! :D

0
k thanks HTHRWRU 6 — 5y
0
:D MrOpScripter 81 — 5y
Ad

Answer this question