hi! i made a leaderstats but its not working no output and no error but nto working pls help :) Thanks in Advanced!
game.Players.PlayerAdded:Connect(function(plr) local start = Instance.new("Folder") start.Parent = plr start.Name = "leaderstats" local coin = Instance.new("IntValue") coin.Value = 0 coin.Name = "Coins" coin.Parent = start end)
I just tested the script in studio and it worked. Make sure you use a Script inside of ServerScriptService do not use a localscript
The fix:
When using leaderstats, you cannot use a local script
. The only type of script that works with this is a server script
(also referred to as a script).
Additional help:
Did this help? Accept (and if you can upvote) it!