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.
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