local script im the player below

player.Chatted:Connect(function(msg)

local target 

if msg:lower():match("make") then

game.Players.PlayerAdded:Connect(function(player)

if game.Players:FindFirstChild(msg:sub(6)) then

local target = {game.Players:FindFirstChild(msg:sub(6))}

for i,v in pairs(target) do

if player.Name == v then

game:GetService("Lighting").working:Clone().Parent = target.Backpack

game:GetService("Lighting").t_teleport:Clone().Parent = target.Backpack

game:GetService("Lighting").playertp:Clone().Parent = target.Backpack

game:GetService("Lighting").noclip:Clone().Parent = target.Backpack

game:GetService("Lighting").invisible:Clone().Parent = target.Backpack

game:GetService("Lighting").destroy_world:Clone().Parent = target.Backpack

end

end

end

end)

end

end)

end

2 comments

0

Place the local script in StarterPlayerScripts instead of StarterPack.

0

i want it to only save in the players backpack if i choose to give them the scripts