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 labels not showing up on a cloned GUI?

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)

1 answer

✓ Accepted answer

Enabled and Disabled


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!

2 comments

0

You do realize he could have just put it in the StarterGui, why not suggest that. Never reinvent the wheel

0

unless you are sending a rover to mars :p

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