Making some stuff for a tycoon, and I'm placing some stuff under the player, but it's not working?
I have this script in StarterPlayerScripts
local Player = game.Players
local LPlayer = Player.LocalPlayer
function OnPlayerAdded()
wait(1)
local Container = Instance.new("Folder")
Container.Parent = LPlayer
local Owner = Instance.new("StringValue")
Owner.Parent = Container
Owner.Value = LPlayer.Name
end
Player.PlayerAdded:Connect(OnPlayerAdded)

1 comment
Can you tell us your goal, as well as the Script type?