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

0

I already answered this question on your last post..

0

Because no one can actually give me an answer that actually helps me :/ thetacah your script doesn't work :/

0

we dont do the work for you on this website you know that right?

0

You should have commented on the posted awnser, it is explained well but you should also check the wiki.