I want to make a Localscript called "OpeOpe" spawn in this players backpack?
I want it to be a Localscript instead of tools
adminlist = {"LegitPranksta"}
tools = {}
for a,b in ipairs(game.Lighting.Deidara: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)

2 comments
make your question clearer
Sorry for the misunderstanding, I basically want to have this script spawn a LocalScript that I made with a name called Ope spawn in someone's backpack as soon as he enters the game. Now I think I could do that by replacing all the tool terms in the script with LocalScript term but it doesn't seem to work. Is this clear enough, sir?