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

How would i make this scripts inside the players backpack even after they die?

Asked by 5 years ago

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
0
Place the local script in StarterPlayerScripts instead of StarterPack. SaltyIceberg 81 — 5y
0
i want it to only save in the players backpack if i choose to give them the scripts Gameplayer365247v2 1055 — 5y

Answer this question