UnreliableRemoteEvents do not inherit RemoteEvents

UnreliableRemoteEvents do not inherit RemoteEvents (like ScreenGui inherits GuiBase2d, for example). This has caused me 2 hours of headaches until I noticed

grafik
grafik

Because UnreliableRemoteEvents do not resolve true in the :IsA("RemoteEvent") call, I was very confused for a long time.

System Information:
Windows 11
AMD Ryzen 7 7800X3D
AMD Radeon RX 7800 XT
32GB RAM

Expected behavior

UnreliableRemoteEvents should inherit RemoteEvents, like ScreenGui inherits from GuiBase2d, or how PointLights and SurfaceLights inherit Light.

These both derive from BaseRemoteEvent.

then am I using :IsA() wrong? Shouldn’t it resolve true if that were the case? The documentation also doesn’t state that it inherits directly.

local r1 = Instance.new("RemoteEvent") 
local r2 = Instance.new("UnreliableRemoteEvent") 
print(r1:IsA("BaseRemoteEvent")) -- true
print(r2:IsA("BaseRemoteEvent")) -- true
1 Like

I see so it was just a goof on my part. Noted for future reference, thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.