|
| 19 Jun 2015 04:56 PM |
local Player = script.Parent.Parent.Parent.Parent.Parent local PlayerGui = Player.PlayerGui -- Getting stuff from the PlayerGui local BankSystemGui = PlayerGui:WaitForChild("BankSystemGui") local TakeOut = BankSystemGui:WaitForChild("TakeOut") local Out1 = TakeOut:WaitForChild("TakeOut1") local Out2 = TakeOut:WaitForChild("TakeOut2") local CurrentAmount = TakeOut:WaitForChild("CurrentAmount") -- System Stuff local BankingSystem = Player:WaitForChild(""..Player.Name.."'s System") local InBankCash = BankingSystem:FindFirstChild("InBankCash")
InBankCash.Changed:connect(function() CurrentAmount.Text = tonumber(InBankCash) end)
... Uhhhh I really got no idea what went wrong.
I stole YOUR siggy! |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Jun 2015 05:07 PM |
Uhm. Setting text to a number? Did you mean tostring?
I have no idea what you did to be honest but check that first ^-^ |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Jun 2015 06:27 PM |
Nope, it didn't change.
I stole YOUR siggy! |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2015 06:30 PM |
Hellpp. q.q
I stole YOUR siggy! |
|
|
| Report Abuse |
|
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 19 Jun 2015 06:32 PM |
local Player = script.Parent.Parent.Parent.Parent.Parent local PlayerGui = Player:WaitForChild("PlayerGui") -- Getting stuff from the PlayerGui local BankSystemGui = PlayerGui:WaitForChild("BankSystemGui") local TakeOut = BankSystemGui:WaitForChild("TakeOut") local Out1 = TakeOut:WaitForChild("TakeOut1") local Out2 = TakeOut:WaitForChild("TakeOut2") local CurrentAmount = TakeOut:WaitForChild("CurrentAmount") -- System Stuff local BankingSystem = Player:WaitForChild(Player.Name.."'s System") local InBankCash = BankingSystem:WaitForChild("InBankCash")
InBankCash.Changed:connect(function() CurrentAmount.Text = tostring(InBankCash) end)
|
|
|
| Report Abuse |
|
|
|
| 19 Jun 2015 06:52 PM |
Doesn't work, @Above
Idk. All it's supposed to do is change the text of the TextLabel to the value of the InBankCash.
I stole YOUR siggy! |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 19 Jun 2015 07:00 PM |
local Player = script.Parent.Parent.Parent.Parent.Parent local PlayerGui = Player.PlayerGui -- Getting stuff from the PlayerGui local BankSystemGui = PlayerGui:WaitForChild("BankSystemGui") local TakeOut = BankSystemGui:WaitForChild("TakeOut") local Out1 = TakeOut:WaitForChild("TakeOut1") local Out2 = TakeOut:WaitForChild("TakeOut2") local CurrentAmount = TakeOut:WaitForChild("CurrentAmount") -- System Stuff local BankingSystem = Player:WaitForChild(""..Player.Name.."'s System") local InBankCash = BankingSystem:FindFirstChild("InBankCash")
InBankCash.Changed:connect(function() CurrentAmount.Text = "" .. tostring(InBankCash.Value) .. "" end) |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2015 07:03 PM |
Still not working. Also, why are you guys saying tostring. It's making sure the text on the textbox is a number, so tonumber
I stole YOUR siggy! |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Jun 2015 07:06 PM |
| Your previous post didn't make any sense... |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2015 07:07 PM |
Nothing at all.
It's not good when the output is silent.
I stole YOUR siggy! |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2015 07:09 PM |
| Maybe you should give the whole gui with the scripts in a model... |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2015 07:11 PM |
Maybe I shouldn't since I got trust issues.
I stole YOUR siggy! |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2015 07:11 PM |
| Guess you won't get it fixed. |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2015 07:14 PM |
| Try InBankCash.Value.Changed if not then idk. |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2015 07:14 PM |
It's not a long script. Nobody has given me a right script yet.
Should be fairly easy to fix as well.
First attempt with using tostring and tonumber, and people were telling me to use tonumber and not tostring because tostring is changing a number to text.
I stole YOUR siggy! |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Jun 2015 07:19 PM |
It didn't. Idk.
I stole YOUR siggy! |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2015 07:22 PM |
local Player = script.Parent.Parent.Parent.Parent.Parent local PlayerGui = Player.PlayerGui
-- Getting stuff from the PlayerGui local BankSystemGui = PlayerGui:WaitForChild("BankSystemGui") local TakeOut = BankSystemGui:WaitForChild("TakeOut") local Out1 = TakeOut:WaitForChild("TakeOut1") local Out2 = TakeOut:WaitForChild("TakeOut2") local CurrentAmount = TakeOut:WaitForChild("CurrentAmount")
-- System Stuff local BankingSystem = Player:WaitForChild(""..Player.Name.."'s System") local InBankCash = BankingSystem:FindFirstChild("InBankCash")
InBankCash.Changed:connect(function() CurrentAmount.Text = InBankCash.Value end)
That will work. I know for a fact, as I tried it. |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2015 07:23 PM |
--Try this:
local Player = script.Parent.Parent.Parent.Parent.Parent local PlayerGui = Player.PlayerGui -- Getting stuff from the PlayerGui local BankSystemGui = PlayerGui:WaitForChild("BankSystemGui") local TakeOut = BankSystemGui:WaitForChild("TakeOut") local Out1 = TakeOut:WaitForChild("TakeOut1") local Out2 = TakeOut:WaitForChild("TakeOut2") local CurrentAmount = TakeOut:WaitForChild("CurrentAmount") -- System Stuff local BankingSystem = Player:WaitForChild(""..Player.Name.."'s System") local InBankCash = BankingSystem:FindFirstChild("InBankCash")
InBankCash.Value.Changed:connect(function() CurrentAmount.Text = tostring(InBankCash.Value) end)
--If not, then it probably got messed up by your waitforchilds. |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2015 07:25 PM |
--Or this:
local Player = script.Parent.Parent.Parent.Parent.Parent local PlayerGui = Player.PlayerGui -- Getting stuff from the PlayerGui local BankSystemGui = PlayerGui:WaitForChild("BankSystemGui") local TakeOut = BankSystemGui:WaitForChild("TakeOut") local Out1 = TakeOut:WaitForChild("TakeOut1") local Out2 = TakeOut:WaitForChild("TakeOut2") local CurrentAmount = TakeOut:WaitForChild("CurrentAmount") -- System Stuff local BankingSystem = Player:WaitForChild(""..Player.Name.."'s System") local InBankCash = BankingSystem:FindFirstChild("InBankCash")
repeat CurrentAmount.Text = tostring(BankingSystem.InBankCash.Value) wait() until script == nil |
|
|
| Report Abuse |
|
|