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.
u cant disconnect a remote event
this is roblox
not real life where u get those remotes with buttons on
ok
i hope i helped.