I use a hardcore cash multiplier and a gamepass multiplier in me game but the hardcore multiplier does not seem to work.

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local robberycash = character:WaitForChild("RobberyCash")
		local humanoidrootpart = character:WaitForChild("HumanoidRootPart")
		humanoidrootpart.Changed:Connect(function()
			if humanoidrootpart.Anchored == true and player.Character.PlantingABomb.Value == false then
					local market = game:GetService("MarketplaceService")
					if market:UserOwnsGamePassAsync(player.UserId, 9059855) then
					robberycash.Value = robberycash.Value *2
				else
					if character:WaitForChild("HardcoreEnabled").Value == true then
					robberycash.Value = robberycash.Value *2
					end
				end
			end
		end)
	end)
end)

Solutions?