Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i fix this Camera Coordinate glitch?

Asked by 6 years ago
Edited 6 years ago

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.

0
Do you want angle? Because what your script is saying so far is to glitch the character to the ground. hiimgoodpack 2009 — 6y
0
Aslong as it fix this issue, then yes. TinfoilbotGamer 35 — 6y
0
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. XAXA 1569 — 6y
0
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:) hiimgoodpack 2009 — 6y
View all comments (2 more)
0
I do that a lot ^ greatneil80 2647 — 6y
0
I am trying to make a gun viewmodel, however it isn't working as i go in first person. TinfoilbotGamer 35 — 6y

Answer this question