Hello, I've been working to enable filtering on my game as it was recently shut down by roblox-demanding that we do so. I've encountered a few problems, the main one being all of my fixes do not actually work in game. These all work in studio test mode. This is the script that fires the remote event it is located in ServerScriptService
local TextBox = game.Players.LocalPlayer.PlayerGui.Customizer.CloseTab
TextBox.MouseButton1Click:connect(function()
if TextBox.Text == 'Open' then
print("Firing")
game.Workspace.OpenEvent:FireServer()
print("Fired")
else
game.Workspace.CloseEvent:FireServer()
end
end)
This is the script ALSO located in ServerScriptService that creates and describes the event
local event = Instance.new("RemoteEvent")
event.Name = "OpenEvent"
event.Parent = game.Workspace
event.OnServerEvent:connect(function()
game.Players.LocalPlayer.PlayerGui.Customizer.PositioningFrame.Visible = true
print('1')
game.Players.LocalPlayer.PlayerGui.Customizer.CloseTab.Text = 'Close'
end)
The close event is very similar and is located also in ServerScriptStorage.
Many thanks

7 comments
Thanks very much for explaining this, I'll give it a try and come back to you
No problem
This still doesn't want to work, will placing script1 under starterplayerscripts make any difference? edit: it works in studio again but not in the main game
hold on
is the textbutton visible right when you join?
Try using a WaitForChild for your humanoid and then execute the script so you are fully certain it loads when the character of a player has loaded
The textbutton is visible and it detects that it's being clicked. It just does nothing