Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Rotating a part slowly while a key is held?

Asked by 4 years ago

I'm trying to make some form of security camera system and want the user to be able to rotate each camera around slowly using the arrow keys.

I don't quite know how to set the CFrame properly so that it ONLY moves while the keys are held.

repeat wait(0.05)   camModel.Cam:SetPrimaryPartCFrame(CFrame.new(camModel.Cam.PrimaryPart.CFrame.p[Where do I focus??]))
until stop.OnServerEvent
0
you change using Orientation = Vector3.new() and not CFrame manipulation Gameplayer365247v2 1055 — 4y

Answer this question