--// Local Script

        local player = game.Players.LocalPlayer
  game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function(player) 
    print ('Player is Ded')
        local CharType = player.Type.Value
      
    if CharType == 'NarutoPlayer' then
	
	print ('Traced:Player is a Naruto')
	
	game.ReplicatedStorage.RemoteNaruto:FireServer()

	
 	elseif CharType == 'LuffyPlayer' then
	
	print ('Traced:Player is a Luffy')
	
	game.ReplicatedStorage.RemoteLuffy:FireServer()
	
	elseif CharType == 'GokuPlayer' then
	
	print ('Traced:Player is a Goku')
	
	game.ReplicatedStorage.RemoteGoku:FireServer()
    
end

end)



 

What's wrong with my script? Btw it's supposed to Fire a Remote Event when the player dies or reset depending on a player's String Value.