Here's my script;
local Players = game:GetService("Players")
local function onPlayerAdded(player)
local ability = player:WaitForChild("Status"):WaitForChild("Ability")
if ability.Value == "None" then
return
end
if ability.Value == "Magnet" then
local Clone = game.ReplicatedStorage:WaitForChild("MagnetPunch"):Clone()
Clone.Parent = player.Backpack
end
end
for _,player in pairs(Players:GetPlayers()) do
onPlayerAdded(player)
end
Players.PlayerAdded:connect(onPlayerAdded)
It won't function so I don't know. There were no errors so I'm guessing I placed it in the wrong place. Where should I place it and if there are any errors please tell me.

1 comment
Status is a model inside players containing stats and more