I have a leaderstat folder and this script is support to make Power. What is wrong. will not make put Power in to leaderstats
local leaderstats = player:FindFirstChild("leaderstats")
local power = Instance.new("IntValue")
power.Name = "Power" -- currency's name
power.Value = 0 -- cash value
power.Parent = leaderstats
The player doesn’t have a folder named “leaderstats” in them when they join, you have to use Instance.new to create the folder instead
oh wait maybe not
yea im pretty sure the player doesn’t have a leaderstats folder on join
there is a script that makes one when joined.
question: what exactly happens when you run the script?
Anyways, I’d assume the issue is that leaderstats isn’t being created fast enough. Try using WaitForChild instead
Great!! I tried the WaitForChilde instead. It worked! thank you!!!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.