When using a variable of a member of a service, intellisense suggests members from the service, and not the member

Intellisense recommends functions and events from the service if you have a variable pointing to a member of the service.

This only occurs if using a variable.

For example, the following will cause intellisense to display methods RunService inherits instead of methods of the RenderStepped event:

local RenderStepped = game:GetService("RunService").RenderStepped

RenderStepped:

RobloxStudioBeta_uGuvJ5lB1V

https://gyazo.com/78d8dca76cb340d6c288b577060fd657

What I expect to happen is intellisense recommends only relevant methods for the event, such as Connect or Wait. This is already the behaviour when not using a variable, like so:

RobloxStudioBeta_bLyfEhm1tw

I am not sure when the issue started occurring. It happens 100% of the time.

I am using Roblox Studio version 0.413.1.370526 (64-bit).

2 Likes

You can’t interact with CurrentCamera if you get it from Workspace using any method instead you will be able to interact with Workspace itself and not the CurrentCamera here’s a GIF showing what’s happening:

As you can see in the GIF above the reference to CurrentCamera is instead a reference to Workspace and not the CurrentCamera.

If you get the CurrentCamera twice like shown below it appears to work but it’s still a bug:

local currentCam = workspace.CurrentCamera.CurrentCamera -- Now it works which is weird and still a bug

Here’s the place file that was used in the GIF so you can reproduce this issue:

CurrentCameraBug.rbxl (17.9 KB)

This bug happens 100% of the time, please fix this bug because it’s very annoying and will confuse developers who try to do this.

1 Like