Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local char = player.Character
- local ispeed = 30
- local sine = 12
- 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 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 = 0
- p.Transparency = 1.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]
- 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()
- --------------------------------------
- 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,6) == "/play " then
- if hrp:FindFirstChild("music") ~= nil then
- size = 45
- playing = false
- hrp["music"]:Remove()
- end
- wait(1)
- local id = chat:sub(7)
- local music = Instance.new("Sound",hrp)
- music.Looped = true
- music.Name = "music"
- music.Volume = 10
- music.SoundId = "rbxassetid://"..id
- music.MaxDistance = 500
- music.EmitterSize = 500
- music:Play()
- playing = true
- local visualize = coroutine.wrap(function()
- repeat wait()
- size = music.Volume/1
- size = 45
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.2)
- size = 70
- wait(0.2)
- size = 1
- wait(0.2)
- size = 30
- wait(0.2)
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.005)
- size = 90
- wait(0.005)
- size = 80
- wait(0.005)
- size = 70
- wait(0.005)
- size = 60
- wait(0.005)
- size = 40
- wait(0.005)
- size = 30
- wait(0.005)
- size = 20
- wait(0.005)
- size = 10
- wait(0.005)
- size = 20
- wait(0.005)
- size = 30
- wait(0.005)
- size = 40
- wait(0.005)
- size = 50
- wait(0.005)
- size = 60
- wait(0.005)
- size = 70
- wait(0.005)
- size = 80
- wait(0.005)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 10
- wait(0.05)
- size = 1
- wait(0.05)
- size = 90
- wait(0.05)
- size = 40
- wait(0.05)
- size = 1.06
- wait(0.05)
- size = 1.06
- wait(0.05)
- size = 42
- wait(0.05)
- size = 1.06
- wait(0.05)
- size = 0
- wait(0.05)
- size = 1.5
- wait(0.05)
- size = 1.7
- wait(0.05)
- size = 1.3
- wait(0.05)
- size = 1.05
- wait(0.05)
- size = 1.8
- wait(0.05)
- size = 1.3
- wait(0.05)
- size = 1.06
- wait(0.05)
- size = 1.06
- wait(0.05)
- size = 7
- wait(0.05)
- size = 6
- wait(0.05)
- size = 0
- wait(0.05)
- size = 1.5
- wait(0.05)
- size = 1.7
- wait(0.05)
- size = 1.3
- wait(0.05)
- size = 1.05
- wait(0.05)
- size = 1.8
- wait(0.05)
- size = 1.3
- wait(0.05)
- size = 1.06
- wait(0.05)
- size = 1
- wait(0.05)
- size = 1
- wait(0.05)
- size = 12
- wait(0.05)
- size = 0
- wait(0.05)
- size = 1.5
- wait(0.05)
- size = 1.7
- wait(0.05)
- size = 1.3
- wait(0.05)
- size = 1.05
- wait(0.05)
- size = 1.8
- wait(0.05)
- size = 1.3
- wait(0.05)
- size = 1.06
- wait(0.05)
- size = 1.06
- wait(0.05)
- size = 65
- wait(0.05)
- size = 34
- wait(0.05)
- size = 0
- wait(0.05)
- size = 1.5
- wait(0.05)
- size = 1.7
- wait(0.05)
- size = 1.3
- wait(0.05)
- size = 1.05
- wait(0.05)
- size = 1.8
- wait(0.05)
- size = 1.3
- wait(0.05)
- size = 1.06
- wait(0.05)
- size = 7.06
- wait(0.05)
- size = 1.06
- wait(0.05)
- size = 60
- wait(0.05)
- size = 7
- wait(0.05)
- size = 4.5
- wait(0.05)
- size = 3.7
- wait(0.05)
- size = 3.3
- wait(0.05)
- size = 1.05
- wait(0.05)
- size = 3.8
- wait(0.05)
- size = 9
- wait(0.05)
- size = 1.06
- wait(0.05)
- size = 1.06
- wait(0.05)
- size = 30
- wait(0.05)
- size = 20
- wait(0.05)
- size = 0
- wait(0.05)
- size = 1.5
- wait(0.05)
- size = 1.7
- wait(0.05)
- size = 1.3
- wait(0.05)
- size = 1.05
- wait(0.05)
- size = 1.8
- wait(0.05)
- size = 1.3
- wait(0.05)
- size = 1.06
- wait(0.05)
- size = 1.06
- wait(0.02)
- size = 21
- wait(0.05)
- size = 0
- wait(0.05)
- size = 0
- wait(0.05)
- size = 1.5
- wait(0.05)
- size = 1.7
- wait(0.05)
- size = 1.3
- wait(0.05)
- size = 1.05
- wait(0.05)
- size = 1.8
- wait(0.05)
- size = 1.3
- until playing == false
- end)
- visualize()
- elseif chat == "/stop" then
- if hrp:FindFirstChild("music") ~= nil then
- size = 45
- playing = false
- hrp["music"]:Remove()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement