|
| 06 Feb 2014 09:10 PM |
local Bases = {"PlotOne", "PlotTwo", "PlotThree", "PlotFour","PlotFive", "PlotSix", "PlotSeven", "PlotEight"}
function onChildRemoved( player ) for i = 1, #Bases do if workspace:findFirstChild( Bases[i] ) ~= nil then if workspace[ Bases[i] ].Owner.Value == player.Name then RegenBase( Bases[i] ) end end end end
game.Players.ChildRemoved:connect( onChildRemoved )
It says line 9 which is "RegenBase( Bases[i] )" is trying to make the regen a nil or something like that |
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Feb 2014 06:05 AM |
| Does the function RegenBase() exist? |
|
|
| Report Abuse |
|
|
|
| 07 Feb 2014 07:33 AM |
| I'm pretty sure 'workspace' needs a capital W |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|
| |
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 07 Feb 2014 07:52 AM |
Nope. Doesnt need to be. workspace and Workspace Work. Unless its game.workspace i think, But "workspace." works |
|
|
| Report Abuse |
|
|
|
| 07 Feb 2014 08:02 AM |
| workspace is a predefined rbx.lua variable. |
|
|
| Report Abuse |
|
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 07 Feb 2014 08:31 AM |
| as he said above, is regenbase a function? |
|
|
| Report Abuse |
|
|
|
| 07 Feb 2014 02:03 PM |
Doesnt metter if the W is capital or not. Heres the output i get: 15:02:56.418 - Workspace.PlotRegen:9: attempt to call global 'RegenBase' (a nil value) 15:02:56.419 - Script 'Workspace.PlotRegen', Line 9 15:02:56.428 - stack end
|
|
|
| Report Abuse |
|
|
|
| 07 Feb 2014 02:05 PM |
| I dont know if the function RegenBase() exists |
|
|
| Report Abuse |
|
|
|
| 07 Feb 2014 02:30 PM |
| Solution: Don't use RegenBase because it does not exist OR tell me what you're trying to do and I'll create the regenbase method for you. |
|
|
| Report Abuse |
|
|
YumERAGON
|
  |
| Joined: 18 Apr 2012 |
| Total Posts: 3893 |
|
|
| 07 Feb 2014 02:49 PM |
| Workspace can be workspace or Workspace.. |
|
|
| Report Abuse |
|
|
| |
|