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

Can you explain why my tools aren't working when I enter?

Asked by 10 years ago

So I entered the game and then I was supposed to spawn with tools and it worked but the tools were blue (selected) while I just entered the game I can't use tools anymore. I think it has something to do with ROBLOX's latest update. Here's the script

adminlist = {"LumoTaki"}--Put the names of the people you want to get the tools in here

tools = {}
for a,b in ipairs(game.Lighting.Hidan: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)

Answer this question