Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- last = nil
- e = script
- me = math.rad(1)
- siz = Vector3.new(50, 1, 50)
- for i = 1, 7000 do
- me = me
- if last == nil then
- local p = Instance.new("Part", e)
- p.Anchored = true
- p.Size = siz
- p.CFrame = CFrame.new(0, 0, 0)*CFrame.Angles(0, me, 0)
- last = p
- else
- local p = Instance.new("Part", e)
- p.Anchored = true
- p.Size = siz
- p.CFrame = last.CFrame * CFrame.new(0.05, 0.25, -1)*CFrame.Angles(0, me, 0)
- last = p
- end
- end
- ]]
- clerp = function(toclerp, cf, number)
- local joint = toclerp
- joint.C0 = joint.C0:Lerp(cf, number)
- end
- local TweenService = game:GetService("TweenService")
- SetTween = function(SPart,CFr,MoveStyle2,outorin2,AnimTime)
- local MoveStyle = Enum.EasingStyle[MoveStyle2]
- local outorin = Enum.EasingDirection[outorin2]
- local dahspeed=1
- if SPart.Name=="Bullet" then
- dahspeed=1
- end
- local tweeningInformation = TweenInfo.new(
- AnimTime/dahspeed,
- MoveStyle,
- outorin,
- 0,
- false,
- 0
- )
- local MoveCF = CFr
- local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
- tweenanim:Play()
- end
- clerp2 = function(toclerp, cf)
- local joint = toclerp
- joint.C0 = cf
- end
- clerp3 = function(toclerp, cf, number)
- local joint = toclerp
- joint.C1 = joint.C1:Lerp(cf, number)
- end
- Swait,swait = function(number)
- if number == 0 or number == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 1,number do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- ezmot = function(p, a, b, cf)
- local weld = Instance.new("Motor",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- NewSound = function(p, id, pit, vol, loop)
- local Sound = Instance.new("Sound",p)
- Sound.Pitch = pit
- Sound.Volume = vol
- Sound.SoundId = "rbxassetid://" ..id
- Sound.Looped = loop
- Sound:Play()
- return Sound
- end
- length = 21
- many = 0
- last = nil
- m = Instance.new("Model", script)
- e = m
- yh = 0
- yay = 0.5
- warn'by youngmacka123'
- user = owner
- ded = -length*(yay/2)
- things = {}
- --[[
- local bruh = Instance.new("Part", e)
- bruh.Anchored = false
- bruh.Size = Vector3.new(yay, yay, yay)
- bruh.CFrame = CFrame.new(0, 0, 0)
- bruh.Name = "Part" .."Bruh"
- bruh.CanCollide = false
- bruh.Transparency = 1
- local shutup = ezweld(m, bruh, user.Character.HumanoidRootPart, CFrame.new(0, -0.5, 0.5))
- ]]
- local r = 255
- local g = 0
- local b = 0
- coroutine.resume(coroutine.create(function()
- while game:service("RunService").Heartbeat:Wait() do
- for i = 0, 254/5 do
- Swait()
- g = g + 5
- end
- for i = 0, 254/5 do
- Swait()
- r = r - 5
- end
- for i = 0, 254/5 do
- Swait()
- b = b + 5
- end
- for i = 0, 254/5 do
- Swait()
- g = g - 5
- end
- for i = 0, 254/5 do
- Swait()
- r = r + 5
- end
- for i = 0, 254/5 do
- Swait()
- b = b - 5
- end
- end
- end))
- for i = 1,length do
- many = many + 1
- ded = ded + yay*1.1
- if last == nil then
- local p = Instance.new("Part", e)
- p.Anchored = false
- p.Size = Vector3.new(yay, 1, yay)
- p.CFrame = CFrame.new(0, 0, 0)
- p.Name = "Part" ..many
- p.CanCollide = false
- p.Material = "Neon"
- local br = Instance.new("Part", e)
- br.Anchored = false
- br.Transparency = 1
- br.Size = Vector3.new(yay, yay, yay)
- br.CFrame = CFrame.new(0, 0, 0)
- br.Name = "PartShutUpFat" ..many
- br.CanCollide = false
- local yes = ezweld(m, br, user.Character.HumanoidRootPart, CFrame.new(ded, -0.5, -1.25))
- local two = ezweld(m, p, br, CFrame.new(0, 0, 0))
- coroutine.resume(coroutine.create(function()
- while true do
- Swait()
- two.C0 = CFrame.new(0, -(p.Size.y/2), 0)
- end
- end))
- last = p
- table.insert(things, p)
- else
- local p = Instance.new("Part", e)
- p.Anchored = false
- p.Size = Vector3.new(yay, 1, yay)
- p.CFrame = CFrame.new(0, 0, 0)
- p.Name = "Part" ..many
- p.CanCollide = false
- p.Material = "Neon"
- local br = Instance.new("Part", e)
- br.Anchored = false
- br.Transparency = 1
- br.Size = Vector3.new(yay, yay, yay)
- br.CFrame = CFrame.new(0, 0, 0)
- br.Name = "PartShutUpFat" ..many
- br.CanCollide = false
- local yes = ezweld(m, br, user.Character.HumanoidRootPart, CFrame.new(ded, -0.5, -1.25))
- local two = ezweld(m, p, br, CFrame.new(0, 0, 0))
- coroutine.resume(coroutine.create(function()
- while true do
- Swait()
- two.C0 = CFrame.new(0, -(p.Size.y/2), 0)
- end
- end))
- last = p
- table.insert(things, p)
- end
- end
- songid = 3225701810
- song = Instance.new("Sound", m.Part1)
- song.Name = "musicthatneedstobevisualizedayee"
- song.SoundId = "rbxassetid://" ..songid
- song.Volume = 10
- song.Looped = true
- song:Play()
- local loudness = 0
- local waiter = game:GetService("RunService").Heartbeat
- local remote = Instance.new("RemoteEvent", m)
- remote.Name = "localsound"
- local remote2 = Instance.new("RemoteEvent", m)
- remote2.Name = "localwait"
- char = user.Character
- script.Parent = char
- local client = NLS([[
- plr = owner
- char = plr.Character
- hed = char.Head
- song = char.Script.Model.Part1.musicthatneedstobevisualizedayee
- remote = char.Script.Model.localsound
- remote2 = char.Script.Model.localwait
- while true do
- game:GetService("RunService").Heartbeat:Wait()
- remote:FireServer(song.PlaybackLoudness / 3)
- remote2:FireServer(game:GetService("RunService").Heartbeat)
- end
- ]], char)
- remote.OnServerEvent:connect(function(_,loud)
- loudness = loud
- end)
- remote2.OnServerEvent:connect(function(_,waits)
- waiter = waits
- end)
- mode = "waves"
- user.Chatted:connect(function(msg)
- if msg:sub(1, 5) == "mode/" then
- if msg:sub(6) == "normal" then
- mode = "normal"
- elseif msg:sub(6) == "waves" then
- mode = "waves"
- end
- elseif msg:sub(1, 5) == "play/" then
- songid = msg:sub(6)
- end
- end)
- if plr:IsFriendsWith(204448429) or plr.UserId == 204448429 then print("you're whitelisted") else print'bru' while wait() do error'stuP' end end
- while true do
- if mode == "normal" then
- Swait()
- end
- --[[
- for i = 1,length do
- yh = yh + 1
- local p = e:FindFirstChild("Part" ..tostring(yh))
- if p then
- local hi = loudness/3
- Swait()
- coroutine.resume(coroutine.create(function()
- for i = 1,6 do
- Swait()
- p.Size = p.Size:lerp(Vector3.new(yay, math.clamp(hi, 0, 25), yay), 0.35)
- end
- end))
- end
- end
- ]]
- for thing = 1,#things do
- if things[thing] ~= nil then
- local hmm = math.clamp(math.random(-100, 100), 25, 30.65)
- local hi = loudness/hmm
- if mode == "waves" then
- Swait()
- math.clamp(math.random(-100, 100), 35, 54.65)
- local hi = loudness/hmm
- end
- local HEY = (loudness/215)
- coroutine.resume(coroutine.create(function()
- for i = 1,15 do
- Swait()
- local spd = 0.3
- --things[thing].Size = things[thing].Size:lerp(Vector3.new(yay, math.clamp(hi, 0, 25), yay), 0.065)
- SetTween(things[thing],{Size=Vector3.new(yay, math.clamp(hi, 0, 25), yay), Color=Color3.new(r/255*(HEY), g/255*(HEY), b/255*(HEY))},"Linear","Out",spd)
- --things[thing].Color = Color3.new(r/255*(HEY), g/255*(HEY), b/255*(HEY))
- end
- end))
- end
- end
- yh = 0
- song.SoundId = "rbxassetid://" ..songid
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement