Hello,
I have encountered something quite strange with my view model, and I’ve been trying to fix it for 2 days now and what is happening is completely beyond me. For some reason, the view model (a dummy with a humanoid) will just randomly start moving forward after some amount of time in the roblox menu.
When I test the game, everything is working normally until I open the roblox menu 2 times, then a warning shows. I have looked up this warning but I still have no idea what this means and why it happens.
RunService:UnbindFromRenderStep removed different functions with same reference name utility-focus-state-inspect-Yabsor 2 times.
After leaving the roblox menu open for about a minute, the view model suddenly has collision and starts following the camera in the workspace (it’s only supposed to follow the camera on the client).
This is what it looks like on the server after the view model starts acting weird. Before it started acting weird, it was just sitting in one spot in the workspace.
The current system for the view model orientation delay is a part called cameraFollower that has an AlignOrientation, and it matches the orientation of the camera.
--move the viewModel to the camera follower
RunService.RenderStepped:Connect(function()
cameraFollower.Position = game.Workspace.CurrentCamera.CFrame.Position
cameraFollower.AlignOrientation.CFrame = game.Workspace.CurrentCamera.CFrame
viewModel:PivotTo(cameraFollower.CFrame)
end)
I will use something else in the future, this is just temporary
Any solution would help, this has literally been driving me crazy for 2 days and I have tried so many solutions and nothing has worked. I’ve has many problems with humanoids in the past so I’m assuming this is just another random behavior of a humanoid, but who knows at this point.
Thank you
ive had issues similar to this before and i always fixed them by turning off can collide on something. Is there anything in your character or vieemodel which has can collide true?
The code already loops through all the objects in the view model, and if anything has CanCollide set to true, then I set it to false. As a test fix, I’ve also tried using a while loop to constantly set all object’s CanCollide to false just to see if anything changed, but nothing different happened.
That is due to clothing loading with humanoids. Did you try changing the CollisionGroup of the entire View Model?
Not sure if you have a Torso in the model, but for some reason the Torso will always be set back to CanCollide while the Humanoid is in the same model. I had to do a similar solution for when I made arms view of a gun with animations, but not sure how much this will help (or how related the issue is).
I made a separate CollisionGroup, I think called “Arms” or something.
I made it not collidable with Default or with itself, and then I set the entire View Model to that CollisionGroup.
This actually fixed the collision part of it, thank you. There is still the issue where the view model randomly freezes, I still haven’t figured out why that happened or how to fix it. I have learned that the freezing starts even without opening the roblox menu, but opening the menu makes it freeze faster, and also unfocusing from the window for some reason.