Roblox autofill completely broken

If I write this line under any local script the whole autofill breaks. Any ideas why that happens?

workspace.Camera.CFrame = game:GetService("ReplicatedStorage").Cameras.LobbyCamera.CFrame

Proof

Another video


This is really annoying because I need to change the camera position but if I do that the whole autofill breaks.

2 Likes

That’s a really odd glitch. I believe it’s because you are using GetService for its unintended purpose where it should be separated as a local variable as it is a constant variable.

Edit 2: Yeah I don’t think this causes the problem, it’s just conventionally neater to define services at the top of the script.

Try separating it and see if it fixes the problem.

local ReplicatedStorage = game:GetService("ReplicatedStorage")

workspace.Camera.CFrame = ReplicatedStorage.Cameras.LobbyCamera.CFrame

Edit: I’ll try to replicate the glitch in studio. Nope can’t I have no idea why it suggests ApplyAngularImpulse I believe somehow autofill thinks the game is a base part why is why it’s suggesting to apply angular Impulse to it.

1 Like

Please use the search bar.

What do you actually want to type after

GetService()

the only thing which you might want to use it for is while declaring a variable
so try out this

local player = game.GetService("PLayers").LocalPlayer

if it works while typing this then it seems to be that you cant do anything even if you use that Syntax

1 Like

Wrong area to post this you should go to engine bugs

That doesn’t seem related to @Dolphin_Worm’s problem

1 Like