I've recently made a viewmodel script that will coordinate at 0,-12,0 while looped. Btu sadly it flings my character everywhere and makes me fly. Is there a way that i could fix this?
local viewmodel = game.Workspace.ViewModel
viewmodel.PrimaryPart = viewmodel.HumanoidRootPart
while wait() do
viewmodel:SetPrimaryPartCFrame(game.Workspace.Camera.CoordinateFrame * CFrame.new(0, -1.5, -1))
end
Thanks for reading.

6 comments
Do you want angle? Because what your script is saying so far is to glitch the character to the ground.
Aslong as it fix this issue, then yes.
It's very likely that some of the viewModel's parts are CanCollide. Make sure none of the parts in the viewModel can collide with the character.
Idk what you are trying to do, so I cannot provide a fix. I need to know what you are trying to do, as what you are doing is shoving the character into the ground (which is not very nice D:)
I do that a lot ^
I am trying to make a gun viewmodel, however it isn't working as i go in first person.