I have made a part that spawns in front of the player while they hold Z, and the only way I got it to stay there was when I made it anchored, though I want to make it stay in front of the player while the player moves.
while KeyHeld == true do
power.CFrame = player.Character.Head.CFrame*CFrame.new(Vector3.new(0, 5, -1.5))
end
But all it does is sit in the middle of the map. Before I used the while loop I just had it anchored so that's the only way I got it to go in front of the player when the button is pressed, but when I use the while loop, having it anchored or not anchored doesn't make much of a difference.

3 comments
Definitely the better choice.
It worked! Thanks so much!
No problem :)