** Please note I have filtered enabled on **
01 | --// Local Script |
02 |
03 | --// Variables |
04 | local Button = script.Parent.TextButton |
05 | local visibleOptions = game.ReplicatedStorage:WaitForChild( "visibleOptions" ) |
06 |
07 | --// Scripting |
08 | Button.MouseButton 1 Click:Connect( function () |
09 | visibleOptions:FireServer() |
10 | end ) |
1 | --// Script |
2 |
3 | --// Variables |
4 | local visibleOptions = game.ReplicatedStorage:WaitForChild( "visibleOptions" ) |
5 |
6 | --// Scripting |
7 | visibleOptions.OnServerEvent:Connect( function (player) |
8 | player.PlayerGui.optionsGui.Frame.Visible = true |
9 | end ) |
https://i.imgur.com/3jEmBcc.png // photo of explorer
With FE off, you don't need that much. You can do everything in the LocalScript. Here, delete the Script, and put this in the LocalScript:
01 | repeat wait() game.Players.LocalPlayer:WaitForChild( "PlayerGui" ) --Roblox Bug :I |
02 |
03 | --// Variables |
04 | local Button = script.Parent.TextButton |
05 | local visibleOptions = game.ReplicatedStorage:WaitForChild( "visibleOptions" ) |
06 |
07 | --// Scripting |
08 | Button.MouseButton 1 Click:connect( function () --I'm not sure if you need, but always put "connect" with lower case. |
09 | game.Players.LocalPlayer.PlayerGui.optionsGui.Frame.Visible = true |
10 | end ) |
If this works, mark as the solution please!
As always, good scripting!