I have a script, and it only works if I put it inside the player. isn't it this?
local player = game.Players.LocalPlayer script.Parent=player
I'm not very sure. Are does it need a script?
A neat trick the majority of scripters I know placed their LocalScripts inside StarterGui so when the character spawns, they spawn with that script.