So I'm making a tool that moves with the camera, that works fine, you look up and down and it follows where you look, but when you look anywhere, the character glitches and flies everywhere, shown in the video below.
https://vimeo.com/547219027
I'm thinking it's some sort of collision issue, but my handle and model aren't cancollide and the handle is massless. I checked multiple other people with a similar question, but it didn't help.
This is the code that makes the model move with the camera, I don't know what to change about it in order to fix it, I tried multiple things, changing pieces, removing bits, etc.
game.Workspace.CurrentCamera.Changed:Connect(function() script.Parent.Handle.CFrame = game.Workspace.CurrentCamera.CFrame + game.Workspace.CurrentCamera.CFrame.LookVector*4 end)
If any clarification is needed, I'd be happy to clarify.