|
| 17 Mar 2013 11:53 AM |
| what does this even mean ?!?! |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 17 Mar 2013 11:55 AM |
| Show the line of code that caused it. |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2013 11:56 AM |
| local plrID = thisplr:findFirstChild(AgentID) |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 17 Mar 2013 11:56 AM |
| What is "AgentID"? It is possibly nil. |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2013 11:57 AM |
| its an IntValue in the player |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 17 Mar 2013 11:58 AM |
| What do you mean? Show the line where you declare AgentID, or even the whole code. |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2013 11:59 AM |
here the whole code
--------------------------------------------------------------------------------------------------
House = script.Parent.Parent
function onTouched(hit) local check = hit.Parent:FindFirstChild("Humanoid") --Find the human that touched the button if check ~= nil then --If a human is found, then local thisplr = game.Players:findFirstChild(hit.Parent.Name) if (thisplr~=nil) then local plrID = thisplr:findFirstChild(AgentID) local OwnerID = House.Parent.Parent.Name if plrID ~= OwnerID then if OwnerID == 7 then local user = game.Players:GetPlayerFromCharacter(hit.Parent) local stats = user:findFirstChild("leaderstats") if stats ~= nil then local cash = stats:findFirstChild("Cash") if cash.Value > (House.HouseValue.Value-1) then cash.Value = cash.Value - House.HouseValue.Value House.Parent = Workspace:findFirstChild(plrID).Factory print("House is now owned by Agent") OwnerID = plrID wait(1) end end end end end end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 17 Mar 2013 12:00 PM |
| You never defined AgentID. |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2013 12:02 PM |
oh i think i know...
the 8th line is the decleration i just put (AgentID) instead of ("AgentID")
maybe this is whats wrong? |
|
|
| Report Abuse |
|
|