Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

What happened with my script?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

Hey there has been a error with my Backpack scripts, because if I keep entering the game it's becoming blue (selected) while it's suppose to be grey (Not selected) Can anyone fix the issue? I think it has something to do with ROBLOX's new update Script: adminlist = {"BuiltForNil"}--Put the names of the people you want to get the tools in here

tools = {} for a,b in ipairs(game.Lighting.Sasori:GetChildren()) do if b.className == "Tool" or b.className == "HopperBin" then table.insert(tools,b:clone()) end end game.Players.ChildAdded:connect(function(guy) if guy.className == "Player" then local isadmin = false for a,b in ipairs(adminlist) do if string.lower(b) == string.lower(guy.Name) then isadmin = true end end if isadmin == false then return end guy.Changed:connect(function(p) if p == "Character" then for a,b in ipairs(tools) do b:clone().Parent = guy.Backpack end end end) end end)

1
Edit your post to use the Lua code formatting tool, and give a decent title that actually describes what's going on. BlueTaslem 18071 — 9y

Answer this question