I'm not sure, but do you use player added pr something similar to that? for example (i dont know how to use player added or set it up)
--localplayer added part
--code
print"this is where the code goes and localplayer loaded in "
end
if you need any clarifictaion ask! thanks

2 comments
thanks!
Added some stuff to my answer. You can also do something once a player joins the game for the first time with PlayerAdded. But it has to be somewhere such as the workspace or serverscriptservice to work.