Turret Rotation Issue

Hello there. I’ve got a slight issue here.

Pictures underneath;




What I want it do;

  1. Rotate when D is pressed to the right, preferable until the D key is lifted.
  2. The model named Turret shall rotate, with the half sphere STAYING in one spot. It should rotate on the spot.

What it does;

  1. Nothing.

Misc Info;

  • All parts are anchored.

  • PrimaryPart of the model named Turret is base, the half sphere.

Thanks for the help! If more clarification is needed, I can provide.

You can’t refer to the LocalPlayer in a server script, as this is will just return nil.

Additionally, UserInputService is also client-side only, therefore it cannot be used in a server script.