Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function rainb(hue)
- local section = hue % 1 * 3
- local secondary = 0.5 * math.pi * (section % 1)
- if section < 1 then
- return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
- elseif section < 2 then
- return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
- else
- return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
- end
- end
- --// Mostly made by Omega_Phoenix, some parts needed help #Yeet \\--
- local player = game.Players.LocalPlayer
- local tofollow = player
- local char = tofollow.Character
- local ispeed = 65
- local ispeed2 = 78
- local sine = 50
- local sine2 = 34
- local size = 4
- local maxTabs = 10
- 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.Transparency = 0
- p.CanCollide = false
- p.TopSurface = "Smooth"
- p.BottomSurface = "Smooth"
- p.Material = "Neon"
- p.Size = Vector3.new(.1,.1,.1)
- p.Transparency = 1
- p.CFrame = CFrame.new(hrp.CFrame.p)
- return p
- end
- function createPart2()
- local p3 = Instance.new("Part")
- p3.Name = "Dead2"
- p3.Anchored = true
- p3.Transparency = 0
- p3.CanCollide = false
- p3.TopSurface = "Smooth"
- p3.BottomSurface = "Smooth"
- p3.Material = "Neon"
- p3.Size = Vector3.new(.2,size,.2)
- p3.CFrame = CFrame.new(hrp.CFrame.p)
- return p3
- 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
- for i = 1,360/ai do
- local p2 = createPart2()
- p2.Parent = fold
- p2.Size = Vector3.new(.2,size,.2)
- p2.CFrame = CFrame.new(p2.CFrame.p)*CFrame.Angles(rd(0),rd(i*ai),rd(0))*CFrame.new(0,1*math.cos(sine/ispeed2),10)
- end
- local musics = Instance.new("Sound",char.Torso)
- musics.Looped = true
- musics.Name = "music"
- musics.Volume = 10
- musics.SoundId = "rbxassetid://1521368773"
- musics:Play()
- local xsize = 1
- local zsize = 1
- size = 4
- game:GetService("RunService").Heartbeat:connect(function()
- local Clr = rainb(tick()/3)
- local gc = fold:GetChildren()
- for i = 2,#gc,1 do
- gc[i].Color = gc[i].Color:lerp(Color3.new(Clr.r,Clr.g,Clr.b),.5)
- gc[i].Size = gc[i].Size:lerp(Vector3.new(xsize,musics.PlaybackLoudness/100, zsize),0.6)
- end
- end)
- local pbl = 30
- -------------------------------------- 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+.3
- local l = tick()+sine2
- local p = gc[i]
- 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)*musics.PlaybackLoudness/500,musics.PlaybackLoudness/pbl),0.5,'Sine','Out')
- end
- end
- end)
- music()
- --------------------------------------
- local playing = false
- player.Chatted:connect(function(chat)
- local msg = chat
- if chat:sub(1,3) == "/vis " then
- elseif chat:sub(1,8):lower():match('/volume ') then
- musics.Volume = chat:sub(9)
- elseif chat:sub(1,8):lower():match('/follow ') then
- for i,v in pairs(workspace:children'') do
- if v.Name:lower():match(msg:sub(9):lower()) then
- hrp = v["Torso"]
- end
- end
- elseif chat:sub(1,7):lower():match('/pause ') then
- musics:Pause()
- elseif chat:sub(1,6):lower():match('/play ') then
- musics:Pause()
- musics.SoundId='rbxassetid://'..msg:sub(7)
- musics:Play()
- elseif chat:sub(1,8):lower():match('/resume ') then
- musics:Resume()
- elseif chat:sub(1,5):lower():match('/pbl ') then
- pbl = msg:sub(6)
- elseif chat:sub(1,7):lower():match('/xsize ') then
- xsize = msg:sub(8)
- elseif chat:sub(1,7):lower():match('/zsize ') then
- zsize = msg:sub(8)
- end
- end)
- player.Character.Humanoid.MaxHealth = "Inf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement