How to get a Part's CFrame from a LocalScript

I was wondering how to get a part’s CFrame from a LocalScript. I can’t do game.Workspace.Part.CFrame from a LocalScript so I was wondering if there was another way to do it.

You are able to get the part’s CFrame from a localscript. I was definitely able to. My localscript was in StarterPlayerScripts, so maybe it has something to do with where the localscript is. Where do you have it?