opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 24 Apr 2014 02:20 PM |
Even when the Size is the same value as num it still will not end the repeat.
repeat wait() script.Parent.Parent.Value.Value = val num = ((6/#Numplayer) * val) if val == 0 then num = 1.2 end print(num) if script.Parent.Size.Y < num then script.Parent.Size = Vector3.new(script.Parent.Size.X, script.Parent.Size.Y + inc, script.Parent.Size.Z) script.Parent.CFrame = CFrame.new(script.Parent.Position.X, ((ypos.Position.Y + (ypos.Size.Y/2)) + (script.Parent.Size.Y/2)), script.Parent.Position.Z) elseif script.Parent.Size.Y > num then script.Parent.Size = Vector3.new(script.Parent.Size.X, script.Parent.Size.Y - inc, script.Parent.Size.Z) script.Parent.CFrame = CFrame.new(script.Parent.Position.X, ((ypos.Position.Y + (ypos.Size.Y/2)) + (script.Parent.Size.Y/2)), script.Parent.Position.Z) else print("Fits") break end until script.Parent.Size.Y == num |
|
|
| Report Abuse |
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 24 Apr 2014 02:30 PM |
The size isn't rounding. I'm getting like 6.0101022 End post. |
|
|
| Report Abuse |
|
youssef04
|
  |
| Joined: 22 Jan 2011 |
| Total Posts: 1745 |
|
|
| 24 Apr 2014 02:32 PM |
local val = game.Players.NumPlayers -- Not sure if it's NumPlayers or PlayersNum
|
|
|
| Report Abuse |
|