Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---------------------------
  2. --Created by DJwaffle2005--
  3. ---------------------------
  4. wait(0.1)
  5.  
  6. player = game.Players.Noobyyyyyyyy
  7. workspacePlayer = game.Workspace.Noobyyyyyyyy
  8. local ff = Instance.new("ForceField") --Creates forcefield
  9. ff.Parent = workspacePlayer
  10.  
  11. workspacePlayer.Humanoid.WalkSpeed = 30
  12.  
  13. local tool1 = Instance.new("HopperBin") --Gives the player a grab tool.
  14. tool1.Name = "Grab"
  15. tool1.Parent = player.Backpack
  16. tool1.BinType = "Grab"
  17. print("Gave grab tool")
  18.  
  19. local tool2 = Instance.new("HopperBin") --Gives the player a clone tool.
  20. tool2.Name = "Clone"
  21. tool2.Parent = player.Backpack
  22. tool2.BinType = "Clone"
  23. print("Gave clone tool")
  24.  
  25. local tool3 = Instance.new("HopperBin") --Gives the player a destroy tool.
  26. tool3.Name = "Hammer"
  27. tool3.Parent = player.Backpack
  28. tool3.BinType = "Hammer"
  29. print("Gave delete tool")
  30.  
  31. local tool4 = Instance.new("HopperBin") --Gives the player a tool where it spawns a part.
  32. tool4.Name = "New Part"
  33. tool4.Parent = player.Backpack
  34. tool4.BinType = "Script"
  35. print("Gave new part tool")
  36.  
  37. local tool5 = Instance.new("HopperBin") --Gives the player a tool where it spawns a part.
  38. tool5.Name = "Paint"
  39. tool5.Parent = player.Backpack
  40. tool5.BinType = "Script"
  41. print("Gave paint tool")
  42.  
  43. local tool6 = Instance.new("HopperBin") --Gives the player a tool where it spawns a part.
  44. tool6.Name = "Anchor"
  45. tool6.Parent = player.Backpack
  46. tool6.BinType = "Script"
  47. print("Gave anchor tool")
  48.  
  49. local tool7 = Instance.new("HopperBin") --Gives the player a tool where it spawns a part.
  50. tool7.Name = "Un-Anchor"
  51. tool7.Parent = player.Backpack
  52. tool7.BinType = "Script"
  53. print("Gave un-anchor tool")
  54.  
  55. local tool8 = Instance.new("HopperBin") --Gives the player a tool where it spawns a part.
  56. tool8.Name = "Lock"
  57. tool8.Parent = player.Backpack
  58. tool8.BinType = "Script"
  59. print("Gave lock tool")
  60.  
  61. local tool9 = Instance.new("HopperBin") --Gives the player a tool where it spawns a part.
  62. tool9.Name = "Unlock"
  63. tool9.Parent = player.Backpack
  64. tool9.BinType = "Script"
  65. print("Gave unlock tool")
  66.  
  67. playerMouse = game.Players.LocalPlayer:GetMouse()
  68.  
  69.  
  70. --Functions--
  71. function lock()
  72. playerMouse.Target.Locked = true
  73. print("Locked "..playerMouse.Target.Name)
  74. end
  75.  
  76. function unlock()
  77. playerMouse.Target.Locked = false
  78. print("Unlocked "..playerMouse.Target.Name)
  79. end
  80.  
  81. function anchor()
  82. playerMouse.Target.Anchored = true
  83. print("Anchored "..playerMouse.Target.Name)
  84. end
  85.  
  86. function unanchor()
  87. playerMouse.Target.Anchored = false
  88. print("Un-anchored "..playerMouse.Target.Name)
  89. end
  90.  
  91. function paint()
  92. playerMouse.Target.BrickColor = BrickColor.Random()
  93. end
  94.  
  95. function create(mouse)
  96. local part = Instance.new("Part")
  97. part.Parent = game.Workspace
  98. part.Position = player.Head.Position
  99. part.Anchored = true
  100. part.Locked = false
  101. print("Created a new part.")
  102. end
  103.  
  104. ------------------------
  105.  
  106. --Events-
  107.  
  108. tool4.Selected:connect(function(mouse)
  109. print("Selected.")
  110. mouse.Button1Down:connect(create)
  111. end)
  112.  
  113. tool5.Selected:connect(function(mouse)
  114. print("Selected.")
  115. mouse.Button1Down:connect(paint)
  116. end)
  117.  
  118. tool6.Selected:connect(function(mouse)
  119. print("Selected.")
  120. mouse.Button1Down:connect(anchor)
  121. end)
  122.  
  123. tool7.Selected:connect(function(mouse)
  124. print("Selected.")
  125. mouse.Button1Down:connect(unanchor)
  126. end)
  127.  
  128. tool8.Selected:connect(function(mouse)
  129. print("Selected.")
  130. mouse.Button1Down:connect(lock)
  131. end)
  132.  
  133. tool9.Selected:connect(function(mouse)
  134. print("Selected.")
  135. mouse.Button1Down:connect(unlock)
  136. end)
  137.  
  138. print("Gave tools to "..player.Noobyyyyyyyy..".")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement