Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- part = Instance.new("Part", owner.Character)
- part.Massless = true
- part.BottomSurface = Enum.SurfaceType.Smooth
- part.TopSurface = Enum.SurfaceType.Smooth
- part.Size = Vector3.new(3.2,1.6,1.2)
- part.Name = "partlolagain"
- music = Instance.new("Sound", part)
- music.SoundId = "rbxassetid://"
- music.Volume = 1
- music.Looped = true
- music:Play()
- music.Name = "Themusic"
- eq = Instance.new("EqualizerSoundEffect",music)
- Weld4 = Instance.new("Weld", owner.Character.Head)
- Weld4.Part0 = part
- Weld4.Part1 = owner.Character.Head
- Weld4.C0 = CFrame.new(0,0,4.5)
- part.CanCollide = false
- part:SetNetworkOwner(owner)
- part.Material = Enum.Material.Neon
- part.Locked = true
- wait()
- NLS([[
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local sizeevent = ReplicatedStorage:WaitForChild("sizeEvent")
- local part = owner.Character:WaitForChild("partlolagain")
- local music = part:WaitForChild("Themusic")
- while true do
- local Amplitude = math.clamp(music.PlaybackLoudness / 125, 0.1, 5)
- part.Size = Vector3.new(Amplitude, Amplitude, Amplitude)
- part.Color = Color3.fromRGB(255,math.clamp(music.PlaybackLoudness / 1.75,0,255),0)
- sizeevent:FireServer(part.Size, part.Color)
- wait(0.0825)
- end
- ]],part)
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local sizeevent = Instance.new("RemoteEvent", ReplicatedStorage)
- sizeevent.Name = "sizeEvent"
- local function sizer(player, size, color)
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.0825
- local object = part
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.Size = size
- local shot = tweenService:Create(object, tweenInfo, goal)
- local goal2 = {}
- goal2.Color = color
- local shot2 = tweenService:Create(object, tweenInfo, goal2)
- shot:Play()
- shot2:Play()
- end
- sizeevent.OnServerEvent:Connect(sizer)
- owner.Chatted:connect(function(message)
- if message:sub(1,6) == "!Play " then
- music:Stop()
- music.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
- music:Play()
- elseif message:sub(1,7) == "!Speed " then
- music.PlaybackSpeed = message:sub(7)
- elseif message:sub(1,7) == "!Pitch " then
- music.Pitch = message:sub(7)
- elseif message:sub(1,8) == "!Volume " then
- music.Volume = message:sub(8)
- eq.LowGain = music.Volume
- eq.MidGain = music.Volume * 0.35
- elseif message == "!Bass" then
- eq.MidGain = 0
- eq.LowGain = 20
- end
- end)
- wait(0.5)
- TweenService = game:GetService("TweenService")
- spininfo = TweenInfo.new(2,Enum.EasingStyle.Linear)
- Spin1 = TweenService:Create(Weld4,spininfo,{C0 = Weld4.C0 * CFrame.Angles(0,math.rad(120),math.rad(5))})
- Spin2 = TweenService:Create(Weld4,spininfo,{C0 = Weld4.C0 * CFrame.Angles(0,math.rad(240),math.rad(5))})
- Spin3 = TweenService:Create(Weld4,spininfo,{C0 = Weld4.C0 * CFrame.Angles(0,math.rad(360),math.rad(5))})
- Spin1:Play()
- Spin1.Completed:Connect(function()Spin2:Play() end)
- Spin2.Completed:Connect(function()Spin3:Play() end)
- Spin3.Completed:Connect(function()Spin1:Play() end)
- part:SetNetworkOwner(owner)
Add Comment
Please, Sign In to add comment