This is the entire script I place in ServerScriptService
local function grape() local GrapeCopy = Grape:Clone() local function getfat(b) local parent = b.Parent local humanoid = parent:FindFirstChild("Humanoid") if game.Players:GetPlayerFromCharacter(parent) then GrapeCopy.Transparency = 1 local player = game.Players:GetPlayerFromCharacter(parent) player.leaderstats.Coins.Value =0 player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 1 GrapeCopy:Remove() wait(5) end end GrapeCopy.Touched:Connect(getfat) wait(0.4) end while true do grape() wait(1) end
Problem: When I played it, the point increased only once. If I touch another grape, the point stood at 1. If you want the full script and more details, DM me on discord: Starlight#7272.
On line ten you keep resetting the player's points back to zero, so even though the player gains a point on the next line he will still have one point.
I'm not sure why you've reset the points value but it will be at zero by default when the player joins when his points folder is created.