Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 19 Nov 2012 08:52 PM |
user.PlayerGui.Health.Size = UDim2.new((i/100), 0, 1,0)
Workspace.Computer.Part.Script:16: attempt to perform arithmetic on global 'i' (a nil value)
--earlier in the script both of these work so im not sure what to do differently user.PlayerGui.Hacking.MainFrame.CaptureTiem.Health.Size = UDim2.new(((100-(Workspace.data.Time2CaptureSmallpipes.Value))/100), 0, 1,0) user.PlayerGui.Hacking.MainFrame.CaptureTiem.Percent.Text = tostring(100-(Workspace.data.Time2CaptureSmallpipes.Value)).."% Done" |
|
|
| Report Abuse |
|
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
| |
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
| |
|
|
| 19 Nov 2012 08:58 PM |
| Also, I'm not sure if this is a typo or not, but you said CaptureTiem instead of CaptureTime. |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 19 Nov 2012 09:11 PM |
This is a bigger section of the script for i=1, 100 do if check.Health > 0 then Workspace.data.Time2CaptureSmallpipes.Value = 100 - i wait(1) user.PlayerGui.Hacking.MainFrame.CaptureTiem.Health.Size = UDim2.new(((i)/100), 0, 1,0) user.PlayerGui.Hacking.MainFrame.CaptureTiem.Percent.Text = tostring(i).."% Done" |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 19 Nov 2012 09:11 PM |
| it isn't a typo, thanks though |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
| |
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 19 Nov 2012 09:29 PM |
try this?
for i=1, 100 do if check.Health > 0 then Workspace.data.Time2CaptureSmallpipes.Value = 100 - i wait(1) user.PlayerGui.Hacking.MainFrame.CaptureTiem.Health.Size = UDim2.new((tonumber(i)/100), 0, 1,0) user.PlayerGui.Hacking.MainFrame.CaptureTiem.Percent.Text = tostring(i).."% Done"
|
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 19 Nov 2012 10:01 PM |
| Nope, that gives the same error. |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2012 10:05 PM |
| Why would you be scripting things to start with? You have no active places. |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 19 Nov 2012 10:12 PM |
| Why would you even be writing here to start with? You have no books written. |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
| |
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
| |
|
|
| 20 Nov 2012 12:08 AM |
I can predict the next 5 posts: "Bump!" |
|
|
| Report Abuse |
|
|
| |
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 20 Nov 2012 12:16 AM |
| Guys I found the problem, stop bumping. |
|
|
| Report Abuse |
|
|