Hello, I'm currently making a group only Press E door-- however, to my knowledge, it's impossible to disconnect a remove event, my intended reason to disconnect the remote event is so the else statement is ran, as the first if statement is ignored.
My code:
local event = game.ReplicatedStorage.Events.OpenDoorSecurity
local eventTwo = game.ReplicatedStorage.Events.InvalidDoorClearance
event.OnServerEvent:Connect(function(plr, door)
if plr:GetRankInGroup(3902043) == 7 or plr.TeamColor == BrickColor.New("Navy blue") or plr.TeamColor == BrickColor.new("Mid gray") then
local moduleScript = require(door.Scripts.Main)
moduleScript.OpenDoor()
else
local moduleScript = require(door.Scripts.Main)
moduleScript.Invalid()
end
end)
Any help is greatly appreciated.

3 comments
You can't "disconnect" a remote event. Try using a debounce method.
^
What exactly are you trying to achieve? What's going wrong right now?