of     1   

TheSoMekTime
#63521206Monday, February 27, 2012 2:49 AM GMT

When a player touches a spawn location, it will delete all his existing tools in his backpack then replace them with tools in Lighting. Why doesn't it work? script.Parent.Touched:connect(function(hit) ply = game.Players:GetPlayerFromCharacter(hit.Parent) if ply then ply.Backpack:ClearAllChildren() for i,v in pairs(game.Lighting.Tools:GetChildren()) do v.Parent = v.Backpack end end end) Please help!
iFordMC
#63521609Monday, February 27, 2012 2:55 AM GMT

ply = game.Players[hit.Parent.Name]:GetPlayerFromCharacter(hit.Parent.Name) If ply:IsA("Hat") then End --Code here.
KnightmareXD
#63521656Monday, February 27, 2012 2:56 AM GMT

@Teh What the heck are you doing? † KMXD †
iFordMC
#63521670Monday, February 27, 2012 2:56 AM GMT

There's a lot more errors, if I was on my PC not iPad I would help more, sorry.
iFordMC
#63521703Monday, February 27, 2012 2:56 AM GMT

Sorry, I'm really tired. Also light headed.
bl5eebryce
#63522132Monday, February 27, 2012 3:03 AM GMT

Change v.Parent = v.Backpack To: v.Parent = ply.Backpack
TheSoMekTime
#63531632Monday, February 27, 2012 12:17 PM GMT

@teh -_- Thanks for trying to help but... -_-
TheSoMekTime
#63531743Monday, February 27, 2012 12:24 PM GMT

@bl5eeb That didn't work bro. I need to put the tools in one model and insert it into Lighting as a model and name it "Tools". That doesn't work, maybe it's something to do with the tools? My tools are SuperFly and Teleport, both Hopperbins.
TheSoMekTime
#63531962Monday, February 27, 2012 12:40 PM GMT

I looked at the output and it said SOMETHING like this: -expected [name] near ":"- Hope that helps, I think the error is on line 5. (Btw the [name] really shows but it won't allow me to put those symbols.)

    of     1