Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Textbutton guis not working in FE test?

Asked by 6 years ago

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.

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 PyccknnXakep 1225 — 6y
0
Move it to a local script, if FE is enabled? That is my best guess Void_Frost 571 — 6y
0
Well unexpectedly, making it a local script worked. xD Thanks. DivineObliteration 9 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

0
both* Sur4y 40 — 6y
Ad

Answer this question