|
| 16 Jun 2017 05:05 PM |
Output: Script 'Workspace . Upgrade Panel . Panel . SurfaceGui . ScrollingFrame . TextButton . Script', Line 5 ##Argument 1 #issing or ni###----- ======================================================================================== What I'm doing in this script is when you click with mouse button 1 #n the surface gui it goes to your local player and stores your name in the variable called player. This is because the rest of the game is dependent on on##########alue (which is named after the local player). Because of this, we need a variable to store what name it is. Once clicked, it will check your value of money to see it equal or higher than the product. We then introduce a new local variable called where (which hold the data of player.Value). It then does maths to remove 1000 f####the local players current value. It then makes blocks appear(not added to end of script yet) which are invisible. The script:~
---------------------------------------------------------------------------------------- pla#######ame.Players.LocalPlayer
script . Parent . Mouse Button 1 #lick : connect (function()
if game . ServerStorage . PlayerMoney : Find Fi###########player) then local Where = player . Value if Where >= 10######### Where = Where - 10######print("IT WORKS") warn("IT WORKS") else script . Parent . Text = "INVALID! NOT ENOUGH MONEY" end e#### end) ---------------------------------------------------------------------------------------- Spaces are added between dots to remove censoring --[End Log]--
|
|
|
| Report Abuse |
|