How to execute a script from a local Part

Localscripts don’t work if they are a descendant of workspace and not parented by a player character model at the same time.