-
Well basically this is my first post as an official DevForum member lol but anyway, that’s not the focus right now. I was (am) making an fps system with a gun, just to really test and learn, and I’m not getting my camera in front of my sights, basically.
This part of the script below is basically the function that should make things happen lol, I tried using lerp() and tweenservice, I kept hunting on DevForum if any other dev had similar problems, and I kept hunting functions on DevHub to see if I could find anything that could help me, the streamable link below is a test I tried to do, in which I had tried using tweenservice to make the camera.CFrame go to a part that I had positioned in front of the holographic sight, but it didn’t work.
mouse.Button2Down:Connect(function()
local aimcfr = CFrame.new()
if Aiming == false then
Aiming = true
print(Aiming)
aimcfr = aimcfr:Lerp(Aim.CFrame,1)
elseif Aiming then
aimcfr = aimcfr:Lerp(CFrame.new(),1)
Aiming = false
print(Aiming)
end
end)
But anyway, if anyone can help me, I thank you from my heart <3 and hope we have a good time here on DevForum, I want to help you and meet other developers and most importantly: (in my opinion) make a difference! This is my dream since I was a kid
with all the love in the world
Signed: Caio (I know it’s not a letter, leave me alone >:3)