Advertisement
iiJosephCats205

Radio Visualizer

Oct 20th, 2019
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.78 KB | None | 0 0
  1. --By iiJoeCats (Some code is tooken from other scripts Credit to them.)
  2.  
  3. --[[CONTROLS;
  4.     Q - Teleport
  5.     Z - Toggle Persective
  6.     E - Teleport A Random Player To You
  7.    
  8.     --//CHAT COMMANDS
  9.     play/id - Changes The Current Music Playing
  10. --]]
  11.  
  12. print("Running...")
  13. wait(1)
  14. local player = game.Players.LocalPlayer
  15. local mouse = player:GetMouse()
  16. local character = player.Character
  17. local hum = character:FindFirstChildOfClass("Humanoid")
  18. local runS = game:GetService("RunService").RenderStepped
  19.  
  20. local attack = false
  21. local canbefps = false
  22. local walking = false
  23.  
  24. local rArm = character["Right Arm"]
  25. local lArm = character["Left Arm"]
  26. local rLeg = character["Right Leg"]
  27. local lLeg = character["Left Leg"]
  28. local tors = character.Torso
  29. local hed = character.Head
  30. local root = character.HumanoidRootPart
  31.  
  32. local rootj = root.RootJoint
  33.  
  34. local raWeld = Instance.new("Weld",tors)
  35. raWeld.Part0 = tors
  36. raWeld.Part1 = rArm
  37. raWeld.C0 = CFrame.new(1.5,0,0)
  38.  
  39. local laWeld = Instance.new("Weld",tors)
  40. laWeld.Part0 = tors
  41. laWeld.Part1 = lArm
  42. laWeld.C0 = CFrame.new(-1.5,0,0)
  43.  
  44. local rlWeld = Instance.new("Weld",tors)
  45. rlWeld.Part0 = tors
  46. rlWeld.Part1 = rLeg
  47. rlWeld.C0 = CFrame.new(0.5,-2,0)
  48.  
  49. local llWeld = Instance.new("Weld",tors)
  50. llWeld.Part0 = tors
  51. llWeld.Part1 = lLeg
  52. llWeld.C0 = CFrame.new(-0.5,-2,0)
  53.  
  54. local hedWeld = Instance.new("Weld",tors)
  55. hedWeld.Part0 = tors
  56. hedWeld.Part1 = hed
  57. hedWeld.C0 = CFrame.new(0,1.5,0)
  58.    
  59. --Converted with ttyyuu12345's model to script plugin v4
  60. function sandbox(var,func)
  61.     local env = getfenv(func)
  62.     local newenv = setmetatable({},{
  63.         __index = function(self,k)
  64.             if k=="script" then
  65.                 return var
  66.             else
  67.                 return env[k]
  68.             end
  69.         end,
  70.     })
  71.     setfenv(func,newenv)
  72.     return func
  73. end
  74. cors = {}
  75. mas = Instance.new("Model",game:GetService("Lighting"))
  76. Part0 = Instance.new("Part")
  77. SpecialMesh1 = Instance.new("SpecialMesh")
  78. ParticleEmitter2 = Instance.new("ParticleEmitter")
  79. Part0.Name = "Radio"
  80. Part0.Parent = mas
  81. Part0.CFrame = CFrame.new(-50.3959198, 0.915013015, -102.537331, 0, 0, -0.99999994, 0, 0.999999881, 0, 0.99999994, 0, 0)
  82. Part0.Orientation = Vector3.new(0, -90, 0)
  83. Part0.Position = Vector3.new(-50.3959198, 0.915013015, -102.537331)
  84. Part0.Rotation = Vector3.new(0, -89.9800034, 0)
  85. Part0.Size = Vector3.new(3.33000135, 1.82999909, 1.03999996)
  86. Part0.BottomSurface = Enum.SurfaceType.Smooth
  87. Part0.CanCollide = false
  88. Part0.TopSurface = Enum.SurfaceType.Smooth
  89. Part0.FormFactor = Enum.FormFactor.Custom
  90. Part0.formFactor = Enum.FormFactor.Custom
  91. SpecialMesh1.Parent = Part0
  92. SpecialMesh1.MeshId = "http://www.roblox.com/asset/?id=151760030"
  93. SpecialMesh1.TextureId = "http://www.roblox.com/asset/?id=151760072"
  94. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  95. ParticleEmitter2.Parent = Part0
  96. ParticleEmitter2.Speed = NumberRange.new(3, 5)
  97. ParticleEmitter2.Rotation = NumberRange.new(-50, 50)
  98. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.180392, 1, 0),Color3.new(0.180392, 1, 0))
  99. ParticleEmitter2.LightInfluence = 1
  100. ParticleEmitter2.Texture = "rbxassetid://550831565"
  101. ParticleEmitter2.Size = NumberSequence.new(1,1,0)
  102. ParticleEmitter2.Acceleration = Vector3.new(0, 2.5, 0)
  103. ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
  104. ParticleEmitter2.Lifetime = NumberRange.new(1.5, 1.5)
  105. ParticleEmitter2.Rate = 5
  106. ParticleEmitter2.RotSpeed = NumberRange.new(-180, 180)
  107. ParticleEmitter2.SpreadAngle = Vector2.new(-50, 50)
  108. ParticleEmitter2.VelocitySpread = -50
  109. for i,v in pairs(mas:GetChildren()) do
  110.     v.Parent = character
  111.     pcall(function() v:MakeJoints() end)
  112. end
  113. mas:Destroy()
  114. for i,v in pairs(cors) do
  115.     spawn(function()
  116.         pcall(v)
  117.     end)
  118. end
  119.  
  120. local BoomWeld = Instance.new("Weld",Part0)
  121. BoomWeld.Part0 = Part0
  122. BoomWeld.Part1 = tors
  123. BoomWeld.C0 = CFrame.new(0,0,1) * CFrame.fromEulerAnglesXYZ(0,math.rad(180),math.rad(-25))
  124.  
  125. local theme = Instance.new("Sound",character)
  126. theme.Volume = 2
  127. theme.SoundId = "rbxassetid://3295654382"
  128. theme.Looped = true
  129. theme.MaxDistance = math.huge
  130. theme.Name = "creeper aw man"
  131. theme.TimePosition = 0
  132. theme:Play()
  133.  
  134. function changeTheme(ID)
  135.     theme.SoundId = "rbxassetid://"..ID
  136.     theme.TimePosition = 0
  137.     theme:Play()
  138. end
  139.  
  140. player.Chatted:Connect(function(mesg)
  141.     if mesg:sub(1,5) == "play/" then
  142.         local id = mesg:sub(6)
  143.         changeTheme(id)
  144.     end
  145. end)
  146.  
  147. function removeItem(item,timer)
  148.     game:GetService("Debris"):AddItem(item,timer)
  149. end
  150.  
  151. coroutine.resume(coroutine.create(function()
  152.     while runS:wait() do
  153.         SpecialMesh1.Scale = Vector3.new(1+theme.PlaybackLoudness/3200,1+theme.PlaybackLoudness/3200,1+theme.PlaybackLoudness/3200)
  154.         workspace.CurrentCamera.FieldOfView = 70 + theme.PlaybackLoudness/65
  155.         ParticleEmitter2.Size = NumberSequence.new(1+theme.PlaybackLoudness/250,1+theme.PlaybackLoudness/500,0)
  156.     end
  157. end))
  158.  
  159. hum.Name = "rektXD"
  160. hum.Animator:Destroy()
  161. character.Animate:Destroy()
  162.  
  163. hum.Running:Connect(function(speed)
  164.     if speed > 5 then
  165.         walking = true
  166.     else
  167.         walking = false
  168.     end
  169. end)
  170.  
  171. function fps()
  172.     if canbefps then
  173.         workspace.CurrentCamera.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(0,0,-0.9)
  174.     end
  175. end
  176. game:GetService("RunService").RenderStepped:connect(fps)
  177.  
  178. mouse.KeyDown:Connect(function(k)
  179.     if not attack then
  180.         if k == "q" then
  181.             attack = true
  182.             character:MoveTo(mouse.Hit.p + Vector3.new(0,0.75,0))
  183.            
  184.             --Converted with ttyyuu12345's model to script plugin v4
  185.             function sandbox(var,func)
  186.                 local env = getfenv(func)
  187.                 local newenv = setmetatable({},{
  188.                     __index = function(self,k)
  189.                         if k=="script" then
  190.                             return var
  191.                         else
  192.                             return env[k]
  193.                         end
  194.                     end,
  195.                 })
  196.                 setfenv(func,newenv)
  197.                 return func
  198.             end
  199.             cors = {}
  200.             mas = Instance.new("Model",game:GetService("Lighting"))
  201.             SurfaceLight0 = Instance.new("SurfaceLight")
  202.             SurfaceLight0.Parent = mas
  203.             SurfaceLight0.Face = Enum.NormalId.Top
  204.             SurfaceLight0.Range = 30
  205.             SurfaceLight0.Brightness = 40000000000
  206.             SurfaceLight0.Angle = 180
  207.             for i,v in pairs(mas:GetChildren()) do
  208.                 v.Parent = tors
  209.                 pcall(function() v:MakeJoints() end)
  210.             end
  211.             mas:Destroy()
  212.             for i,v in pairs(cors) do
  213.                 spawn(function()
  214.                     pcall(v)
  215.                 end)
  216.             end
  217.             removeItem(SurfaceLight0,0.06)
  218.            
  219.             attack = false
  220.         end
  221.         if k == "e" then
  222.             attack = true
  223.             for g, v in pairs(game.Players:GetPlayers()) do
  224.                 if v.Name ~= player.Name then
  225.                     v.Character:MoveTo(tors.Position + Vector3.new(math.random(-10,10),1,math.random(-10,10)))
  226.                    
  227.                     --Converted with ttyyuu12345's model to script plugin v4
  228.                     function sandbox(var,func)
  229.                         local env = getfenv(func)
  230.                         local newenv = setmetatable({},{
  231.                             __index = function(self,k)
  232.                                 if k=="script" then
  233.                                     return var
  234.                                 else
  235.                                     return env[k]
  236.                                 end
  237.                             end,
  238.                         })
  239.                         setfenv(func,newenv)
  240.                         return func
  241.                     end
  242.                     cors = {}
  243.                     mas = Instance.new("Model",game:GetService("Lighting"))
  244.                     SurfaceLight0 = Instance.new("SurfaceLight")
  245.                     SurfaceLight0.Parent = mas
  246.                     SurfaceLight0.Face = Enum.NormalId.Top
  247.                     SurfaceLight0.Range = 30
  248.                     SurfaceLight0.Brightness = 40000000000
  249.                     SurfaceLight0.Angle = 180
  250.                     for i,v in pairs(mas:GetChildren()) do
  251.                         v.Parent = v.Character.HumanoidRootPart
  252.                         pcall(function() v:MakeJoints() end)
  253.                     end
  254.                     mas:Destroy()
  255.                     for i,v in pairs(cors) do
  256.                         spawn(function()
  257.                             pcall(v)
  258.                         end)
  259.                     end
  260.                     removeItem(SurfaceLight0,0.06)
  261.                 end
  262.             end
  263.             attack = false
  264.         end
  265.         if k == "z" then
  266.             if canbefps then
  267.                 canbefps = false
  268.             else
  269.                 canbefps = true
  270.             end
  271.         end
  272.     end
  273. end)
  274.  
  275. while runS:wait() do
  276.     hum.WalkSpeed = 20
  277.     hum.Health = math.huge
  278.     hum.MaxHealth = math.huge
  279.     if hum.Sit == false then
  280.         if walking and not attack then
  281.             for i = 0,1,0.05 do
  282.                 if walking and hum.Sit == false then
  283.                     rootj.C0 = rootj.C0:lerp(CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(-95),math.rad(1.5),math.rad(180)),i)
  284.                     hedWeld.C0 = hedWeld.C0:lerp(CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(5),math.rad(0),math.rad(0)),i)
  285.                     raWeld.C0 = raWeld.C0:lerp(CFrame.new(1.5,0.1,0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-35),math.rad(0),math.rad(5)),i)
  286.                     laWeld.C0 = laWeld.C0:lerp(CFrame.new(-1.5,0.1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(35),math.rad(0),math.rad(-5)),i)
  287.                     rlWeld.C0 = rlWeld.C0:lerp(CFrame.new(0.55,-2,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(0),math.rad(0)),i)
  288.                     llWeld.C0 = llWeld.C0:lerp(CFrame.new(-0.55,-2,0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(0),math.rad(0)),i)  
  289.                     runS:wait()
  290.                 end
  291.             end
  292.                        
  293.             for i = 0,1,0.05 do
  294.                 if walking and hum.Sit == false then
  295.                     rootj.C0 = rootj.C0:lerp(CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(-95),math.rad(-1.5),math.rad(180)),i)
  296.                     hedWeld.C0 = hedWeld.C0:lerp(CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(5),math.rad(0),math.rad(0)),i)
  297.                     raWeld.C0 = raWeld.C0:lerp(CFrame.new(1.5,0.1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(35),math.rad(0),math.rad(5)),i)
  298.                     laWeld.C0 = laWeld.C0:lerp(CFrame.new(-1.5,0.1,0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-35),math.rad(0),math.rad(-5)),i)
  299.                     rlWeld.C0 = rlWeld.C0:lerp(CFrame.new(0.55,-2,0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(0),math.rad(0)),i)
  300.                     llWeld.C0 = llWeld.C0:lerp(CFrame.new(-0.55,-2,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(30),math.rad(0),math.rad(0)),i)  
  301.                     runS:wait()
  302.                 end
  303.             end
  304.         else
  305.             for i = 0,1,0.3 do
  306.                 if not walking and hum.Sit == false then
  307.                     raWeld.C0 = raWeld.C0:lerp(CFrame.new(1.55,0.1,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(10)),i)
  308.                     laWeld.C0 = laWeld.C0:lerp(CFrame.new(-1.55,0.1,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(-10)),i)
  309.                     rlWeld.C0 = rlWeld.C0:lerp(CFrame.new(0.6,-2,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(2.5)),i)
  310.                     llWeld.C0 = llWeld.C0:lerp(CFrame.new(-0.6,-2,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(-2.5)),i)
  311.                     hedWeld.C0 = hedWeld.C0:lerp(CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(40),math.rad(0)),i)
  312.                     rootj.C0 = rootj.C0:lerp(CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(0),math.rad(140)),i) 
  313.                     runS:wait()
  314.                 end
  315.             end
  316.         end
  317.     else
  318.         if hum.Sit == true then
  319.             for i = 0,1,0.06 do
  320.                 if not walking and hum.Sit == true then
  321.                     raWeld.C0 = raWeld.C0:lerp(CFrame.new(1.3,0.1,-.7) * CFrame.fromEulerAnglesXYZ(math.rad(45),math.rad(0),math.rad(-10)),i)
  322.                     laWeld.C0 = laWeld.C0:lerp(CFrame.new(-1.3,0.1,-.7) * CFrame.fromEulerAnglesXYZ(math.rad(45),math.rad(0),math.rad(10)),i)
  323.                     rlWeld.C0 = rlWeld.C0:lerp(CFrame.new(0.5,-1.4,-.75) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(0)),i)
  324.                     llWeld.C0 = llWeld.C0:lerp(CFrame.new(-0.5,-1.4,-.75) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(0)),i)
  325.                     hedWeld.C0 = hedWeld.C0:lerp(CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),i)
  326.                     rootj.C0 = rootj.C0:lerp(CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(0),math.rad(180)),i) 
  327.                 end
  328.             end
  329.         end
  330.     end
  331. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement