so i am making a gun and i am making it so when you look up the gun follows the camera going up/down when nessesary for this, i have the script:
script.Parent.Parent.tool:SetPrimaryPartCFrame(camera.CFrame+Vector3.new(0,-1,0))
so when you look straight it is fine but when it points up it goes back and when it points down it goes forwards have you guys ever got this to work? if so can you tell me what to change as i have been working on this for a couple days
https://photos.app.goo.gl/7YZa12dAbZVo1gaM9
GUYS I DID IT I ACCEDENTLY DID IT FIRST OF ALL WOOOOHOOOO!!!! OK LET me show you how, so i made the handle go up by one stud and because of that at the end i got rid of the vector3.new because when i looked up it lowers it because i made it go down so i dont need it anymore so yeah never have any vector 3s if you think you need it, just change the handle's position i am insanely happy about this discovery have a nice day guys!
script.Parent.Parent.tool:SetPrimaryPartCFrame(camera.CFrame)

1 comment
tell me if i wasn't through enough with my explanation