|
| 04 May 2012 09:52 PM |
This is the line the output is referring to.
local player = game.player.LocalPlayer.Character |
|
|
| Report Abuse |
|
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
|
| 04 May 2012 09:52 PM |
| local player = game.Players.LocalPlayer.Character |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 09:54 PM |
| oh ok, I had the P capitalized at first, then thought it was wrong because my local wasn't capitalized. But I forgot a s. Thanks |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 09:58 PM |
Character is not a valid member of DataModel
obj.Name = "Car for " ..player.Character |
|
|
| Report Abuse |
|
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
|
| 04 May 2012 09:59 PM |
| Is this in a localscript inside the player, one of the characters tools, or it's playergui? |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 10:03 PM |
| Local inside a tool in starterpack |
|
|
| Report Abuse |
|
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
| |
|
|
| 04 May 2012 11:42 PM |
local tool = script.Parent function onEquip() -- Finds the player when they equip the tool in game local player = game.Players.LocalPlayer.Character local obj = game:GetService("InsertService"):LoadAsset(65487807) game:GetService("InsertService"):Insert(obj) obj.Parent = game.Workspace obj.Name = "Car for " ..player.Character end tool.Equipped:connect(onEquip) |
|
|
| Report Abuse |
|
|
ozza
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 726 |
|
|
| 04 May 2012 11:49 PM |
local tool = script.Parent function onEquip() -- Finds the player when they equip the tool in game local player = game.Players.LocalPlayer local obj = game:GetService("InsertService"):LoadAsset(65487807) game:GetService("InsertService"):Insert(obj) obj.Parent = game.Workspace obj.Name = "Car for " ..player.Character end tool.Equipped:connect(onEquip)
Come on, you shoudl've caught that one.You defined character.character.
|
|
|
| Report Abuse |
|
|
|
| 05 May 2012 12:01 AM |
"You defined character.character."
What? |
|
|
| Report Abuse |
|
|
ozza
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 726 |
|
|
| 05 May 2012 12:02 AM |
>player = game.Players.LocalPlayer.Character
>player.Character
^ Lines from your code. |
|
|
| Report Abuse |
|
|
| |
|