As the title says, I have a module script which has a parent, local script but it runs before the player loads rendering it useless until you reset, then it works fine. How can I fix this?
You can wait for local player's character to load with the CharacterAdded
event on the player, you just need to wait for the event to fire, example script:
1 | local plr = game.Players.LocalPlayer |
2 | plr.CharacterAdded:Wait() |
3 | print ( "Character loaded!" ) |