Er1x_Official

How To Make a Tool GUI Roblox - LocalScript

Jun 16th, 2021
5,827
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local par = script.Parent
  2. local remote = script.Parent.RemoteEvent
  3.  
  4. par.Tool1.MouseButton1Click:Connect(function()
  5.     remote:FireServer("Tool1")
  6.     par.Visible = false
  7. end)
  8.  
  9. par.Tool2.MouseButton1Click:Connect(function()
  10.     remote:FireServer("Tool2")
  11.     par.Visible = false
  12. end)
  13.  
  14. par.Tool3.MouseButton1Click:Connect(function()
  15.     remote:FireServer("Tool3")
  16.     par.Visible = false
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment