I have a script that clones a GUI into the Player's GUIs, the script also enables a script that doesn't mess with the labels. If anyone could help me that would be great!
game:GetService("Players").PlayerAdded:Connect(function(player) gui = game:GetService("ReplicatedStorage").MM:Clone() gui.Parent = player.PlayerGui player.PlayerGui.MM.loadinghandler.Enabled = true end)
The simple answer here is that Scripts and local scripts have a Disabled
property , rather than an Enabled
property. Therefore the loadinghandler script never gets enabled in your script.
A fixed version of your code would be:
game:GetService("Players").PlayerAdded:Connect(function(player) local gui = game:GetService("ReplicatedStorage").MM:Clone() gui.Parent = player.PlayerGui player.PlayerGui.MM.loadinghandler.Disabled = false end)
Hopefully this helped!