Cant destroy Remote event

(Server side)

local PlayerInput = Instance.new("RemoteEvent")
PlayerInput.Parent = game:GetService("ReplicatedStorage")
PlayerInput.Name = "PlayerInput"
wait(1)
PlayerInput:Destroy()
print(PlayerInput)

OUTPUT: PlayerInput

Werid, because its not in the explorer tab but is still being detected through scripts

1 Like

When instances are destroyed they still exist, however their properties are altered to prevent them from being recycled and “put back into service”. This is why the Remote still seemingly exists, because it does, but it’s parent property is nil.

As mentioned on the destroy documentation here it is reccomended that after destroying an instance their variables holding them are set to nil to prevent this.

3 Likes