Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ]]
- --This was made by someone, edited by animescapetower
- --Original Script -> Wave Visualizer
- --My Discord Id -> Animescapetower#3026
- local player = game.Players.LocalPlayer
- local char = player.Character
- local character = player.Character
- local primary = character.PrimaryPart
- local i2 = 0
- local ispeed = 43
- local sine = 50
- local sine2 = 34
- local size = 45
- local maxTabs = 5
- local ai = 360/maxTabs
- hrp=char["HumanoidRootPart"]
- rd=math.rad
- local fold = Instance.new("Folder")
- fold.Name = "Vis"
- fold.Parent = char
- --------------------------------------
- local music = Instance.new("Sound",hrp)
- local siner = coroutine.wrap(function()
- while true do wait()
- sine = sine+1
- end
- end)
- siner()
- --------------------------------------
- function TweenMe(joint,prop,cfrmz,alp,es,ed)
- local ts = game:GetService("TweenService")
- local ti = TweenInfo.new(alp,Enum.EasingStyle[es],Enum.EasingDirection[ed],0,false,0)
- local pp = {[prop] = cfrmz}
- local tween = ts:Create(joint,ti,pp)
- tween:Play()
- end
- function createPart()
- local p = Instance.new("Part")
- p.Name = "Dead"
- p.Anchored = true
- p.Shape = 2
- p.Transparency = 0.5
- p.CanCollide = false
- p.TopSurface = "Smooth"
- p.BottomSurface = "Smooth"
- p.Material = "Neon"
- p.Size = Vector3.new(2,2,2)
- p.CFrame = CFrame.new(hrp.CFrame.p)
- return p
- end
- local idk = 4
- local eh = 360/idk
- for i = 1,360/ai do
- local p = createPart()
- p.Parent = fold
- p.CFrame = CFrame.new(hrp.CFrame.p)*CFrame.Angles(rd(0),rd(i*ai),rd(0))*CFrame.new(0,1*math.cos(sine/ispeed),10)
- end
- -------------------------------------- game:GetService("RunService").RenderStepped:Wait()
- local music = coroutine.wrap(function()
- while true do wait()
- local gc = fold:GetChildren()
- for i = 1,#gc do
- sine2=sine2+0.5
- local l = tick()+sine2
- local p = gc[i]
- i2 = i2 - 6
- p.Color = Color3.fromHSV((i2 - (math.floor(i2 / 360) * 360)) / 360, 1, 1)
- p.Size = Vector3.new(0.1, 0.1, (2 + (music.PlaybackLoudness * (music.Volume / 10)) / 20))
- p.CFrame = CFrame.new(primary.CFrame.p) * CFrame.Angles(0, math.rad(i2), 0) * CFrame.new(0, 0, -(10 + p.Size.Z / 3) )
- TweenMe(p,'Color',Color3.new(size*math.sin(l)/1,0/45,-size*math.sin(l)/12),1,"Sine","Out")
- local size2 = size*45
- TweenMe(p,'CFrame',hrp.CFrame*CFrame.Angles(rd(0),rd(i*ai),rd(0))*CFrame.new(0,size*math.sin(l)*0.5,5+size/2),0.5,'Sine','Out')
- end
- end
- end)
- music()
- --------------------------------------
- command = "/"
- local playing = false
- player.Chatted:connect(function(chat)
- if chat:sub(1,3) == "/vis " then
- local num = chat:sub(4)
- size = num
- elseif chat:sub(1,7):lower():match("play ") then
- music.Volume = 5
- music.MaxDistance = 50
- music.EmitterSize = 50
- music:Play()
- wait(1)
- local id = chat:sub(7)
- music.SoundId='rbxassetid://'..chat:sub(8)
- playing = true
- local visualize = coroutine.wrap(function()
- repeat wait()
- wait(0.05)
- size = hrp.music.PlaybackLoudness/54
- wait(0.05)
- size = hrp.music.PlaybackLoudness/21
- wait(0.05)
- size = hrp.music.PlaybackLoudness/98
- wait(0.05)
- size = hrp.music.PlaybackLoudness/2
- wait(0.05)
- size = hrp.music.PlaybackLoudness/1
- until playing == false
- end)
- visualize()
- elseif chat == "/pitch<1 " then
- hrp.music:Play()
- hrp.music.PlaybackSpeed = hrp.music.PlaybackSpeed + 1.54
- elseif chat == "/pitch>1" then
- hrp.music:Play()
- hrp.music.PlaybackSpeed = hrp.music.PlaybackSpeed - 1.54
- elseif chat == "/volume> " then
- hrp.music:Play()
- hrp.music.Volume= hrp.music.Volume+ 1.54
- elseif chat == "/volume<" then
- hrp.music:Play()
- hrp.music.Volume= hrp.music.Volume- 1.54
- hrp.music.Volume = 8
- hrp.music.MaxDistance = 150
- hrp.music.EmitterSize = 150
- elseif chat == "/noglobe" then
- hrp.music:Play()
- hrp.music.MaxDistance = 100
- hrp.music.EmitterSize = 100
- elseif chat == "/globe" then
- hrp.music:Play()
- hrp.music.MaxDistance = 500
- hrp.music.EmitterSize = 500
- elseif chat == "/stop" then
- if hrp:FindFirstChild("music") ~= nil then
- size = 45
- wait(1)
- size = 45
- playing = false
- hrp["music"]:Remove()
- end
- end
- end)
- player.Character.Humanoid.MaxHealth = "Inf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement