Making a zone which adds to a leaderstat while inside

So I want to create a zone which while inside the player gains points, lets say 10 every 5 seconds,
I dont really know where to start with this, I have a script which recognises when a player is inside though it uses a server script and so I couldnt just do localplayer.leaderstats etc

this is the script I currently have:
image

You were on the right track.

local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
	player.leaderstats.Stat.Value += 1
end