0

Main question for me is can I make it so that it can access the local players character from a variable given in a module script? I can't seem to access the character of it, even though it still IS the local player and prints out local players name. if we guess that: module script:

local info = {

localplayer = game.Players.LocalPlayer,

}
return info

how do I access the character? (the script making the hitbox isn't a local script.)

1

1 Answer 1

0

Player objects in Roblox have a Character property that you can access pretty easily. It can be accessed as such, barring any timing issues:

local info = {
    localplayer = game.Players.LocalPlayer,
    localcharacter = localplayer.Character,
}
return info
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.