Advertisement
HenloMyDude

audacity

Apr 16th, 2020
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.66 KB | None | 0 0
  1.  
  2. script.Name = "Script"
  3.  
  4. --[[
  5. last = nil
  6. e = script
  7. me = math.rad(1)
  8. siz = Vector3.new(50, 1, 50)
  9. for i = 1, 7000 do
  10. me = me
  11. if last == nil then
  12. local p = Instance.new("Part", e)
  13. p.Anchored = true
  14. p.Size = siz
  15. p.CFrame = CFrame.new(0, 0, 0)*CFrame.Angles(0, me, 0)
  16. last = p
  17. else
  18. local p = Instance.new("Part", e)
  19. p.Anchored = true
  20. p.Size = siz
  21. p.CFrame = last.CFrame * CFrame.new(0.05, 0.25, -1)*CFrame.Angles(0, me, 0)
  22. last = p
  23. end
  24. end
  25. ]]
  26.  
  27. clerp = function(toclerp, cf, number)
  28. local joint = toclerp
  29. joint.C0 = joint.C0:Lerp(cf, number)
  30. end
  31.  
  32. local TweenService = game:GetService("TweenService")
  33.  
  34. SetTween = function(SPart,CFr,MoveStyle2,outorin2,AnimTime)
  35. local MoveStyle = Enum.EasingStyle[MoveStyle2]
  36. local outorin = Enum.EasingDirection[outorin2]
  37.  
  38.  
  39. local dahspeed=1
  40.  
  41. if SPart.Name=="Bullet" then
  42. dahspeed=1
  43. end
  44.  
  45. local tweeningInformation = TweenInfo.new(
  46. AnimTime/dahspeed,
  47. MoveStyle,
  48. outorin,
  49. 0,
  50. false,
  51. 0
  52. )
  53. local MoveCF = CFr
  54. local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
  55. tweenanim:Play()
  56. end
  57.  
  58. clerp2 = function(toclerp, cf)
  59. local joint = toclerp
  60. joint.C0 = cf
  61. end
  62.  
  63. clerp3 = function(toclerp, cf, number)
  64. local joint = toclerp
  65. joint.C1 = joint.C1:Lerp(cf, number)
  66. end
  67.  
  68. Swait,swait = function(number)
  69. if number == 0 or number == nil then
  70. game:GetService("RunService").Heartbeat:Wait()
  71. else
  72. for i = 1,number do
  73. game:GetService("RunService").Heartbeat:Wait()
  74. end
  75. end
  76. end
  77.  
  78. ezweld = function(p, a, b, cf)
  79. local weld = Instance.new("Weld",p)
  80. weld.Part0 = a
  81. weld.Part1 = b
  82. weld.C0 = cf
  83. return weld
  84. end
  85.  
  86. ezmot = function(p, a, b, cf)
  87. local weld = Instance.new("Motor",p)
  88. weld.Part0 = a
  89. weld.Part1 = b
  90. weld.C0 = cf
  91. return weld
  92. end
  93.  
  94. NewSound = function(p, id, pit, vol, loop)
  95. local Sound = Instance.new("Sound",p)
  96. Sound.Pitch = pit
  97. Sound.Volume = vol
  98. Sound.SoundId = "rbxassetid://" ..id
  99. Sound.Looped = loop
  100. Sound:Play()
  101. return Sound
  102. end
  103.  
  104. length = 135
  105. many = 0
  106. last = nil
  107. m = Instance.new("Model", script)
  108. e = m
  109. yh = 0
  110.  
  111. yay = 0.06
  112.  
  113. warn'by youngmacka123'
  114.  
  115. user = owner
  116. ded = -length*(yay/2)
  117.  
  118. things = {}
  119.  
  120. --[[
  121. local bruh = Instance.new("Part", e)
  122. bruh.Anchored = false
  123. bruh.Size = Vector3.new(yay, yay, yay)
  124. bruh.CFrame = CFrame.new(0, 0, 0)
  125. bruh.Name = "Part" .."Bruh"
  126. bruh.CanCollide = false
  127. bruh.Transparency = 1
  128. local shutup = ezweld(m, bruh, user.Character.HumanoidRootPart, CFrame.new(0, -0.5, 0.5))
  129. ]]
  130.  
  131. local r = 255
  132. local g = 0
  133. local b = 0
  134. coroutine.resume(coroutine.create(function()
  135. while game:service("RunService").Heartbeat:Wait() do
  136. for i = 0, 254/5 do
  137. Swait()
  138. g = g + 5
  139. end
  140. for i = 0, 254/5 do
  141. Swait()
  142. r = r - 5
  143. end
  144. for i = 0, 254/5 do
  145. Swait()
  146. b = b + 5
  147. end
  148. for i = 0, 254/5 do
  149. Swait()
  150. g = g - 5
  151. end
  152. for i = 0, 254/5 do
  153. Swait()
  154. r = r + 5
  155. end
  156. for i = 0, 254/5 do
  157. Swait()
  158. b = b - 5
  159. end
  160. end
  161. end))
  162.  
  163. for i = 1,length do
  164. many = many + 1
  165. ded = ded + yay*1.1
  166. if last == nil then
  167. local p = Instance.new("Part", e)
  168. p.Anchored = false
  169. p.Size = Vector3.new(yay, 1, yay)
  170. p.CFrame = CFrame.new(0, 0, 0)
  171. p.Name = "Part" ..many
  172. p.CanCollide = false
  173. p.Material = "Neon"
  174. local br = Instance.new("Part", e)
  175. br.Anchored = false
  176. br.Transparency = 1
  177. br.Size = Vector3.new(yay, yay, yay)
  178. br.CFrame = CFrame.new(0, 0, 0)
  179. br.Name = "PartShutUpFat" ..many
  180. br.CanCollide = false
  181. local yes = ezweld(m, br, user.Character.HumanoidRootPart, CFrame.new(ded, -3.5, -1.25))
  182. local two = ezweld(m, p, br, CFrame.new(0, 0, 0))
  183. coroutine.resume(coroutine.create(function()
  184. while true do
  185. Swait()
  186. --two.C0 = CFrame.new(0, -(p.Size.y/2), 0)
  187. end
  188. end))
  189. last = p
  190. table.insert(things, p)
  191. else
  192. local p = Instance.new("Part", e)
  193. p.Anchored = false
  194. p.Size = Vector3.new(yay, 1, yay)
  195. p.CFrame = CFrame.new(0, 0, 0)
  196. p.Name = "Part" ..many
  197. p.CanCollide = false
  198. p.Material = "Neon"
  199. local br = Instance.new("Part", e)
  200. br.Anchored = false
  201. br.Transparency = 1
  202. br.Size = Vector3.new(yay, yay, yay)
  203. br.CFrame = CFrame.new(0, 0, 0)
  204. br.Name = "PartShutUpFat" ..many
  205. br.CanCollide = false
  206. local yes = ezweld(m, br, user.Character.HumanoidRootPart, CFrame.new(ded, -3.5, -1.25))
  207. local two = ezweld(m, p, br, CFrame.new(0, 0, 0))
  208. coroutine.resume(coroutine.create(function()
  209. while true do
  210. Swait()
  211. --two.C0 = CFrame.new(0, -(p.Size.y/2), 0)
  212. end
  213. end))
  214. last = p
  215. table.insert(things, p)
  216. end
  217. end
  218.  
  219. songid = 3225701810
  220.  
  221. song = Instance.new("Sound", m.Part1)
  222. song.Name = "musicthatneedstobevisualizedayee"
  223. song.SoundId = "rbxassetid://" ..songid
  224. song.Volume = 10
  225. song.Looped = true
  226. song:Play()
  227.  
  228. local loudness = 0
  229. local waiter = game:GetService("RunService").Heartbeat
  230. local remote = Instance.new("RemoteEvent", m)
  231. remote.Name = "localsound"
  232. local remote2 = Instance.new("RemoteEvent", m)
  233. remote2.Name = "localwait"
  234. char = user.Character
  235. script.Parent = char
  236.  
  237. local client = NLS([[
  238.  
  239. plr = owner
  240. char = plr.Character
  241. hed = char.Head
  242. song = char.Script.Model.Part1.musicthatneedstobevisualizedayee
  243. remote = char.Script.Model.localsound
  244. remote2 = char.Script.Model.localwait
  245.  
  246. while true do
  247. game:GetService("RunService").Heartbeat:Wait()
  248. remote:FireServer(song.PlaybackLoudness / 3)
  249. remote2:FireServer(game:GetService("RunService").Heartbeat)
  250. end
  251.  
  252. ]], char)
  253.  
  254. remote.OnServerEvent:connect(function(_,loud)
  255. loudness = loud
  256. end)
  257.  
  258. remote2.OnServerEvent:connect(function(_,waits)
  259. waiter = waits
  260. end)
  261.  
  262. mode = "waves"
  263.  
  264. user.Chatted:connect(function(msg)
  265. if msg:sub(1, 5) == "mode/" then
  266. if msg:sub(6) == "normal" then
  267. mode = "normal"
  268. elseif msg:sub(6) == "waves" then
  269. mode = "waves"
  270. end
  271. elseif msg:sub(1, 5) == "play/" then
  272. songid = msg:sub(6)
  273. song:Play()
  274. end
  275. end)
  276.  
  277. while true do
  278. if mode == "normal" then
  279. Swait()
  280. end
  281. --[[
  282. for i = 1,length do
  283. yh = yh + 1
  284. local p = e:FindFirstChild("Part" ..tostring(yh))
  285. if p then
  286. local hi = loudness/3
  287. Swait()
  288. coroutine.resume(coroutine.create(function()
  289. for i = 1,6 do
  290. Swait()
  291. p.Size = p.Size:lerp(Vector3.new(yay, math.clamp(hi, 0, 25), yay), 0.35)
  292. end
  293. end))
  294. end
  295. end
  296. ]]
  297. for thing = 1,#things do
  298. if things[thing] ~= nil then
  299. song.SoundId = "rbxassetid://" ..songid
  300. local hmm = math.clamp(math.random(-100, 100), 25, 30.65)
  301. local hi = loudness/hmm
  302. if mode == "waves" then
  303. Swait()
  304. math.clamp(math.random(-100, 100), 35, 54.65)
  305. local hi = loudness/hmm
  306. end
  307. local HEY = (loudness/235)
  308. coroutine.resume(coroutine.create(function()
  309. for i = 1,5 do
  310. Swait()
  311. local spd = 0.1
  312. SetTween(things[thing],{Size=Vector3.new(yay, math.clamp(hi, 0, 25), yay),Color=SetTween(things[thing],{Color=Color3.new(r/255*(HEY), g/255*(HEY), b/255*(HEY))},"Linear","Out",0.74)},"Linear","Out",spd)
  313. end
  314. for i = 1,15 do
  315. Swait()
  316. local spd = 0.5
  317. --things[thing].Size = things[thing].Size:lerp(Vector3.new(yay, math.clamp(hi, 0, 25), yay), 0.065)
  318. SetTween(things[thing],{Size=Vector3.new(yay, yay, yay),Color=SetTween(things[thing],{Color=Color3.new(r/255*(HEY), g/255*(HEY), b/255*(HEY))},"Linear","Out",0.74)},"Linear","Out",spd)
  319. --SetTween(things[thing],{Color=Color3.new(0, 0, 0)},"Linear","Out",0.15)
  320. --things[thing].Color = Color3.new(r/255*(HEY), g/255*(HEY), b/255*(HEY))
  321. end
  322. end))
  323. end
  324. end
  325. yh = 0
  326. song.SoundId = "rbxassetid://" ..songid
  327. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement