Turret Rotation Issue

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

Pictures underneath;

Model;
https://gyazo.com/242190d30dab2e19e0a82118f76fdcc1

Explorer;
https://gyazo.com/1173dbb95171a786fbaa63ae2c0d141e

Script;
https://gyazo.com/dc8d04e5734476d3b91a28ea448407af

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.