How Do I Remove A ViewModel Inside Of The CurrentCamera On Client Event?

local cam = workspace.CurrentCamera
game:GetService("ReplicatedStorage"):WaitForChild("Realizaiton").OnClientEvent:Connect(function()
	cam:WaitForChild("ViewModel"):Destroy()
	print("Realized")
	cam.CameraType = Enum.CameraType.Scriptable
	cam.CFrame = workspace:WaitForChild("Realize").CFrame

	wait(2)
	game:GetService("ReplicatedStorage"):WaitForChild("ViewModel"):Clone().Parent = cam
	cam.CameraType = Enum.CameraType.Custom
end)

Also the print statement prints and the CFrame is changed however the viewmodel is in the way and not getting destroyed.

1 Like

nevermind found the solution
(delete viewmodel script on client event and then delete it using the arms themselves :person_facepalming: :person_facepalming:)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.