of     1   

peoplemove12
#143441377Wednesday, August 13, 2014 2:53 AM GMT

I'm having issues with using _G, could someone help me or explain the matter? I want to be able to set all my variables in one script for efficiency. Something like this: _G.Cash = script.Parent.Parent:WaitForChild("Cash").Value while true do script.Parent.Text = _G.Cash wait() end This is not working well for me. Is their something i'm missing?
islandmaker2012
#143441596Wednesday, August 13, 2014 2:55 AM GMT

while wait() do if not _G.Cash then wait() end script.Parent.Text = _G.Cash end --also while wait() do _G.Cash = script.Parent.Parent:WaitForChild("Cash").Value end
Goulstem
#143441740Wednesday, August 13, 2014 2:57 AM GMT

I assume that the value is a number so; script.Parent.Text = tostring(_G.Cash)

    of     1