Advertisement
DarkHorse89

Untitled

Aug 30th, 2023 (edited)
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local mouse = player:GetMouse()
  3.  
  4. local tool1 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
  5. local tool2 = Instance.new("Tool",game.Players.LocalPlayer.Backpack)
  6. local tool3 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
  7. local tool4 = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
  8. local tool5 = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
  9.  
  10. tool1.BinType = "Hammer"
  11. tool3.BinType = "Grab"
  12.  
  13. tool2.Name = "Copy"
  14. tool4.Name = "ShowPath"
  15. tool5.Name = "RenamePartToBTOOLSPart"
  16.  
  17. local tool2_mesh_part = Instance.new("MeshPart", game.Players.LocalPlayer.Backpack.ShowPath)
  18. tool2_mesh_part.MeshId = 'rbxassetid://92656610'
  19. tool2_mesh_part.TextureID = 'rbxassetid://92658105'
  20. tool2_mesh_part.Name = "Handle"
  21.  
  22. local tool4_mesh_part = Instance.new("MeshPart", game.Players.LocalPlayer.Backpack.ShowPath)
  23. tool4_mesh_part.MeshId = 'rbxassetid://92656610'
  24. tool4_mesh_part.TextureID = 'rbxassetid://92658105'
  25. tool4_mesh_part.Name = "Handle"
  26.  
  27. local tool5_mesh_part = Instance.new("MeshPart", game.Players.LocalPlayer.Backpack.RenamePartToBTOOLSPart)
  28. tool5_mesh_part.MeshId = 'rbxassetid://92656610'
  29. tool5_mesh_part.TextureID = 'rbxassetid://92658105'
  30. tool5_mesh_part.Name = "Handle"
  31.  
  32. local checking_pos = false
  33. local renaming_part = false
  34. local copying = false
  35.  
  36. tool4.Equipped:Connect(function ()
  37. checking_pos = true
  38. end)
  39. tool4.Unequipped:Connect(function ()
  40. checking_pos = false
  41. end)
  42.  
  43. tool5.Equipped:Connect(function ()
  44. renaming_part = true
  45. end)
  46. tool5.Unequipped:Connect(function ()
  47. renaming_part = false
  48. end)
  49.  
  50. tool2.Equipped:Connect(function ()
  51. copying = true
  52. end)
  53. tool2.Unequipped:Connect(function ()
  54. copying = false
  55. end)
  56.  
  57. mouse.Button1Up:Connect(function ()
  58. if checking_pos then
  59. print("\n")
  60. print("CFrame: "..tostring(mouse.Target.CFrame))
  61. print("Position: "..tostring(mouse.Target.CFrame.Position))
  62. print("Path: "..tostring(mouse.Target:GetFullName()))
  63. print("\n")
  64. elseif renaming_part then
  65. mouse.Target.Name = "BTOOLSPart"
  66. elseif copying then
  67. mouse.Target:Copy()
  68. end
  69. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement