HowToRoblox

PaycheckGuiHandler

Oct 16th, 2021
714
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data