The code would look something like that
so technically speaking, if name is grass, then it would be
if Stats:FindFirstChild("grass") then
?
1 Like
that is looking for a child under the leaderstats named “grass”, correct
1 Like
I wouldn’t establish that OnServerEvent without some server-side check to see if the Fire was legitimate. Exploiters can spam fire the event without some kind of check. I recommend adding a sanity check.
1 Like
Well, I guess that can happen, but, troubleshooting and stopping hacking is later
1 Like