I made an item shop and when you buy something, a RemoteEvent gets called and it is supposed to take away the person who bought the item's points, but it takes away everyone's points and I don't know a solution to this
game.Players.PlayerAdded:Connect(function(p)
game.ReplicatedStorage.event2.OnServerEvent:Connect(function()
p.leaderstats.Points.Value = p.leaderstats.Points.Value - 150
end)
end)

4 comments
Is it running multiple times?
Try using an Debounce, and USE if and statements like ( if p.leaderstats.Points.Value > 150 then)
Put a parameter in the remote event named "Player" and use that instead of the Player added parameter
You have to separate both events. Do not put OnServerEvent inside PlayerAdded. As above, OnServerEvent has a player parameter so you use that instead.