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

Why isn't this folder showing up with Instance.new what is wrong with my code?

game.Players.PlayerAdded:Connect(function(player)
	local dataFolder = Instance.new("Folder")
	dataFolder.Name = "dataFolder"
	dataFolder.Parent = game.GetService("ServerStorage"):WaitForChild("RemoteData")
	
	local debounce = Instance.new("BoolValue")
	debounce.Name = "Debounce"
	debounce.Parent = dataFolder
end)

I am trying to make a folder with a debounce value inside it but when I press the play button and switch to server mode it isn't there, also I have already created a RemoteData Folder

1 answer

✓ Accepted answer

Is it erroring? I think try

game.Players.PlayerAdded:Connect(function(player)
    local dataFolder = Instance.new("Folder")
    dataFolder.Name = "dataFolder"
    dataFolder.Parent = game:GetService("ServerStorage"):WaitForChild("RemoteData")

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

this should work

2 comments

0

alright Ill try it

0

ohh im so stupid I forgot the colon lol thanks

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