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

How would I update this script into Non-Experimental?

Asked by 6 years ago

I recently returned to Roblox to find that all of my games have a experimental mode warning on them. I've never really been a up to date script and my code has usually been janky or out of date. Most of my games still work for the most part, but my GUIs are broken. Any of them requiring input just don't want to work anymore. Below is an example of a script I used to use in my buttons to turn on/off GUIs that has now broken. The page the experimental mode warning took me to is a 404 page and I have no idea where to start. Any help is appreciated.

one = script.Parent.Parent.labelOne
two = script.Parent.Parent.labelTwo

function toggle()
    if one.Visible == true then
        one.Visible = false
        two.Visible = false
    else
        one.Visible = true
        two.Visible = true
    end

end
script.Parent.MouseButton1Down:connect(toggle)
0
That doesn't require any non-experimental scripting. Since it is a GUI, keep it on the client, the server should have NO business in there. Btw connect is deprecated use Connect. User#19524 175 — 6y
0
Is this a LocalScript? or regular Script? Zenith_Lord 93 — 6y
1
All that Experimental mode did was force FE. Although when it came back it did brake some games. Ex:AA,Golden age,Kat. GGButNO_RE 61 — 6y

1 answer

Log in to vote
-1
Answered by 6 years ago

As long as this script is inside a local script it does not matter, experimental mode forces FE, Local Scripts do not get affected by FE, even if the game wasn't FE Local Script would still be the only way to make this work!

Hope this helped <3

Ad

Answer this question