Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

2 comments

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

0

oh ok ill try that

1 answer

✓ Accepted answer

Remove Line 4 as its causing your code to error.

1 comment

0

that worked thx

This discussion is preserved as it was. New answers, comments, and votes are closed.