Advertisement
KashTheKingYT

UI

May 1st, 2022
1,299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. local gui = script.Parent.Parent
  2. local employmentFrame = script.Parent
  3.  
  4. local description = employmentFrame:FindFirstChild("Description")
  5. local joinBtn = employmentFrame:FindFirstChild("Join")
  6. local closeBtn = employmentFrame:FindFirstChild("Close")
  7. local title = employmentFrame:FindFirstChild("Title")
  8.  
  9. --Functionality
  10.  
  11. function join()
  12.     game.ReplicatedStorage.JoinJob:FireServer(employmentFrame.Job.Value)
  13.     employmentFrame.Visible = false
  14. end
  15.  
  16. function close()
  17.     employmentFrame.Visible = false
  18. end
  19.  
  20. --Connections
  21.  
  22. joinBtn.Activated:Connect(join)
  23. closeBtn.Activated:Connect(close)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement