Advertisement
Guest User

Untitled

a guest
May 16th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local mouse = player:GetMouse()
  3. local Enabled = false
  4.  
  5. mouse.Button1Down:connect(function()
  6. if mouse.Target ~= nil then
  7. while Enabled == true do
  8. wait()
  9. local part = Instance.new("Part", game.Workspace)
  10. part.Position = Vector3.new(mouse.Hit.X, mouse.Hit.Y, mouse.Hit.Z)
  11. part.Anchored = false
  12. part.BackSurface = "Weld"
  13. part.BottomSurface = "Weld"
  14. part.FrontSurface = "Weld"
  15. part.LeftSurface = "Weld"
  16. part.RightSurface = "Weld"
  17. part.TopSurface = "Weld"
  18. end
  19. end
  20. end)
  21.  
  22. mouse.KeyDown:connect(function(key)
  23. if key == "q" then
  24. if Enabled == false then
  25. Enabled = true
  26. else
  27. Enabled = false
  28. end
  29. end
  30. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement