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

Click events are not working in BillBoard gui. ???

I made a pretty basic script to test this out.

-- Parent is TextButton, Parent.Parent is BillBoard gui.
script.Parent.MouseButton1Up:Connect(function()
	script.Parent.Text = "NO U"
	wait(3)
	script.Parent.Text = "Click me (test)"
end)

Nothing happens, no errors, NOTHING! I also tried it with a normal non-local script just in case it doesn't work because it's a non-local instance, that didn't help. This works on a SurfaceGui though.

Help is appreciated, thanks!

4 comments

0

Is it a localScript, and is FE on?

0

Yes, both local script and FE. I have also tried it with normal script, but I'm mainly using local script

0

Then, if FE is on, it has to be FE compatible.

0

it just changes the text, it should work regardless of FE on a local script, but it doesn't work

1 answer

✓ Accepted answer

Well, since you said it was FE, (filtering enabled) you'll need 2 different scripts and 1 remoteEvent.

So, a RemoteEvent is a Instance that is usually used in any type of FilteringEnabled games which fires from the client or server.

In the RemoteEvent, you want to use OnServerEvent if the client/player is firing the event. Such as clicking a TextButton. But, a better way to memorize which type of Event to use is by knowing if what it works in non-FE. So, like a LocalScript is used to get a MouseButton1Down function or something like that, meaning you'll use FireServer since you're firing it from there like in non-FE games.

But, when using OnClientEvent, it's just the opposite. So, if you were doing a touch event or player added event, you would normally use a script for that in non-FE games. All you need to do is use FireClient now in the Script and set your code up with OnClientEvent in a local script.

4 comments

0

This is all local, no need to contact the server. BillBoard gui is local, everything inside is local, Clicking a button is local.

0

This whole thing is just trying to get a click, from a local script. Do BillBoard guis even work as buttons?

0

Wait, billboard? Is there even a MouseButton1 thing? I mean, thats if you're using FE

0

I'll just accept your answer. I'm talking about a BillBoardGui, here's an example: wiki.roblox.com/index.php?title=Fundamentals_of_Scripting_with_GUIs#GUI_Types I don't think click events such as MouseButton1Click, MouseButton1Down, MouseButton1Up, etc; work with BillBoardGuis at all. This isn't about FE, it's all local guis, no communication to the server is needed at all while working on guis.

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