Module does not autocomplete

does the auto complete work in the command bar but not the script?

Yes, exactly. it probably is a roblox bug

Roblox does some weird stuff to required modules and dont update them properly unless its a new script document. You should be able to solve this by copying your module, deleting the original one and pasting it again. This way roblox thinks its a new module and will update it properly.

Nope, still does not work

does regular type checking work?

local a : Player

doing anything with the a variable should give suggestions you would see if it was a player

image
yes it does


once more pasting the actual script

not quite sure why your module doesn’t work. I’ll continue helping when I get on a computer, so that I can try some stuff on my studio

1 Like

the

local module = {} :: Self

is not necessary

remove the : : Self and see how it goes

the “Self” type should be referenced in the “new” function

function module.New(char: Model): Self

In the latest screenshot I gave you guys its not anymore

actually, where is the script that is requiring the module placed?

In the starteplayer - starterplayer scripts - Core (folder) and there

I just realized I placed it in the wrong place, however still I fixed it, but does not autocomplete

If this is how you’re requiring it, then the issue is that you’re going into player scripts all the way from game. When going into local player roblox thinks its a clean player. Roblox does not account fro starter player or starter gui. The issue is that roblox doesn’t know the module is going to exist and doesn’t know what you’re requiring. Solve this by simply changing it to this

require(script.Parent.Module)

Wow, finally works, thank you!

1 Like

for the future, it can help by adding --!strict at the top of your script. It will tell you almost every possible error and in this case “Core might be nil”

1 Like

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