Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- // Variables //--
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- -- // Music // --
- local Music = Instance.new("Sound", game.Workspace)
- Music.SoundId = "rbxassetid://774530420"
- Music.Volume = 10
- Music.Looped = true
- Music:Play()
- -- // Events // --
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- local part = Instance.new("Part", workspace)
- part.Name = "Brick"
- part.Size = Vector3.new(5, 2, 1)
- part.CFrame = mouse.hit
- while wait() do
- part.BrickColor = BrickColor.Random()
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement