Advertisement
Guest User

Untitled

a guest
May 16th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 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. end
  13. end
  14. end)
  15.  
  16. mouse.KeyDown:connect(function(key)
  17. if key == "q" then
  18. if Enabled == false then
  19. Enabled = true
  20. else
  21. Enabled = false
  22. end
  23. end
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement