xXRALXx
|
  |
| Joined: 12 Mar 2008 |
| Total Posts: 153 |
|
|
| 24 Apr 2014 05:42 PM |
local asset = "http://www.roblox.com/asset/?id="
local Decal = Instance.new("Decal") Decal.Name = "Face" Decal.Face = "Front" Decal.Texture = asset .. player.PlayerGui.PersistentModel.FaceTexture.Value Decal.Parent = script.Parent
ERROR: Workspace.Player1.FakeHead.LocalScript:6: attempt to index global 'player' (a nil value)
|
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 24 Apr 2014 05:43 PM |
| You haven't defined the variable 'player' |
|
|
| Report Abuse |
|
|
xXRALXx
|
  |
| Joined: 12 Mar 2008 |
| Total Posts: 153 |
|
|
| 24 Apr 2014 05:44 PM |
| Do you know how to index the current player? |
|
|
| Report Abuse |
|
|
|
| 24 Apr 2014 05:45 PM |
You need to define the player variable, otherwise it won't "index" it.
Here's my siggy... Done. |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 24 Apr 2014 05:45 PM |
Looks like it's in a local script so,
player = game.Players.LocalPlayer |
|
|
| Report Abuse |
|
|
xXRALXx
|
  |
| Joined: 12 Mar 2008 |
| Total Posts: 153 |
|
| |
|