First, we need to see if the player is not “Theisnotmyrealuser”
game.Players.PlayerAdded:connect(function(plr)
if not plr.name == "Thatisnotmyrealuser" then
end
end)
Now, we need to detect if the player has the tool
game.Players.PlayerAdded:connect(function(plr)
if not plr.name == "Thatisnotmyrealuser" then
local children = plr.Backpack:GetChildren()
for i = 1, #children do
local child = children[i]
if child.Name == Tool then
end
end
end)
Now, we need to remove it.
game.Players.PlayerAdded:connect(function(plr)
if not plr.name == "Thatisnotmyrealuser" then
local children = plr.Backpack:GetChildren()
for i = 1, #children do
local child = children[i]
if child.Name == Tool then
plr.Backpack:FindFirstChild("Tool"):Destroy()
end
end
end)
1 comment
Not exactly what i intended, but it has the same effect in the end, thanks for helping!