I’m trying to hide a mod call UI in private servers, but unfortunately, it continues to show up. I’m not sure what might be incorrect with the script. Scripting isn’t my thing and I’m not the best with it. Any assistance would be appreciated.
local remoteEvent = game.ReplicatedStorage.privateServerCheck
remoteEvent.OnClientEvent:Connect(function()
local gui = game.Players.LocalPlayer.PlayerGui.modCall
gui.Enabled = false
end)
there is no need for any server/remote interference, delete those and modify the localscript:
if game.PrivateServerId ~= "" and game.PrivateServerOwnerId ~= 0 then --check if this is a private server
game.Players.LocalPlayer.PlayerGui:WaitForChild("modCall").Enabled = false
end