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://130776004" |
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.Material = "Granite" |
19 | - | part.Material = Neon |
19 | + | part.Size = Vector3.new(2, 2, 2) |
20 | - | part.Scale = Vector3.new(2,2,2) |
20 | + | part.CFrame = mouse.hit |
21 | while wait() do | |
22 | part.BrickColor = BrickColor.Random() | |
23 | end | |
24 | elseif key == "e" then | |
25 | for i, v in pairs(workspace:GetChildren()) do | |
26 | if v:IsA "Part" and v.Name == "Brick" then | |
27 | v:remove() | |
28 | end | |
29 | end | |
30 | end | |
31 | end) |