Advertisement
Pukaciu

Untitled

Aug 21st, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- // Variables //--
  2. local player = game.Players.LocalPlayer
  3. local mouse = player:GetMouse()
  4.  
  5. -- // Music // --
  6. local Music = Instance.new("Sound", game.Workspace)
  7. Music.SoundId = "rbxassetid://774530420"
  8. Music.Volume = 10
  9. Music.Looped = true
  10. Music:Play()
  11.  
  12. -- // Events // --
  13.  
  14. mouse.KeyDown:connect(function(key)
  15. if key == "q" then
  16. local part = Instance.new("Part", workspace)
  17. part.Name = "Brick"
  18. part.Size = Vector3.new(5, 2, 1)
  19. part.CFrame = mouse.hit
  20. while wait() do
  21. part.BrickColor = BrickColor.Random()
  22. end
  23.  
  24. end
  25. end
  26. end
  27. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement