SHOW:
|
|
- or go back to the newest paste.
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://131154740" |
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.BrickColor = BrickColor: "Lime green" |
18 | + | part.Size = Vector3.new(5, 2, 1) |
19 | - | part.Material = Neon |
19 | + | part.CFrame = mouse.hit |
20 | - | part.Scale = Vector3.new(2,2,2) |
20 | + | |
21 | part.BrickColor = BrickColor.Random() | |
22 | end | |
23 | ||
24 | - | elseif key == "e" then |
24 | + | |
25 | - | for i, v in pairs(workspace:GetChildren()) do |
25 | + | |
26 | - | if v:IsA "Part" and v.Name == "Brick" then |
26 | + | |
27 | - | v:remove() |
27 | + |