My gun keeps disapearing?

I have a gun viewmodel but sometimes it just disappears, I know how to fix it but cant do it. Can someone tell me how to make view mode to classic when you die?

You can make a localscript in characterscripts, it sets the viewmode to classic when it triggers, which is when you spawn

I tried that dosent work

game:GetService('Players').PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function(character)
		character:WaitForChild("Humanoid").Died:connect(function()
			local player = game.Players.LocalPlayer
			player.CameraMode = Enum.CameraMode.Classic
		end)
	end)
end)

Shouldn’t you change the CameraMode in localscript instead of serverscript? If you are doing it in a localscript inside the characterscripts then, when someone dies, it won’t trigger because the script no longer exists… Try it like what I said, maybe that’ll work, just a localscript in characterscripts

wait()
local player = game.Players.LocalPlayer
player.CameraMode = Enum.CameraMode.Classic

dosent work hgfhgfhgfhgfhgfhgfhgf

Which script changes the camera mode?

wait I know what I did wrong… fdsfdsfds

So, did you receive any results?

No D: I have no idea why it dosent work

Can you post the scripts here?

Witch scripts are you talking about? I already posted the script I was using for this.

What script changes the roblox camera mode other than to classic?