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

how do i accuses a folder via a script that is named after a player?

the title explains it well but to reiterate I'm trying to access a folder that is named after a player but I have no clue how to do that here's what code that I have:

game.Players.PlayerAdded:Connect(function(player)
	Instance.new('Folder',workspace)
	workspace.Folder.Name = player.name
	
	local folder = workspace.. player.Name
	
	Instance.new('NumberValue',folder)
end)

1 answer

✓ Accepted answer

You'd do local folder = game.Workspace:FindFirstChild(player.Name).

1 comment

0

thanks this helped

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