|
| 19 Mar 2015 08:58 PM |
"Head is not a valid member of Player" The output I get when I try to do this script:
local player = Game.Players.LocalPlayer local Face = player.Head.face
Im trying to make a local of the decal named "face" in the Head of a player, trying to change faces by script.
Someone help?
R$106 |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 19 Mar 2015 09:06 PM |
The player and the character are different. Everything that is physical is in the Character.
This is how you get the character from a local script:
local character = player.Character if not character or not character.Parent then character = Player.CharacterAdded:wait() end
--and then you can do
local Face = character.Head.face |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 19 Mar 2015 09:09 PM |
why are you doing this locally
that decal wouldn't replicate to the server if filteringenabled is on |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2015 09:19 PM |
| why are you doing this locally[2] |
|
|
| Report Abuse |
|
|
|
| 20 Mar 2015 10:10 AM |
Im doing this locally bcuz its a GUI and its going to be like a remade version of APOC but like 100% different and im adding face customization in the GUI
R$106 |
|
|
| Report Abuse |
|
|