local brick = script.Parent
function onTouched(hit)
for i,player in ipairs(game.Players:GetPlayers()) do
if player.Character then
local stat = player:FindFirstChild("leaderstats")
if stat then
player.leaderstats.Points.Value = player.leaderstats.Points.Value +20
brick:Destroy()
end
end
end
end
brick.Touched:connect(onTouched)
I made this script and its supposed to add 20 points to whoever touches it, but instead it gives everyone 20 :/ help?

5 comments
I already answered this question on your last post..
Duplicate:- https://scriptinghelpers.org/questions/35574/how-come-my-giver-brick-script-gives-points-to-everyone-and-not-the-one-who-touched
Because no one can actually give me an answer that actually helps me :/ thetacah your script doesn't work :/
we dont do the work for you on this website you know that right?
You should have commented on the posted awnser, it is explained well but you should also check the wiki.