I'm working on a game that obviously has leaderstats and this script has been giving me issues and if anyone knows why it is loading the value "Trimmings" and "Mower" but not the value "Strength" into the leaderstats folder in studio, please do tell me how to fix it. Script:
game.Players.PlayerAdded:connect(function(plr)
local ls = Instance.new('Folder')
ls.Name = 'leaderstats'
ls.Parent = plr
local t = Instance.new('NumberValue')
t.Name = 'Trimmings'
t.Parent = ls
local s = Instance.new('NumberValue')
s.Name = 'Strength'
s.Parent = ls
s.Value = 0
local m = Instance.new('StringValue')
s.Name = 'Mower'
s.Parent = ls
s.Value = 'Mower'
end)

2 comments
I know, on the local m thing you then under put in s.name, parent and value put in m instead just a normal mistake.
oops, didn't realize. that's a very foolish mistake