Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I have made leaderstats and put them in the player but why isnt it showing?

Asked by 4 years ago

Also, let me know whether this is just a Roblox studio thing here is my code for leaderstats

game.Players.PlayerAdded:Connect(function(player)

    local leaderstats = Instance.new("Folder")
    leaderstats.Name = leaderstats
    leaderstats.Name = "leaderstats"
    leaderstats.Parent = player

    local Thiccness = Instance.new("NumberValue")
    Thiccness.Name = "Thiccness"
    Thiccness.Parent = leaderstats

    local rebirths = Instance.new("IntValue")
    rebirths.Parent = leaderstats
    rebirths.Name = rebirths

    local dataFolder = Instance.new("Folder")
    dataFolder.Name = player.Name
    dataFolder.Parent = game.GetService("ServerStorage").RemoteData

    local debounce = Instance.new("BoolValue")
    debounce.Name = "Debounce"
    debounce.Parent = dataFolder
end)

btw making a simulator game so that's why I put the debounce there

0
on line 4 a string was expected which is indicated with "" marks but you don't have any and on line 5 you have the right thing, so change line 4 and remove 5 or keep 5 and remove 4 yumaking 78 — 4y
0
oh ok ill try that ayuu_ondev 60 — 4y

1 answer

Log in to vote
3
Answered by 4 years ago

Remove Line 4 as its causing your code to error.

0
that worked thx ayuu_ondev 60 — 4y
Ad

Answer this question