1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
quester [9]
2 years ago
12

PLEASE FIX THIS LUA SCRIPT

Engineering
2 answers:
yKpoI14uk [10]2 years ago
6 0

Answer: not sure

Explanation: brainly please

zavuch27 [327]2 years ago
5 0

Answer:

When declaring variables, you said “workspace.MeanEnemy”. What you should have done was “game.Workspace.MeanEnemy”. Same for the variable right under it. Other than that, seems to be all good!

Hope This Helped!

You might be interested in
Situation: Peter is designing a new hybrid car that functions on solar power. He is currently working on sketches of his design
givi [52]

Answer:

whats the question?

Explanation:

8 0
2 years ago
A home electrical system is joined to the electric company's system at the junction of the
aleksandrvk [35]

That would be B, I hope this helps!

5 0
2 years ago
A/an_ Oscilloscope uses a cathode ray tube and displays all voltages.
MrRa [10]

Answer:

I think it’s B, digital

Explanation:

3 0
3 years ago
12.50 An air conditioner operating at steady state takes in moist air at 28°C, 1 bar, and 70% relative humidity. The moist air f
Mandarinka [93]

Answer:

Hey smith please see attachments for answer:

Please rate me good.

The attachments will provide you a detailed answer

Explanation:

8 0
3 years ago
Same rule: If both players spend the same number of coins, player 2 gains 1 coin. Off-by-one rule: If the players do not spend t
Galina-37 [17]

Answer:

Check the explanation

Explanation:

1 -

public int getPlayer2Move(int round)

{

  int result = 0;

 

  //If round is divided by 3

  if(round%3 == 0) {

      result= 3;

  }

  //if round is not divided by 3 and is divided by 2

  else if(round%3 != 0 && round%2 == 0) {

      result = 2;

  }

  //if round is not divided by 3 or 2

  else {

      result = 1;

  }

 

  return result;

}

2-

public void playGame()

{

 

  //Initializing player 1 coins

  int player1Coins = startingCoins;

 

  //Initializing player 2 coins

  int player2Coins = startingCoins;

 

 

  for ( int round = 1 ; round <= maxRounds ; round++) {

     

      //if the player 1 or player 2 coins are less than 3

      if(player1Coins < 3 || player2Coins < 3) {

          break;

      }

     

      //The number of coins player 1 spends

      int player1Spends = getPlayer1Move();

     

      //The number of coins player 2 spends

      int player2Spends = getPlayer2Move(round);

     

      //Remaining coins of player 1

      player1Coins -= player1Spends;

     

      //Remaining coins of player 2

      player2Coins -= player2Spends;

     

      //If player 2 spends the same number of coins as player 2 spends

      if ( player1Spends == player2Spends) {

          player2Coins += 1;

          continue;

      }

     

      //positive difference between the number of coins spent by the two players

      int difference = Math.abs(player1Spends - player2Spends) ;

     

      //if difference is 1

      if( difference == 1) {

          player2Coins += 1;

          continue;

      }

     

      //If difference is 2

      if(difference == 2) {

          player1Coins += 2;

          continue;

      }

     

     

  }

 

  // At the end of the game

  //If player 1 coins is equal to player two coins

  if(player1Coins == player2Coins) {

      System.out.println("tie game");

  }

  //If player 1 coins are greater than player 2 coins

  else if(player1Coins > player2Coins) {

      System.out.println("player 1 wins");

  }

  //If player 2 coins is grater than player 2 coins

  else if(player1Coins < player2Coins) {

      System.out.println("player 2 wins");

  }

}

3 0
3 years ago
Other questions:
  • The small washer is sliding down the cord OA. When it is at the midpoint, its speed is 28 m/s and its acceleration is 7 m/s 2 .
    13·1 answer
  • A 1020 CD steel shaft is to transmit 15 kW while rotating at 1750 rpm. Determine the minimum diameter for the shaft to provide a
    10·1 answer
  • Water flows through a horizontal 60 mm diameter galvanized iron pipe at a rate of 0.02 m3/s. If the pressure drop is 135 kPa per
    9·1 answer
  • How does refrigeration preserve food and dead bodies​
    12·2 answers
  • A beam of span L meters simply supported by the ends, carries a central load W. The beam section is shown in figure. If the maxi
    5·1 answer
  • Which of these people is an engineer?
    13·1 answer
  • In order to fill a tank of 1000 liter volume to a pressure of 10 atm at 298K, an 11.5Kg of the gas is required. How many moles o
    11·1 answer
  • What is it that makes a battery rechargeable? How is it different from a regular battery?
    14·2 answers
  • Order of Design Process steps ?
    13·1 answer
  • A wheel spins at a constant angular speed of 24rad/s.How many revolutions will the dosk go through in 5minutes?​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!