|
| 09 Feb 2014 04:03 PM |
I saw something in wiki about making your own functions so i tried it and i got the output: 16:56:40.369 - Workspace.PlotRegen:7: '=' expected near 'end' Anyone know why?
local Bases = {"PlotOne", "PlotTwo", "PlotThree", "PlotFour","PlotFive", "PlotSix", "PlotSeven", "PlotEight"}
function RegenBase(parameters) code end -- line 7 RegenBase(arguments)
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 )
|
|
|
| Report Abuse |
|
| |