How would I go about about making an aiming system?

Hello Developers,
I was recently working on an FPS game, and I have finished most of my framework. I created animations for guns which you can check out here. The animations are somewhat done (I revamped them today), when I realized I need an aiming system. I couldn’t figure out how I would do that, as there are no tutorials on youtube or the devforum either.

Any Help is Appreciated,
OceanTubez

1 Like

Try using field of view. How?

local player = game:GetService("Players").LocalPlayer
local mouse = player:GetMouse()

local camera = workspace.CurrentCamera

mouse.Button1Down:Connect(function()
   camera.FieldOfView = 50 --Any number you choose
end)

mouse.Button1Up:Connect(function()
   camera.FieldOfView = 70 --Default I believe
end)

No, No, I meant like, ADS, or Aim-Down-Sights

Oh mb I searched up and isn’t just an animation?

viewport frames

worrdssssssssssssss

CFrame. Ill provide Psuedo

local brr = Cframe.new(x,y,z)
userinputservice:rightclick
brr=Cframe.new(aiming cframe)
else
brr=Cframe.new()
end

runservice loop or smth similar
gun:pivotto(CurrentCam.Cframe*brr)
end

I dont know how your framework runs so Im not able to provide anything copy and paste obvi, this is just how it would go.
Cframes and stuff for more

How would I get the aiming frame?

Play around with it. If you have a general OffsetFrame you can refer off of that

Never mind, figured it out using anims

lol, took a lot of trial and error