Advertisement
HowToRoblox

PaycheckGuiHandler

Oct 16th, 2021
2,117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. script.Parent.Visible = false
  2.  
  3.  
  4. local re = game.ReplicatedStorage:WaitForChild("PaycheckRE")
  5.  
  6.  
  7. script.Parent.ClaimButton.MouseButton1Click:Connect(function()
  8.    
  9.     script.Parent.Visible = false
  10. end)
  11.  
  12.  
  13. re.OnClientEvent:Connect(function(cash)
  14.    
  15.     script.Parent.Visible = true
  16.    
  17.     script.Parent.CashAmount.Text = "$" .. cash
  18.     script.Parent.PlayerName.Text = game.Players.LocalPlayer.Name
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement