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://131154740"
- 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.BrickColor = BrickColor: "Lime green"
- part.Material = Neon
- part.Scale = Vector3.new(2,2,2)
- while wait() do
- part.BrickColor = BrickColor.Random()
- end
- elseif key == "e" then
- for i, v in pairs(workspace:GetChildren()) do
- if v:IsA "Part" and v.Name == "Brick" then
- v:remove()
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement