Advertisement
WaverlyCoal

Untitled

Aug 3rd, 2018
550
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.45 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole");print("https://github.com/WaverlyCole/FE-Compatibility-VoidSb-")
  2. local Wrapper = {};Wrapper.Fake = {};Wrapper.Real = {};Wrapper.Data = {};
  3. local sGame = game;local sScript = script;local sOwner = owner;local sInstance = Instance;local sLoadLibrary = LoadLibrary
  4. Wrapper.Event = Instance.new("RemoteEvent");Wrapper.Event.Name = "UserInput";
  5. Wrapper.CreateObject = function(connections, index)
  6. local proxy = newproxy (true);local meta = getmetatable (proxy);
  7. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  8. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  9. meta.__index = function (self, i)
  10. if (i == 'TriggerEvent') then return runbind end;
  11. return connections[i] and connections[i].Event or index[i];
  12. end;
  13. meta.__newindex = index;meta.__metatable = false;return proxy
  14. end;
  15. Wrapper.Mouse = Wrapper.CreateObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  16. Wrapper.UserInputService = Wrapper.CreateObject({"InputBegan","InputEnded"},{})
  17. Wrapper.ContextActionService = {Actions={};BindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end;UnBindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end};
  18. Wrapper.Sandbox = function(...)
  19. local Unwrap = {...};
  20. for obi = 1,#Unwrap do
  21. local Object = Unwrap[obi];
  22. if (Wrapper.Fake[Object] == nil and Wrapper.Real[Object] == nil) then
  23. local Type = typeof(Object);local Replacement = Object;
  24. if (Type == "table") then
  25. Replacement = {};
  26. setmetatable(Replacement, {
  27. __index = function(self, i)
  28. return Wrapper.Sandbox(Object[i])
  29. end,
  30. __newindex = function(self, i, v)
  31. Object[i] = Wrapper.Sandbox(v);
  32. end,
  33. })
  34. elseif (Type == "Instance") then
  35. Replacement = newproxy(true);
  36. local Mt = getmetatable(Replacement);
  37. Mt.__namecall = function(self, ...)
  38. local Pack = {...};local Name = Pack[#Pack];table.remove(Pack, #Pack);
  39. local Rest = nil;pcall(function()Rest = Object[Name];end);
  40. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  41. if (Object:IsA(g) or g == "Global") then
  42. for t, v in pairs(x) do
  43. for str in string.gmatch(t .. ",", "(%w+),") do
  44. if (Name == str) then
  45. if typeof(v) == "function" then
  46. return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  47. else
  48. return v;
  49. end
  50. end
  51. end
  52. end
  53. end
  54. end
  55. if (Rest == nil) then
  56. if Wrapper.Sandbox(sGame):GetService(unpack(Pack)) then return Wrapper.Sandbox(sGame):GetService(unpack(Pack))end;
  57. return Wrapper.Sandbox(Object[Name]);
  58. elseif (typeof(Rest) == "function") then
  59. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  60. end
  61. return Wrapper.Sandbox(Object[Name]);
  62. end
  63. Mt.__index = function(self, i)
  64. local Rest = nil;pcall(function()Rest = Object[i];end)
  65. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  66. if (Object:IsA(g) or g == "Global") then
  67. for t, v in pairs(x) do
  68. for str in string.gmatch(t .. ",", "(%w+),") do
  69. if (i == str) then
  70. if typeof(v) == "function" then
  71. return function(...)return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))end;
  72. else
  73. return v;
  74. end
  75. end
  76. end
  77. end
  78. end
  79. end
  80. if (Object:IsA("Sound") and i == "PlaybackLoudness") then return Wrapper.SoundLoudness[Wrapper.Unsandbox(Object)];end;
  81. if (Rest == nil) then
  82. if Wrapper.Sandbox(sGame):GetService(i) then return Wrapper.Sandbox(sGame):GetService(i)end;
  83. return Wrapper.Sandbox(Object[i]);
  84. elseif (typeof(Rest) == "function") then
  85. local isService,Service = pcall(function() return sGame:GetService(i) end)
  86. if isService and Service then return Wrapper.Sandbox(Service) end
  87. return function(self, ...)
  88. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))
  89. end
  90. end
  91. return Wrapper.Sandbox(Object[i]);
  92. end
  93. Mt.__newindex = function(self, i, v)
  94. for g,x in pairs (Wrapper.InstanceMT["SET"]) do
  95. if (Object:IsA(g)) then
  96. for t, v in pairs(x) do
  97. for str in string.gmatch( t .. ",", "(%w+),") do
  98. if v(Wrapper.Unsandbox(self, i, v)) == true then
  99. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);
  100. return
  101. end
  102. end
  103. end
  104. end
  105. end
  106. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);
  107. end
  108. Mt.__tostring = function(self) return tostring(Object) end
  109. --elseif (Type == "") then -- Etc
  110. end
  111. Wrapper.Fake[Object] = Replacement;
  112. Wrapper.Real[Replacement] = Object;
  113. Unwrap[obi] = Replacement;
  114. else
  115. return Wrapper.Fake[Object] or Object;
  116. end
  117. end
  118. return unpack(Unwrap);
  119. end
  120. Wrapper.Unsandbox = function(...)
  121. local Unsandbox = {...};
  122. for i,v in pairs (Unsandbox) do Unsandbox[i] = Wrapper.Real[v] or Unsandbox[i]end;
  123. return unpack(Unsandbox)
  124. end
  125. Wrapper.Services = {
  126. ['contextactionservice'] = Wrapper.ContextActionService;
  127. ["userinputservice"] = Wrapper.UserInputService;
  128. }
  129. Wrapper.InstanceMT = {
  130. ["GET"] = {
  131. ["Global"] = {
  132. ["IsFake,isFake"] = function(self)return true;end;
  133. };
  134. ["Player"] = {
  135. ["mouse,Mouse"] = function(self)return Wrapper.Mouse;end;
  136. };
  137. ["Players"] = {
  138. ["localPlayer,LocalPlayer"] = Wrapper.Sandbox(owner)
  139. };
  140. ["DataModel"] = {
  141. ["getService,GetService"] = function(self,service)
  142. if Wrapper.Services[service:lower()] then return Wrapper.Sandbox(Wrapper.Services[service:lower()])end;
  143. return Wrapper.Sandbox(sGame:GetService(service))
  144. end
  145. };
  146. ["RunService"] = {
  147. ["renderstepped,renderStepped,RenderStepped"] = sGame:GetService("RunService").Stepped;
  148. }
  149. };
  150. ["SET"] = {
  151. }
  152. }
  153. Wrapper.SoundLoudness = {};
  154. Wrapper.Event.OnServerEvent:Connect(function(FiredBy,Input)
  155. if FiredBy ~= sOwner then return end
  156. if Input.MouseEvent then
  157. Wrapper.Mouse.Target = Input.Target;Wrapper.Mouse.Hit = Input.Hit
  158. Wrapper.Mouse:TriggerEvent("Move")
  159. elseif Input.Sound then
  160. if Wrapper.SoundLoudness[Input.Sound] then Wrapper.SoundLoudness[Input.Sound] = Input.Loudness end
  161. else
  162. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  163. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Wrapper.Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  164. if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Wrapper.Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
  165. for _,Action in pairs(Wrapper.ContextActionService.Actions) do
  166. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  167. end
  168. Wrapper.Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());Wrapper.UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  169. end
  170. end);
  171. Wrapper.Event.Parent = NLS([[
  172. local Player = owner;local Sounds = {};local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse();
  173. local Input = function(Input,gameProcessedEvent)
  174. if gameProcessedEvent then return end;
  175. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  176. end
  177. Event.OnClientEvent:connect(function(Args)
  178. if Args[1] == "NewSound" and Args[2]:IsA("Sound") then table.insert(Sounds,Args[2]) end
  179. end)
  180. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  181. local Hit,Target;while wait(1/30) do
  182. for x,Sound in pairs(Sounds) do if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end; end;
  183. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  184. Hit = Mouse.Hit;Target = Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  185. end
  186. end]],sOwner.Character)
  187. Instance = {
  188. ["new"] = function(Type,Parent)
  189. if not Parent then Parent = sOwner.Character end
  190. local Real = sInstance.new(Type,Wrapper.Unsandbox(Parent))
  191. if Type:lower() == "sound" then Wrapper.SoundLoudness[Real] = 0;Wrapper.Event:FireClient(sOwner,{"NewSound",Real})end
  192. return Wrapper.Sandbox(Real)
  193. end
  194. }
  195. LoadLibrary = function(Library)
  196. if Library == "RbxUtility" then
  197. return setmetatable({},{
  198. __tostring = function() return "RbxUtility" end;
  199. __index = function(self, Index)
  200. if Index:lower() == "create" then
  201. return function(Type)
  202. return function(Data)
  203. Data = Data or {}
  204. local Inst = Instance.new(Type)
  205. for x,y in pairs(Data) do
  206. Inst[x] = y
  207. end
  208. return Inst
  209. end
  210. end
  211. end
  212. return sLoadLibrary(Library)[Index]
  213. end})
  214. end
  215. return sLoadLibrary(Library)
  216. end
  217. owner = Wrapper.Sandbox(owner);game = Wrapper.Sandbox(game)
  218.  
  219. --//Paste script below this line.
  220. plr = game:GetService('Players').LocalPlayer
  221. char = plr.Character
  222.  
  223. -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  224.  
  225. partcol = Color3.new(0, 0, 1)
  226.  
  227. -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  228.  
  229. gui = Instance.new("BillboardGui", char.Head)
  230. gui.Size = UDim2.new(0,200,0,50)
  231. gui.StudsOffset = Vector3.new(0, 1.5, 0)
  232.  
  233. text = Instance.new("TextLabel", gui)
  234. text.BackgroundTransparency = 1
  235. text.Size = UDim2.new(10,0,1,0)
  236. text.Position = UDim2.new(-4.5,0,0,0)
  237. text.Font = "SciFi"
  238. text.TextColor3 = Color3.new(1, 1, 1)
  239. text.TextStrokeColor3 = Color3.new(1, 1, 1)
  240. text.TextSize = 20
  241. text.TextStrokeTransparency = 0.8
  242. text.TextWrapped = true
  243. text.Text = 'Use The Prefix, " Visual ", To Play Music!,'
  244.  
  245. local sound = Instance.new("Sound")
  246.  
  247. plr.Chatted:connect(function(msg)
  248. if msg:sub(1, 6):lower()=='visual' then
  249. Play = true
  250. local val = Instance.new("NumberValue", char)
  251. val.Value = tonumber(msg:sub(7))
  252. local id = val.Value
  253. sound:Stop()
  254. sound.Parent = char.Head
  255. sound.SoundId='rbxassetid://'..id
  256. sound:Play()
  257. sound.Looped = true
  258. sound.Volume = 10
  259. wait()
  260. text.Text = 'Now Playing, '..game:service'MarketplaceService':GetProductInfo(sound.SoundId:match("%d+")).Name
  261. elseif msg:sub(1,5):lower()=='pitch' then
  262. local val2 = Instance.new("NumberValue", char)
  263. val2.Value = tonumber(msg:sub(6))
  264. local Pitch = val2.Value
  265. sound.Pitch = Pitch
  266. elseif msg:sub(1,3):lower()=='vol' then
  267. local val3 = Instance.new("NumberValue", char)
  268. val3.Value = tonumber(msg:sub(5))
  269. local Volume = val3.Value
  270. sound.Volume = Volume
  271. end
  272. end)
  273.  
  274. plr.Chatted:connect(function(msg)
  275. if msg:sub(1, 5):lower()=='local' then
  276. sound.Parent = plr.PlayerGui
  277. text.Text = 'Sounds Is Set To Local!'
  278. wait(1)
  279. text.Text = 'Now Playing, '..game:service'MarketplaceService':GetProductInfo(sound.SoundId:match("%d+")).Name
  280. end
  281. end)
  282.  
  283. plr.Chatted:connect(function(msg)
  284. if msg:sub(1, 6):lower()=='global' then
  285. sound.Parent = char.Head
  286. text.Text = 'Sounds Is Set To Global!'
  287. wait(1)
  288. text.Text = 'Now Playing, '..game:service'MarketplaceService':GetProductInfo(sound.SoundId:match("%d+")).Name
  289. end
  290. end)
  291.  
  292. local center = Instance.new("Part")
  293. center.Anchored = true
  294. center.CanCollide = false
  295. center.Locked = true
  296. center.Size = Vector3.new(5, 5, 5)
  297. center.Material = Enum.Material.Neon
  298. center.Transparency = 0
  299. center.Parent = char
  300.  
  301. local lite = Instance.new("PointLight")
  302. lite.Color = Color3.new(1, 1, 1)
  303. lite.Range = 25
  304. lite.Parent = center
  305.  
  306. local a = Instance.new("Part")
  307. a.Anchored = true
  308. a.CanCollide = false
  309. a.Locked = true
  310. a.Size = Vector3.new(3, 3, 3)
  311. a.Material = Enum.Material.Neon
  312. a.Transparency = 0.3
  313. a.Parent = char
  314.  
  315. local b = Instance.new("Part")
  316. b.Anchored = true
  317. b.CanCollide = false
  318. b.Locked = true
  319. b.Size = Vector3.new(3, 3, 3)
  320. b.Material = Enum.Material.Neon
  321. b.Transparency = 0.3
  322. b.Parent = char
  323.  
  324. local c = Instance.new("Part")
  325. c.Anchored = true
  326. c.CanCollide = false
  327. c.Locked = true
  328. c.Size = Vector3.new(3, 3, 3)
  329. c.Material = Enum.Material.Neon
  330. c.Transparency = 0.3
  331. c.Parent = char
  332.  
  333. local d = Instance.new("Part")
  334. d.Anchored = true
  335. d.CanCollide = false
  336. d.Locked = true
  337. d.Size = Vector3.new(3, 3, 3)
  338. d.Material = Enum.Material.Neon
  339. d.Transparency = 0.5
  340. d.Parent = char
  341.  
  342. local e = Instance.new("Part")
  343. e.Anchored = true
  344. e.CanCollide = false
  345. e.Locked = true
  346. e.Size = Vector3.new(3, 3, 3)
  347. e.Material = Enum.Material.Neon
  348. e.Transparency = 0.5
  349. e.Parent = char
  350.  
  351. local f = Instance.new("Part")
  352. f.Anchored = true
  353. f.CanCollide = false
  354. f.Locked = true
  355. f.Size = Vector3.new(3, 3, 3)
  356. f.Material = Enum.Material.Neon
  357. f.Transparency = 0.5
  358. f.Parent = char
  359.  
  360. local g = Instance.new("Part")
  361. g.Anchored = true
  362. g.CanCollide = false
  363. g.Locked = true
  364. g.Size = Vector3.new(3, 3, 3)
  365. g.Material = Enum.Material.Neon
  366. g.Transparency = 0.5
  367. g.Parent = char
  368.  
  369. local h = Instance.new("Part")
  370. h.Anchored = true
  371. h.CanCollide = false
  372. h.Locked = true
  373. h.Size = Vector3.new(3, 3, 3)
  374. h.Material = Enum.Material.Neon
  375. h.Transparency = 0.5
  376. h.Parent = char
  377.  
  378. local trail1 = Instance.new("Part")
  379. local atta1 = Instance.new("Attachment", trail1)
  380. local atta2 = Instance.new("Attachment", center)
  381. trail1.Transparency = 0
  382. trail1.Size = Vector3.new(0, 0, 0)
  383. trail1.CanCollide = false
  384. trail1.Anchored = true
  385. trail1.Locked = true
  386.  
  387. local trail = Instance.new("Trail")
  388. trail.Attachment1 = atta1
  389. trail.LightEmission = 1
  390. trail.Lifetime = 1.5
  391. trail.Attachment0 = atta2
  392. trail.LightInfluence = 1
  393. trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.8), NumberSequenceKeypoint.new(1, 1)})
  394. trail.Parent = char
  395.  
  396. local particle = Instance.new("ParticleEmitter")
  397. particle.SpreadAngle = Vector2.new(350, 350)
  398. particle.Lifetime = NumberRange.new(5)
  399. particle.Texture = "rbxassetid://272050333"
  400. particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  401. particle.Rate = 500
  402. particle.LightInfluence = 1
  403. particle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 0)})
  404. particle.Parent = center
  405.  
  406. local particle2 = Instance.new("ParticleEmitter")
  407. particle2.SpreadAngle = Vector2.new(350, 350)
  408. particle2.RotSpeed = NumberRange.new(360, 360)
  409. particle2.Lifetime = NumberRange.new(5)
  410. particle2.Texture = "rbxassetid://569507523"
  411. particle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  412. particle2.Rate = 250
  413. particle2.LightInfluence = 1
  414. particle2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 0)})
  415. particle2.Parent = center
  416.  
  417. local Y = 0
  418. local X = 0
  419. local Z = 0
  420.  
  421. orbit = 0
  422. print'start loop'
  423. game:service'RunService'.RenderStepped:connect(function()
  424.  
  425. if sound.PlaybackLoudness > 325 then
  426. for i = 1, 20 do
  427. char.Humanoid.CameraOffset =
  428. char.Humanoid.CameraOffset:lerp(Vector3.new(math.random(-1, 1),math.random(-1, 1),math.random(-1, 1)), 0.05)
  429. wait()
  430. end
  431. char.Humanoid.CameraOffset = Vector3.new(0,0,0)
  432. end
  433.  
  434. if sound.PlaybackLoudness > 350 then
  435. for i = 1, 20 do
  436. char.Humanoid.CameraOffset =
  437. char.Humanoid.CameraOffset:lerp(Vector3.new(math.random(-2, 2),math.random(-2, 2),math.random(-2, 2)), 0.08)
  438. wait()
  439. end
  440. char.Humanoid.CameraOffset = Vector3.new(0,0,0)
  441. end
  442.  
  443. end)
  444.  
  445. game:service'RunService'.RenderStepped:connect(function()
  446.  
  447. if sound.PlaybackLoudness > 350 then
  448. lite.Color = lite.Color:lerp(Color3.new(1, 1, 1), 0.08)
  449. particle.Speed = NumberRange.new(50)
  450. particle.Color = ColorSequence.new(Color3.new(1, 1, 1), Color3.new(1, 1, 1))
  451. trail.Color = ColorSequence.new(Color3.new(1, 1, 1), Color3.new(1, 1, 1))
  452. particle2.Speed = NumberRange.new(50)
  453. particle2.Color = ColorSequence.new(Color3.new(1, 1, 1), Color3.new(1, 1, 1))
  454. center.Color = center.Color:lerp(Color3.new(255, 255, 255), 0.08)
  455. a.Color = a.Color:lerp(Color3.new(255, 255, 255), 0.08)
  456. b.Color = b.Color:lerp(Color3.new(255, 255, 255), 0.08)
  457. c.Color = c.Color:lerp(Color3.new(255, 255, 255), 0.08)
  458. d.Color = d.Color:lerp(Color3.new(255, 255, 255), 0.08)
  459. e.Color = e.Color:lerp(Color3.new(255, 255, 255), 0.08)
  460. f.Color = f.Color:lerp(Color3.new(255, 255, 255), 0.08)
  461. g.Color = g.Color:lerp(Color3.new(255, 255, 255), 0.08)
  462. h.Color = h.Color:lerp(Color3.new(255, 255, 255), 0.08)
  463. else
  464. lite.Color = lite.Color:lerp(partcol, 0.08)
  465. particle.Speed = NumberRange.new(10)
  466. particle.Color = ColorSequence.new(partcol, partcol)
  467. trail.Color = ColorSequence.new(partcol, partcol)
  468. particle2.Speed = NumberRange.new(10)
  469. particle2.Color = ColorSequence.new(partcol, partcol)
  470. center.Color = center.Color:lerp(partcol, 0.08)
  471. a.Color = a.Color:lerp(partcol, 0.08)
  472. b.Color = b.Color:lerp(partcol, 0.08)
  473. c.Color = c.Color:lerp(partcol, 0.08)
  474. d.Color = d.Color:lerp(partcol, 0.08)
  475. e.Color = e.Color:lerp(partcol, 0.08)
  476. f.Color = f.Color:lerp(partcol, 0.08)
  477. g.Color = g.Color:lerp(partcol, 0.08)
  478. h.Color = h.Color:lerp(partcol, 0.08)
  479. end
  480.  
  481. end)
  482.  
  483. game:service'RunService'.RenderStepped:connect(function()
  484.  
  485. trail.MaxLength = sound.PlaybackLoudness/25
  486.  
  487. particle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, sound.PlaybackLoudness/1000), NumberSequenceKeypoint.new(1, sound.PlaybackLoudness/250)})
  488. particle2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, sound.PlaybackLoudness/1000), NumberSequenceKeypoint.new(1, sound.PlaybackLoudness/250)})
  489.  
  490. lite.Brightness = sound.PlaybackLoudness/15
  491.  
  492. orbit = orbit + sound.PlaybackLoudness/5000
  493.  
  494. Y = Y + sound.PlaybackLoudness/20000
  495. X = X + sound.PlaybackLoudness/1500
  496. Z = Z + sound.PlaybackLoudness/500
  497.  
  498. a.Size = a.Size:lerp(Vector3.new(sound.PlaybackLoudness/250, sound.PlaybackLoudness/250, sound.PlaybackLoudness/250),0.08)
  499.  
  500. b.Size = b.Size:lerp(Vector3.new(sound.PlaybackLoudness/250, sound.PlaybackLoudness/250, sound.PlaybackLoudness/250),0.05)
  501.  
  502. c.Size = c.Size:lerp(Vector3.new(sound.PlaybackLoudness/250, sound.PlaybackLoudness/250, sound.PlaybackLoudness/250),0.08)
  503.  
  504. d.Size = d.Size:lerp(Vector3.new(sound.PlaybackLoudness/250, sound.PlaybackLoudness/250, sound.PlaybackLoudness/250),0.05)
  505.  
  506. e.Size = e.Size:lerp(Vector3.new(sound.PlaybackLoudness/500, sound.PlaybackLoudness/500, sound.PlaybackLoudness/500),0.08)
  507.  
  508. f.Size = f.Size:lerp(Vector3.new(sound.PlaybackLoudness/500, sound.PlaybackLoudness/500, sound.PlaybackLoudness/500),0.05)
  509.  
  510. g.Size = g.Size:lerp(Vector3.new(sound.PlaybackLoudness/500, sound.PlaybackLoudness/500, sound.PlaybackLoudness/500),0.08)
  511.  
  512. h.Size = h.Size:lerp(Vector3.new(sound.PlaybackLoudness/500, sound.PlaybackLoudness/500, sound.PlaybackLoudness/500),0.05)
  513.  
  514. center.Size = center.Size:lerp(Vector3.new(sound.PlaybackLoudness/100, sound.PlaybackLoudness/100, sound.PlaybackLoudness/100),0.08)
  515.  
  516. center.CFrame =
  517. center.CFrame:lerp(char.HumanoidRootPart.CFrame * CFrame.new(0, 8, 0) * CFrame.fromEulerAnglesXYZ(math.rad(Y),math.rad(Z),math.rad(X)),0.05)
  518.  
  519. a.CFrame =
  520. a.CFrame:lerp(center.CFrame * CFrame.fromEulerAnglesXYZ(-9, orbit * 0.8, 0) * CFrame.new(sound.PlaybackLoudness/-50, 0, sound.PlaybackLoudness/-50) * CFrame.fromEulerAnglesXYZ(math.rad(Y),math.rad(Z),math.rad(X)),0.08)
  521.  
  522. b.CFrame =
  523. b.CFrame:lerp(center.CFrame * CFrame.fromEulerAnglesXYZ(3, orbit * -0.8, 0) * CFrame.new(sound.PlaybackLoudness/-100, 0, sound.PlaybackLoudness/-100) * CFrame.fromEulerAnglesXYZ(math.rad(X),math.rad(Y),math.rad(Z)),0.08)
  524.  
  525. c.CFrame =
  526. c.CFrame:lerp(center.CFrame * CFrame.fromEulerAnglesXYZ(9, orbit * -0.8, 0) * CFrame.new(sound.PlaybackLoudness/100, 0, sound.PlaybackLoudness/100) * CFrame.fromEulerAnglesXYZ(math.rad(Y),math.rad(Z),math.rad(X)),0.05)
  527.  
  528. d.CFrame =
  529. d.CFrame:lerp(center.CFrame * CFrame.fromEulerAnglesXYZ(-3, orbit * 0.8, 0) * CFrame.new(sound.PlaybackLoudness/50, 0, sound.PlaybackLoudness/50) * CFrame.fromEulerAnglesXYZ(math.rad(X),math.rad(Y),math.rad(Z)),0.05)
  530.  
  531. e.CFrame =
  532. e.CFrame:lerp(a.CFrame * CFrame.fromEulerAnglesXYZ(-9, orbit * 0.8, 0) * CFrame.new(sound.PlaybackLoudness/-20, 0, sound.PlaybackLoudness/-20) * CFrame.fromEulerAnglesXYZ(math.rad(Y),math.rad(Z),math.rad(X)),0.02)
  533.  
  534. f.CFrame =
  535. f.CFrame:lerp(c.CFrame * CFrame.fromEulerAnglesXYZ(3, orbit * -0.8, 0) * CFrame.new(sound.PlaybackLoudness/-25, 0, sound.PlaybackLoudness/-25) * CFrame.fromEulerAnglesXYZ(math.rad(X),math.rad(Y),math.rad(Z)),0.02)
  536.  
  537. g.CFrame =
  538. g.CFrame:lerp(d.CFrame * CFrame.fromEulerAnglesXYZ(9, orbit * -0.8, 0) * CFrame.new(sound.PlaybackLoudness/25, 0, sound.PlaybackLoudness/25) * CFrame.fromEulerAnglesXYZ(math.rad(Y),math.rad(Z),math.rad(X)),0.02)
  539.  
  540. h.CFrame =
  541. h.CFrame:lerp(b.CFrame * CFrame.fromEulerAnglesXYZ(-3, orbit * 0.8, 0) * CFrame.new(sound.PlaybackLoudness/20, 0, sound.PlaybackLoudness/20) * CFrame.fromEulerAnglesXYZ(math.rad(X),math.rad(Y),math.rad(Z)),0.02)
  542.  
  543. trail1.CFrame =
  544. trail1.CFrame:lerp(center.CFrame * CFrame.fromEulerAnglesXYZ(-0.3, orbit * 0.8, math.random(-0.9, 0.1)) * CFrame.new(sound.PlaybackLoudness/-50, 0, sound.PlaybackLoudness/-50) * CFrame.fromEulerAnglesXYZ(math.rad(X),math.rad(Y),math.rad(Z)),0.08)
  545. end)
  546.  
  547. force = Instance.new("ForceField",char)
  548. force.Visible = false
  549.  
  550. char.Humanoid.MaxHealth = math.huge*math.huge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement