Advertisement
AchilleTheScRiPters

Part Creator

Jul 30th, 2022 (edited)
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.81 KB | None | 0 0
  1. --use find to replace "your username" whith your roblox user name
  2.  
  3. wait(2)
  4.  
  5. local u = Instance.new("Tool")
  6. u.Parent = game.Players["your  username"].Backpack
  7. u.Name = "Create Part"
  8. local f = Instance.new("Part")
  9. f.Parent = game.Players["your  username"].Backpack["Create Part"]
  10. f.Name = "Handle"
  11. f.Color = Color3.fromRGB(9, 152, 143)
  12.  
  13. local y = Instance.new("Part")
  14. y.Parent = workspace
  15. y.Name = "Wall"
  16. y.Color = Color3.fromRGB(166,78,15)
  17. y.Anchored = true
  18.  
  19. game.Players["your  username"].Backpack["Create Part"].Activated:Connect(function()
  20.  
  21.     local tool = game.Workspace["your  username"]["Create Part"]
  22.     local wall = game.Workspace.Wall
  23.  
  24.     if tool.Activated then
  25.         local x = wall:Clone()
  26.         x.Parent = workspace
  27.         x.Position = game.Workspace["your  username"].RightFoot.Position
  28.     else
  29.         wait()
  30.     end
  31. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement