Problem with viewmodels

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make the viewmodel not going through object

  2. What is the issue? Include screenshots / videos if possible!
    I have a viewmodel and it is uncollide so it’s going through objects. I want to make it not going through object is there any solution?


    image

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local equipped = false

script.Parent.Equipped:Connect(function()
	local arms = game.ReplicatedStorage.Viewmodels.v_gun:Clone()

	arms.Parent = workspace

--some unimportant stuff

	equipped = true
	arms.Parent = workspace
end)