How to get the character in a module script?

Everything is working but now I need the character. I’m not sure how to do that in a module script.

Script

Module Script

1 Like

you should be able to just do player.Character, I think the autocomplete just isn’t showing all the possibilities since the type of your player param is ambiguous

give it a try and lmk

2 Likes

Yeah I don’t fully understand types. When I say (player: Player) and then proceed to get the character the type checking engine doesn’t like it. If I add (character: Model) and try to get the HumanoidRootPart it also doesn’t like it. It’s something I’m going to need to learn better I guess.

1 Like

You were correct, the autocomplete showed it once I stipulated the Player as you said.

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