Basically I want the money to go up, I have shortened this script so you can only view where the problem is, if you want me to give you the full function I'd happily give it to you. `>

function Fire_Gun()

                      local HitHumanoid = FindFirstClass(HObj.Parent, "Zombie")
                  if HitHumanoid and HitHumanoid.Health == 0 then
                              local CreatorTag = Instance.new("ObjectValue")
                          CreatorTag.Value = Player
                              CreatorTag.Name = "creator"
                      CreatorTag.Parent = HitHumanoid
                          
                          while true do
wait(1)

game.Players.LocalPlayer.leaderstats.Money.Value =game.Players.LocalPlayer.leaderstats.Money.Value + 100

print("works") end

                              MarkHit()
                          



                                  end
                      
                          end end
              end)
              E.Parent = game.Workspace
          else
              HitHumanoid = Damage(HitObj, HitPos)
          end
      end

`