It's just working on a regular script with a Local script inside that's disabled ,but every time the game runs the Local script Disabled property won't turn false,why?
game.Players.PlayerAdded:connect(function(Player) Character = Player.CharacterAdded:wait() 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)
Well, you didn't correctly use concatenation and, in my opinion, I would've added another loop because the "LocalScripts" variable doesn't change because it already has a set, permanent value. You'd need to go into the Character to change it.
game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Character) print(Character.Name) for Number,LocalScripts in pairs(script:GetChildren()) do LocalScripts:clone().Parent = Character for Num,CloneScripts in pairs(Character:GetChildren()) do if CloneScripts:IsA("LocalScript") then CloneScripts.Disabled = false print(Player.Name.." now has the Local Scripts.") end end end end) end)