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
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
Move it to a local script, if FE is enabled? That is my best guess
Well unexpectedly, making it a local script worked. xD Thanks.