In order to make a stats system I've been told to use RemoteEvents, so that the game is less exploitable, but I just don't know what im doing wrong. My script:
game.Replicatedstorage.DamageIncreasedEvent.OnServerEvent:Connect(function(plr)
plr.Stats.Damage = plr.Stats.Damage + 1
end)
But everytime I try it, I get an error... The script is inside ServerScriptService and plr.Stats.Damage is an IntValue. As always, thanks in advance!

7 comments
Are you sure your local script is firing the event? What does the error say?
What's the error?
The error says : "Attempt to perform arithmetic on local ‘Damage’ value (a userdata value) "
You're doing plr. Stats.Damage instead of plr.Stats.Damage
I mean you have a space
?
I just typed it on here. On the actual script it's correct.