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

Textbutton guis not working in FE test?

Trying to make Textbuttons that perform actions when clicked upon, they work completely fine when I turn FE off, but not when I turn FE on, and I do not understand why, could someone tell me how to fix?

Inside regular script inside the textbutton

script.Parent.MouseButton1Click:connect(function()
	if script.Parent.Parent.BorderColor3 ~= Color3.new(1, 1, 1) then	
		script.Parent.Parent.Parent.MeleeBtn.BorderColor3 = Color3.new(0.1, 0.1, 0.1)
		script.Parent.Parent.Parent.RangedBtn.BorderColor3 = Color3.new(0.1, 0.1, 0.1)
		script.Parent.Parent.Parent.SupportBtn.BorderColor3 = Color3.new(0.1, 0.1, 0.1)
		script.Parent.Parent.Parent.AccessoryBtn.BorderColor3 = Color3.new(0.1, 0.1, 0.1)
		script.Parent.Parent.BorderColor3 = Color3.new(1, 1, 1)
		script.Parent.Parent.Parent.MeleeInv.Visible = true
		script.Parent.Parent.Parent.RangedInv.Visible = false
		script.Parent.Parent.Parent.SupportInv.Visible = false
		script.Parent.Parent.Parent.AccessoryInv.Visible = false
	end	
end)

This is just one of them, none of them work, maybe someone could find an error in my script that is caused by fe because as I stated above, it works when FE was disabled.

3 comments

0

You might have to use remote events. Here is an example I made on how to use remote events with a GUI. https://www.roblox.com/library/923380182/Remote-Events-Example

0

Move it to a local script, if FE is enabled? That is my best guess

0

Well unexpectedly, making it a local script worked. xD Thanks.

1 answer

There are two solutions.

Solution 1:

Turn the script into a local script.

Solution 2:

Use RemoteEvents, they are great for filtering enabled games and are not hard to learn.

Best Solution:

Solution 2

1 comment

0

both*

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