of     1   

ForceCyber
#215566847Saturday, April 29, 2017 4:52 PM GMT

Well, there's a problem. Everything I script only works in studio and not in-game. I bet ROBLOX broke their client again, studio works fine but lag more than the client. Always breaking my scripts... Any suggestions why?
Unsubtleties
#215566909Saturday, April 29, 2017 4:53 PM GMT

It's not ROBLOX's fault. You just need to learn about what you should be handling on the client or server.
LaeMVP
#215567007Saturday, April 29, 2017 4:55 PM GMT

Are you trying to do client things server side? (like doing game.Players.LocalPlayer in a serverscript)
ForceCyber
#215567013Saturday, April 29, 2017 4:55 PM GMT

It is them indeed. Studio works fine.
LaeMVP
#215567056Saturday, April 29, 2017 4:55 PM GMT

Studio works fine because it runs everything on the client, it is your script(s) that is the problem.
ForceCyber
#215567062Saturday, April 29, 2017 4:56 PM GMT

No, it's just regular scripts that should make a button visible when you click a GUI and close it if you click it again.
Unsubtleties
#215567072Saturday, April 29, 2017 4:56 PM GMT

Studio works fine because the client and server are both running on the same machine, which is your computer. You can simulate an actual server in studio but it still won't function the same as an online server. It's your fault.
Unsubtleties
#215567093Saturday, April 29, 2017 4:56 PM GMT

"regular scripts" "GUI" There's your problem.
LaeMVP
#215567126Saturday, April 29, 2017 4:57 PM GMT

"No, it's just regular scripts that should make a button visible when you click a GUI and close it if you click it again." So the problem was you, that should be handled locally(a local script)
ForceCyber
#215567143Saturday, April 29, 2017 4:57 PM GMT

function Click() if script.Parent.Parent.BuyVip.Visible == false then script.Parent.Parent.BuyVip.Visible = true elseif script.Parent.Parent.BuyVip.Visible == true then script.Parent.Parent.BuyVip.Visible = false end end script.Parent.MouseButton1Click:connect(Click) --nothing wrong here. It's just their problems.
ForceCyber
#215567202Saturday, April 29, 2017 4:58 PM GMT

Nevermind, just saw that FE was enabled. Works fine now. Apparently it enables itself when it wants to.
Unsubtleties
#215567215Saturday, April 29, 2017 4:58 PM GMT

Simplified: local buyVIP = script.Parent.Parent:WaitForChild("BuyVIP") script.Parent.MouseButton1Click:Connect(function() buyVIP.Visible = not buyVIP.Visible end) Anyway, it should be in a LocalScript.
ForceCyber
#215567268Saturday, April 29, 2017 4:59 PM GMT

I don't need localscripts when it works fine now. FE was the problem.
Unsubtleties
#215567418Saturday, April 29, 2017 5:02 PM GMT

Nothing can be your fault, can it? Stop being stubborn. GUIs should always be handled locally because they're displayed locally. In reality the server can't even see a client's GUIs, and that explains the issue with FilteringEnabled. Even though the server script was inside the GUI, the server can't see it because the GUI was created locally by the client. The server can only see client GUIs that were created by the server, but local changes still don't replicate with FilteringEnabled. In short: be conventional and start handling things correctly. Run the code in a LocalScript.
ForceCyber
#215567559Saturday, April 29, 2017 5:03 PM GMT

It is local anyways so it doesn't matter how you script it. I use scripts because I'm not using localscripts much because there's another way to script. Mostly why. Localscripts is only required is you're using FE.
Unsubtleties
#215567585Saturday, April 29, 2017 5:04 PM GMT

Good luck.
ForceCyber
#215567673Saturday, April 29, 2017 5:05 PM GMT

Already done & works fine.
LaeMVP
#215567818Saturday, April 29, 2017 5:08 PM GMT

Why would you not script a gui with a local script? It makes the guis so much easier to configure and more compatible with FE. There is no valid reason to not use a local script for a gui.
JarodOfOrbiter
#215567932Saturday, April 29, 2017 5:09 PM GMT

Aha, I remember. This was the nonconformist who thought he was always right. He argued with everyone in a thread, saying that we were all wrong and deceived. I definitely see a pattern here. "Localscripts is only required is you're using FE."
ForceCyber
#215568360Saturday, April 29, 2017 5:16 PM GMT

'He'. I never said I was right. I don't even need you here.

    of     1