Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

BillboardGUI, How can I disable them?

I do not know much about scripting. I had some problems and I was wondering if I can get some help. Thank you for those who attempt to answer this question. I appreciate it.

Lets say, We had a model. That model, has a script, and a BillboardGUI. When that script is used, the BillboardGUI will become disabled.

script.parent.BillboardGUI.Enabled == false

Did I do this right?

1 comment

0

Remember, "=" makes something equal to something. "==" checks if something if equal to something. "~=" checks if something is not equal to something.

1 answer

✓ Accepted answer

Yes you did, you may want to wait for the billboardgui to be loaded to ensure that you do not see any errors. Also, the only case where you would use two equal signs is for if statements like so:

if a == true then
	--blah
end

Your new code should look like this:

script.Parent:WaitForChild("BillboardGUI").Enabled = false

The reason we must wait for the gui to load is because all assets in the game are not loaded immediately.

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