SHOW:
|
|
- or go back to the newest paste.
| 1 | part = Instance.new("Part", owner.Character)
| |
| 2 | part.Massless = true | |
| 3 | part.BottomSurface = Enum.SurfaceType.Smooth | |
| 4 | part.TopSurface = Enum.SurfaceType.Smooth | |
| 5 | part.Size = Vector3.new(3.2,1.6,1.2) | |
| 6 | part.Name = "partlolagain" | |
| 7 | local tweenService = game:GetService("TweenService")
| |
| 8 | music = Instance.new("Sound", part)
| |
| 9 | music.SoundId = "rbxassetid://" | |
| 10 | music.Volume = 1 | |
| 11 | music.Looped = true | |
| 12 | music:Play() | |
| 13 | - | eq = Instance.new("EqualizerSoundEffect",music)
|
| 13 | + | |
| 14 | music.RollOffMinDistance = 20 | |
| 15 | Weld4 = Instance.new("Weld", owner.Character.Head)
| |
| 16 | Weld4.Part0 = part | |
| 17 | Weld4.Part1 = owner.Character.Head | |
| 18 | Weld4.C0 = CFrame.new(0,0,4.5) | |
| 19 | part.CanCollide = false | |
| 20 | part:SetNetworkOwner(owner) | |
| 21 | part.Material = Enum.Material.Neon | |
| 22 | part.Locked = true | |
| 23 | random2 = math.random(0.1,2) | |
| 24 | part:SetNetworkOwner(owner) | |
| 25 | random = math.random(1,5) | |
| 26 | coroutine.wrap(function() | |
| 27 | while true do | |
| 28 | wait(random) | |
| 29 | - | local Amplitude = math.clamp(music.PlaybackLoudness / 125, 0.1, 5) |
| 29 | + | coroutine.wrap(function() |
| 30 | spininfo = TweenInfo.new(random2,Enum.EasingStyle.Linear) | |
| 31 | - | part.Color = Color3.fromRGB(255,math.clamp(music.PlaybackLoudness / 1.75,0,255),0) |
| 31 | + | |
| 32 | Spin1 = tweenService:Create(Weld4,spininfo,{C0 = Weld4.C0 * CFrame.Angles(0,math.rad(120),math.rad(5))})
| |
| 33 | - | wait(0.0825) |
| 33 | + | Spin2 = tweenService:Create(Weld4,spininfo,{C0 = Weld4.C0 * CFrame.Angles(0,math.rad(240),math.rad(5))})
|
| 34 | Spin3 = tweenService:Create(Weld4,spininfo,{C0 = Weld4.C0 * CFrame.Angles(0,math.rad(360),math.rad(5))})
| |
| 35 | - | ]],part) |
| 35 | + | |
| 36 | Spin1:Play() | |
| 37 | Spin1.Completed:Connect(function()Spin2:Play() end) | |
| 38 | Spin2.Completed:Connect(function()Spin3:Play() end) | |
| 39 | Spin3.Completed:Connect(function()Spin1:Play() end) | |
| 40 | end)() | |
| 41 | local timeToFade3 = random | |
| 42 | - | local timeToFade = 0.0825 |
| 42 | + | local object3 = music |
| 43 | - | local object = part |
| 43 | + | local tweenInfo3 = TweenInfo.new(timeToFade3) |
| 44 | - | local tweenInfo = TweenInfo.new(timeToFade) |
| 44 | + | local goal4 = {}
|
| 45 | - | local goal = {}
|
| 45 | + | goal4.PlaybackSpeed = random2 |
| 46 | - | goal.Size = size |
| 46 | + | local tween4 = tweenService:Create(object3, tweenInfo3, goal4) |
| 47 | - | local shot = tweenService:Create(object, tweenInfo, goal) |
| 47 | + | tween4:Play() |
| 48 | - | local goal2 = {}
|
| 48 | + | random = math.random(1,5) |
| 49 | - | goal2.Color = color |
| 49 | + | |
| 50 | - | local shot2 = tweenService:Create(object, tweenInfo, goal2) |
| 50 | + | end)() |
| 51 | - | shot:Play() |
| 51 | + | |
| 52 | - | shot2:Play() |
| 52 | + | |
| 53 | local ReplicatedStorage = game:GetService("ReplicatedStorage")
| |
| 54 | local sizeevent = ReplicatedStorage:WaitForChild("sizeEvent")
| |
| 55 | local part = owner.Character:WaitForChild("partlolagain")
| |
| 56 | local music = part:WaitForChild("Themusic")
| |
| 57 | local MaxLoudness = 175 | |
| 58 | while true do | |
| 59 | local Amplitude = math.clamp(music.PlaybackLoudness / MaxLoudness, 1, 5) | |
| 60 | part.Size = Vector3.new(Amplitude, Amplitude, Amplitude) | |
| 61 | part.Color = Color3.fromRGB(255,music.PlaybackLoudness / 1.75,0) | |
| 62 | sizeevent:FireServer(part.Size, part.Color) | |
| 63 | task.wait() | |
| 64 | - | elseif message:sub(1,7) == "!Pitch " then |
| 64 | + | |
| 65 | - | music.Pitch = message:sub(7) |
| 65 | + | ]],owner.PlayerGui) |
| 66 | - | elseif message:sub(1,8) == "!Volume " then |
| 66 | + | |
| 67 | - | music.Volume = message:sub(8) |
| 67 | + | |
| 68 | - | eq.LowGain = music.Volume |
| 68 | + | |
| 69 | - | eq.MidGain = music.Volume * 0.35 |
| 69 | + | |
| 70 | - | elseif message == "!Bass" then |
| 70 | + | |
| 71 | - | eq.MidGain = 0 |
| 71 | + | part.Color = color |
| 72 | - | eq.LowGain = 20 |
| 72 | + | part.Size = size |
| 73 | end | |
| 74 | - | end) |
| 74 | + | |
| 75 | - | wait(0.5) |
| 75 | + | |
| 76 | - | TweenService = game:GetService("TweenService")
|
| 76 | + | |
| 77 | - | spininfo = TweenInfo.new(2,Enum.EasingStyle.Linear) |
| 77 | + | |
| 78 | if message:sub(1,6) == "!Play " then | |
| 79 | - | Spin1 = TweenService:Create(Weld4,spininfo,{C0 = Weld4.C0 * CFrame.Angles(0,math.rad(120),math.rad(5))})
|
| 79 | + | |
| 80 | - | Spin2 = TweenService:Create(Weld4,spininfo,{C0 = Weld4.C0 * CFrame.Angles(0,math.rad(240),math.rad(5))})
|
| 80 | + | |
| 81 | - | Spin3 = TweenService:Create(Weld4,spininfo,{C0 = Weld4.C0 * CFrame.Angles(0,math.rad(360),math.rad(5))})
|
| 81 | + | |
| 82 | elseif message:sub(1,7) == "!Speed " then | |
| 83 | music.PlaybackSpeed = message:sub(7) | |
| 84 | end | |
| 85 | end) |