How do i make an aiming system to my viewmodel

i want to make an aiming system to my viewmodel but i dont know how anyone can help me

that part is an aimpart

local isAiming = false
local Viewmodel = game.ReplicatedStorage:WaitForChild(“viewmodel”)
local userinputservice = game:GetService(“UserInputService”)

Viewmodel.Parent = game.Workspace.Camera
game:GetService(“RunService”).RenderStepped:Connect(function(dt)
MainModule.update(Viewmodel, dt)

end)

userinputservice.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton2 then
isAiming = true
end
end)

Blockquote