Is this correct for a leaderstat?

local h= script.Parent.h local st= game.Players

h.OnServerInvoke= function(plr, handle, Turtles) local pf= st:FindFirstChild(plr.Name).leaderstats if pf then pf.Turtles.Value = pf.Turtles.Value + 1

end

end

2 comments

0

maybe you should test it out in the game

0

Correct your formatting please.