I’m kinda new to scripting and I got this error (title)
it is in line with local Leaderstats…
I looked at other posts like this but couldnt find anything useful aswell.
If I set Player to a Player Name by " " it works.
Script is located in Players Character
local Player = script.Parent
local Player = Players:GetPlayerFromCharacter(Player)
local Leaderstats = Players[Player].leaderstats
local Strength = Leaderstats.Strength