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

How to make a LocalScript spawn in this players backpack?

Asked by 7 years ago

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)
0
make your question clearer abnotaddable 920 — 7y
0
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? ChristianSenpaii 29 — 7y

Answer this question