Everything works without errors but the localscript won't get cloned inside the character,why?
game.Players.PlayerAdded:connect(function(Player) Character = Player.Character print(Character.Name) for Number,LocalScripts in pairs (script:GetChildren()) do LocalScripts:Clone().Parent = Character LocalScripts.Disabled = false print(Player.Name,"now has",LocalScripts) end end)
Player:WaitForChild(Character)
When a player is added, the character,isn't loaded yet, so adding that line will make the function wait until the character exists then it will execute everything below it in the function.