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

How would I update this script into Non-Experimental?

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)

3 comments

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.

0

Is this a LocalScript? or regular Script?

1

All that Experimental mode did was force FE. Although when it came back it did brake some games. Ex:AA,Golden age,Kat.

1 answer

✓ Accepted answer

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

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