Whilst i was testing around with discord things, I encountered this. This is even weirder than the first one. The problem is is that the toggle in the script does not works. I tried printing checks, To seewe just couldnt see it, But that was not the case.
local replicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = replicatedStorage:WaitForChild("Change")
local State = 2
remoteEvent.OnServerEvent:Connect(function(Plr)
if State == 1 then
local State = 2
Plr.PlayerGui.Submit.Frame.Preview.Footer.Visible = false
print("b")
elseif State == 2 then
local State = 1
Plr.PlayerGui.Submit.Frame.Preview.Footer.Visible = true
print("a")
end
end)
