|
| 30 Jul 2015 10:25 PM |
I get kicked from game for robbing a bank I'm working on, here is output everytime:
23:24:25.759 - httpGet &disconnect=true failed. Trying again. Error: &disconnect=true: Trust check failed, The operation completed successfully. . Elapsed time: 0 |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2015 10:39 PM |
Script:
wait() local amnt1 = script.Parent local amnt = 1875 local bnk = game.Lighting.BankGui local plr = game.Players.LocalPlayer local statz = plr:FindFirstChild("leaderstats") local Money = statz.Money local cntdown = bnk.Countdown.Text local countdownamnt = 10
amnt1.MouseButton1Down:connect(function() local plrg = plr:WaitForChild("PlayerGui") local ba = plrg.BankGuiSelect ba:Destroy() print("destroyed") wait(0.05) bnk:Clone().Parent = plr.PlayerGui local cntdowng = plrg.BankGui local bankcount = cntdowng.Countdown for i = countdownamnt,0,-1 do wait(1) bankcount.Text = i if bankcount.Text == "0" then Money.Value = Money.Value + amnt cntdowng:Destroy() end end end)
When I move around after clicking the amount (gui before this to show up this and run it) and move around with this running, it counts down a bit then crashes me with that error. |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2015 10:46 PM |
Bump..
Sorry for asking a lot of questions, this is my last. |
|
|
| Report Abuse |
|
|
| |
|
JDLENL
|
  |
| Joined: 23 Dec 2009 |
| Total Posts: 1109 |
|
|
| 31 Jul 2015 12:00 AM |
"local bnk = game.Lighting.BankGui" people still do this? |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 12:02 AM |
What?
I assume you mean store things in Lighting? Heh. Some say do, some day don't. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 12:08 AM |
| The process performance is running way to extremely high. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 12:16 AM |
| What do you mean by that? I don't understand how to change it or what not to fix it and make it run more efficiently. |
|
|
| Report Abuse |
|
|
cgjnm
|
  |
| Joined: 22 Dec 2011 |
| Total Posts: 2347 |
|
|
| 31 Jul 2015 12:18 AM |
if bankcount.Text == "0" then Money.Value = Money.Value + amnt cntdowng:Destroy() end
dont need this
-----------
for i = 1, 100 do print(i) wait() end print('i == 100')
The for loop will finish after the max number is reached, so don't need the 'if numba == 0' |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 12:26 AM |
wait() local amnt1 = script.Parent local amnt = 1875 local bnk = game.Lighting.BankGui local plr = game.Players.LocalPlayer local statz = plr:FindFirstChild("leaderstats") local Money = statz.Money local cntdown = bnk.Countdown.Text local countdownamnt = 10
amnt1.MouseButton1Down:connect(function() local plrg = plr:WaitForChild("PlayerGui") local ba = plrg.BankGuiSelect ba:Destroy() print("destroyed") wait(0.05) bnk:Clone().Parent = plr.PlayerGui local cntdowng = plrg.BankGui local bankcount = cntdowng.Countdown for i = countdownamnt,0,-1 do bankcount.Text = i wait(10) Money.Value = Money.Value + amnt cntdowng:Destroy()
end end)
Doesn't crash, which is good but doesn't countdown. |
|
|
| Report Abuse |
|
|
cgjnm
|
  |
| Joined: 22 Dec 2011 |
| Total Posts: 2347 |
|
|
| 31 Jul 2015 12:27 AM |
...
for i = countdownamnt,0,-1 do wait(1) bankcount.Text = i end Money.Value = Money.Value + amnt cntdowng:Destroy() |
|
|
| Report Abuse |
|
|
| |
|