Advertisement
Scriptorz5

Tool Gui

May 7th, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.08 KB | None | 0 0
  1. bin = Instance.new("Tool")
  2. bin.Parent = Game.Players.atu1000.Backpack
  3. bin.Name = "gui tool"
  4. script.Parent = bin
  5. Tool = bin
  6. --Gui------------------------------------------------------------------------------------------------------------
  7. vip = "atu1000"
  8. plyr = game.Players:findFirstChild(vip)
  9. pg = plyr:findFirstChild("PlayerGui")
  10.  
  11. s = Instance.new("ScreenGui")
  12. s.Name = "gui"
  13. s.Parent = pg
  14.  
  15. sc = Instance.new("Frame")
  16. sc.Parent = s
  17. sc.Visible = false
  18.  
  19. tx = Instance.new("TextLabel")
  20. tx.BackgroundTransparency = 0
  21. tx.Name = "Text - Reset"
  22. tx.BackgroundColor3 = Color3.new(0, 0, 0)
  23. tx.Parent = sc
  24. tx.Position = UDim2.new(0, 0, 0, 0)
  25. tx.Size = UDim2.new(0, 300, 0, 200)
  26. tx.Text = ""
  27.  
  28. tx = Instance.new("TextButton")
  29. tx.BackgroundTransparency = 0
  30. tx.Name = "Text - Reset"
  31. tx.BackgroundColor3 = Color3.new(1, 1, 1)
  32. tx.Parent = sc
  33. tx.Position = UDim2.new(0, 10, 0, 10)
  34. tx.Size = UDim2.new(0, 99, 0, 20)
  35. tx.Text = "Part1"
  36.  
  37. tx.MouseButton1Click:connect(function()
  38. human = plyr.Character:findFirstChild("Humanoid")
  39. if human ~= nil then
  40.  
  41. end
  42. end)
  43.  
  44. tx = Instance.new("TextButton")
  45. tx.BackgroundTransparency = 0
  46. tx.Name = "Text - Reset"
  47. tx.BackgroundColor3 = Color3.new(1, 1, 1)
  48. tx.Parent = sc
  49. tx.Position = UDim2.new(0, 10, 0, 35)
  50. tx.Size = UDim2.new(0, 99, 0, 20)
  51. tx.Text = "Part2"
  52.  
  53. tx.MouseButton1Click:connect(function()
  54. human = plyr.Character:findFirstChild("Humanoid")
  55. if human ~= nil then
  56.  
  57. end
  58. end)
  59.  
  60. tx = Instance.new("TextButton")
  61. tx.BackgroundTransparency = 0
  62. tx.Name = "Text - Reset"
  63. tx.BackgroundColor3 = Color3.new(1, 1, 1)
  64. tx.Parent = sc
  65. tx.Position = UDim2.new(0, 10, 0, 60)
  66. tx.Size = UDim2.new(0, 99, 0, 20)
  67. tx.Text = "Part3"
  68.  
  69. tx.MouseButton1Click:connect(function()
  70. human = plyr.Character:findFirstChild("Humanoid")
  71. if human ~= nil then
  72.  
  73. end
  74. end)
  75.  
  76. plyr.Chatted:connect(function(msg)
  77. if msg == "removed" then
  78. sc:Remove()
  79. end
  80. end)
  81.  
  82. function notool()
  83. sc.Visible = false
  84. end
  85.  
  86. function tool()
  87. sc.Visible = true
  88. end
  89.  
  90. Tool.Equipped:connect(tool)
  91. Tool.Unequipped:connect(notool)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement