Attempt to index number with 'leaderstats'

Hey,

I’m trying to make this script work but I keep getting this error I’m not sure what I’m doing wrong some help would be appreciated

image

The variable you’ve set for the LocalPlayer is “players”, not “player”. Make sure to check the spelling.

Also the parameter for Health.Changed is a number, not the player.

1 Like

Also the variable used is the wrong, it is a server script, LocalPlayer is always nil in Script.
image

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.