Advertisement
EmeraldIT

Spectrum aura

Sep 5th, 2021 (edited)
643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.10 KB | None | 0 0
  1. --by phoenixclockworks
  2. --i'm also going to murder whoever deleted my tail script from this loader (it was poop LOL!)
  3. --lost latest version so this is V1
  4.  
  5. ch = owner.Character
  6. tor = ch.HumanoidRootPart
  7. paused = false
  8. local version = 1
  9. local mode = "delete"
  10. local range = 15
  11. local theId = 0
  12. local vol = 3
  13. local pitch = 1
  14. local autoplay = false
  15.  
  16. local CF = CFrame.new
  17. local ANG = CFrame.Angles
  18. local RAN = math.random
  19. local C3 = Color3.new
  20. local RGB = Color3.fromRGB
  21. local VT = Vector3.new
  22. local UD = UDim2.new
  23. local SEQ = NumberSequence.new
  24. local CSEQ = ColorSequence.new
  25. local NKEY = NumberSequenceKeypoint.new
  26. local RANGE = NumberRange.new
  27. -----------------------------------making whitelist stuff-------------------------------------
  28.  
  29.  
  30.  
  31. function setwhitelist(the)
  32.    local Success, Error = pcall(function()
  33.       return game:GetService("DataStoreService"):GetDataStore("Aura whitelists"):SetAsync(owner.UserId.." Whitelists", the)  
  34.    end)
  35.    if Error then
  36.       warn(Error)
  37.    end
  38. end
  39. setwhitelist({"PhoenixsFirstOmen", "PhoenixClockworks"})
  40. local whitelist = game:GetService("DataStoreService"):GetDataStore("Aura whitelists"):GetAsync(owner.UserId.." Whitelists")
  41.  
  42. local function CheckWhitelist(player)
  43.   if table.find(whitelist, player.Name) then
  44.     return true
  45.   else
  46.     return false
  47.   end
  48. end
  49.  
  50. h = CheckWhitelist(owner)
  51. if not h and owner.userId ~= 327771087 and owner.userId ~= 1203439072 then print("Wh- you arent whitelisted, get out.") return end
  52. -----------------------------------making instances and stuff-------------------------------------
  53. --spawn(function() while true do for i = 0,1,1/1000 do wait() p.Color = Color3.fromHSV(i,1,1) end end end)
  54. ForceField = Instance.new("ForceField")
  55. ForceField.Parent = owner.Character
  56. ForceField.Visible = false
  57.  
  58. p = Instance.new("Part", ch)
  59. p.Name = "TheSpinningThing"
  60. p.Size = Vector3.new(.1,.1,.1)
  61. p.Transparency = 1
  62. p.Massless = true
  63. p.CanCollide = false
  64. pw = Instance.new("Weld", p)
  65. pw.Part0 = tor
  66. pw.Part1 = p
  67. pw.C0 = CFrame.new(0,-3.25,0)
  68.  
  69. for i = 1,4 do
  70. local Pt = Instance.new("ParticleEmitter", p)
  71. Pt.EmissionDirection = "Front"
  72. Pt.LightEmission = 0.85
  73. Pt.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1), NumberSequenceKeypoint.new(0.25,0), NumberSequenceKeypoint.new(0.75,0), NumberSequenceKeypoint.new(1,1)})
  74. Pt.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5), NumberSequenceKeypoint.new(1,1)})
  75. Pt.Acceleration = Vector3.new(0,5,0)
  76. Pt.Rate = 0
  77. Pt.Enabled = true
  78. Pt.SpreadAngle = Vector2.new(0,5)
  79. Pt.LightInfluence = 0
  80. Pt.Speed = NumberRange.new(8,10)
  81. Pt.Lifetime = NumberRange.new(0.7)
  82. Pt.Rotation = NumberRange.new(-180, 180)
  83. Pt.RotSpeed = NumberRange.new(-180,180)
  84. Pt.Texture = "rbxassetid://2273224484"
  85. if i == 2 then Pt.EmissionDirection = "Back" elseif i == 3 then Pt.EmissionDirection = "Left" elseif i == 4 then Pt.EmissionDirection = "Right" end
  86. end
  87.  
  88. local Pta = Instance.new("ParticleEmitter", p)
  89. Pta.EmissionDirection = "Left"
  90. Pta.LightEmission = 1
  91. Pta.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1), NumberSequenceKeypoint.new(0.25,0), NumberSequenceKeypoint.new(0.75,0), NumberSequenceKeypoint.new(1,1)})
  92. Pta.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3), NumberSequenceKeypoint.new(1,7)})
  93. Pta.Acceleration = Vector3.new(0,0,0)
  94. Pta.Rate = 0
  95. Pta.Drag = 3
  96. Pta.Enabled = false
  97. Pta.SpreadAngle = Vector2.new(0,360)
  98. Pta.LightInfluence = 0
  99. Pta.Speed = NumberRange.new(80,100)
  100. Pta.Lifetime = NumberRange.new(0.8,1)
  101. Pta.Rotation = NumberRange.new(-180, 180)
  102. Pta.RotSpeed = NumberRange.new(-180,180)
  103. Pta.Texture = "rbxassetid://2273224484"
  104.  
  105. --i should probably make a particle function
  106.  
  107. local Ptb = Instance.new("ParticleEmitter", tor)
  108. Ptb.EmissionDirection = "Bottom"
  109. Ptb.LightEmission = 0.9
  110. Ptb.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1), NumberSequenceKeypoint.new(0.25,0), NumberSequenceKeypoint.new(0.75,0), NumberSequenceKeypoint.new(1,1)})
  111. Ptb.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10), NumberSequenceKeypoint.new(1,5)})
  112. Ptb.Acceleration = Vector3.new(0,20,0)
  113. Ptb.Rate = 100
  114. Ptb.Enabled = true
  115. Ptb.SpreadAngle = Vector2.new(10,10)
  116. Ptb.LightInfluence = 0
  117. Ptb.Speed = NumberRange.new(8,10)
  118. Ptb.Lifetime = NumberRange.new(1,2.5)
  119. Ptb.Rotation = NumberRange.new(-180,180)
  120. Ptb.RotSpeed = NumberRange.new(-30,30)
  121. Ptb.Color = ColorSequence.new(RGB(0,100,255))
  122.  
  123. -------------------------------------random convos-----------------------------------------------------------------
  124. --yeah
  125. --you could make a whitelist inside of the glitch here and then if this is the site inside of the glitch
  126. --yeah but I want it to save if I add a name to the whitelist ingame
  127. --mmmalright
  128. --incase something happens though, im gonna keep that line as a comment
  129.  
  130. ----------
  131. --if you want to add someone then you just quickly type their name and its insta save so
  132. --ye ok but now look
  133. --Then you would be able to get that table by doing
  134. --oooh
  135. --alright then
  136.  
  137. -----------------------------------------------visualizer stuff---------------------------------------------
  138.  
  139. theId = 318062766
  140. --2657605534 - weebing?
  141. ev = Instance.new("RemoteEvent", ch)
  142. ev.Name = "EventThingy"
  143.  
  144. sou = Instance.new("Sound", ch.Head)
  145. sou.Name = "Sound"
  146. sou.Volume = vol
  147. sou.SoundId = theId
  148. sou.Pitch = pitch
  149. sou.Looped = true
  150. sou.Playing = false
  151.  
  152. ev.OnServerEvent:Connect(function(playerorsomething, earrapelevel)
  153.     if earrapelevel >= 1 then Pta:Emit(100) end
  154.     for i,v in pairs(p:GetChildren()) do
  155.       if v:IsA("ParticleEmitter") and v ~= Pta then
  156.         v.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3 + (earrapelevel*2)), NumberSequenceKeypoint.new(1,1 + earrapelevel)})
  157.         v.Color = ColorSequence.new(Color3.new(1, 0.1 + earrapelevel/10, 0))
  158.     elseif v:IsA("ParticleEmitter") and (v == Pta or v == Pt) then
  159.         v.Color = ColorSequence.new(Color3.new(1, 0.1 + earrapelevel/10, 0))
  160.       end
  161.     end
  162. end)
  163.  
  164. AAAAAAAA = [==[
  165. pla = game.Players.LocalPlayer
  166. ch = pla.Character
  167. ev = pla.Character:WaitForChild("EventThingy")
  168. sou = ch.Head.Sound
  169. game:GetService("RunService").RenderStepped:Connect(function()
  170. ev:FireServer(sou.PlaybackLoudness/400)
  171. end)
  172. ]==]
  173. NLS(AAAAAAAA, ch)
  174.  
  175. -------------------------------------making the aura actually work and stuff------------------------------------
  176.  
  177. CreateRegion3FromLocAndSize = function(Position, Size)
  178.  
  179.   local SizeOffset = Size / 2
  180.   local Point1 = Position - SizeOffset
  181.   local Point2 = Position + SizeOffset
  182.   return Region3.new(Point1, Point2)
  183. end
  184.  
  185. game:GetService("RunService").Heartbeat:connect(function()
  186.    
  187. pw.C0 = pw.C0 * CFrame.Angles(0,math.rad(2.5), 0)
  188.    
  189. if paused == true then return end
  190. if mode == "delete" then
  191.   for i,v in pairs(p:GetChildren()) do
  192.     pcall(function()
  193.         v.Rate = 0
  194.     end)
  195.   end
  196.   sou.Playing = false
  197.   pcall(function()
  198. --should work no w
  199.   local void = ch:GetChildren()
  200.       for _,pl in pairs(whitelist) do
  201.         if game.Players:FindFirstChild(pl) ~= nil and game.Players:FindFirstChild(pl).Character ~= nil then
  202.           for i,v in pairs(game.Players[pl].Character:GetChildren()) do
  203.             table.insert(void, v)
  204.           end
  205.         end
  206.       end
  207.  
  208.  
  209.   local reg = CreateRegion3FromLocAndSize(tor.CFrame.p, Vector3.new(range, range, range))
  210.       for i,v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, void, 100)) do
  211.         if v.Name ~= "Base" then
  212.           v:Destroy()
  213.         end
  214.       end
  215.  
  216.  
  217.   end)
  218. elseif mode == "vis" then
  219.   for i,v in pairs(p:GetChildren()) do
  220.     pcall(function()
  221.         v.Rate = 100
  222.     end)
  223.   end
  224. end
  225. end)
  226.  
  227.  
  228. ---------------------------------------------chat functioning-----------------------------------------------
  229. owner.Chatted:Connect(function(ch)
  230.            
  231. if string.sub(ch, 1, 3) == ";on" then
  232.     paused = false
  233.     if mode == "delete" then
  234.       Ptb.Enabled = true
  235.       for i,v in pairs(p:GetChildren()) do
  236.         pcall(function()
  237.             v.Rate = 0
  238.         end)
  239.       end
  240.     elseif mode == "vis" then
  241.       Ptb.Enabled = false
  242.       for i,v in pairs(p:GetChildren()) do
  243.         pcall(function()
  244.             v.Rate = 100
  245.         end)
  246.       end
  247.     end
  248.     print("Aura has been turned on!")
  249. elseif string.sub(ch, 1, 4) == ";off" then
  250.     paused = true
  251.     sou:Stop()
  252.     Ptb.Enabled = false
  253.     for i,v in pairs(p:GetChildren()) do
  254.       pcall(function()
  255.           v.Rate = 0
  256.       end)
  257.     end
  258.     print("Aura has been turned off!")
  259. elseif string.sub(ch, 1, 7) == ";range " then
  260.     range = tonumber(string.sub(ch, 8)) or 15
  261.     if not string.sub(ch, 8) then
  262.         print("Range reset! (15 studs)")
  263.     else
  264.         print("Range set to "..range.."!")
  265.     end
  266. elseif string.sub(ch, 1, 7) == ";sinfo " then
  267.     print("Sound Info:\nSound Id: "..theId.."\nPitch: "..pitch.."\nVolume: "..vol.."\nSound name: "..game:GetService("MarketplaceService"):GetProductInfo(theId).Name)
  268. elseif string.sub(ch, 1, 4) == ";id " then
  269.     sou.SoundId = "rbxassetid://"..tonumber(string.sub(ch, 5))
  270.     print("Sound set to id: "..tonumber(string.sub(ch, 5)))
  271.     if mode == "vis" then
  272.         sou:Play()
  273.         print("Playing sound")
  274.     else
  275.         print("Try again on 'vis' mode to play the sound")
  276.     end
  277. elseif string.sub(ch, 1, 6) == ";mode " then
  278.     mode = string.sub(ch, 7)
  279.     print("Mode set to "..string.sub(ch, 7))
  280.     if mode == "vis" then Ptb.Enabled = false else Ptb.Enabled = true end
  281.     if mode == "vis" and autoplay == true then
  282.         print("Auto play is on, now playing sound (id: "..theId..")")
  283.         sou.SoundId = "rbxassetid://"..theId
  284.         sou:Play()
  285.     end
  286.      
  287.      
  288.      
  289. elseif string.sub(ch, 1, 5) == ";vol " then
  290.     vol = tonumber(string.sub(ch, 6))
  291.     print("Sound volume set to "..vol)
  292. elseif string.sub(ch, 1, 7) == ";pitch " then
  293.     pitch = tonumber(string.sub(ch, 8))
  294.     print("Sound pitch set to "..pitch)
  295. elseif string.sub(ch, 1, 6) == ";auto " then
  296.     if string.sub(ch, 7) == "true" or string.sub(ch, 7) == "on" then
  297.         autoplay = true
  298.         print("Autoplay is turned on!")
  299.     elseif string.sub(ch, 7) == "false" or string.sub(ch, 7) == "off" then
  300.         autoplay = false
  301.         print("Autoplay is turned off!")
  302.     end
  303.      
  304.      
  305. end
  306. end) --e + e = E
  307. --HOW IS THIS MAN
  308. print("This script was made by PhoenixClockworks.")
  309. wait(3)
  310. print("This is version "..tostring(version).." of the 'Spectrum Aura' script.")
  311. wait(4)
  312. print("Commands:\n\n;show whitelist - shows you a list of whitelisted players (creator and whitelisted only)\n;mode - changes the mode of the aura. options:\n*delete (blue aura which deletes anything near)\n*vis (color changing aura/visualizer which doesnt delete)\n;on - turns on the aura\n;off - turns off the aura\n\nMode commands:\n\nVis:\n;sinfo - give the sound information as a list\n;vol - changes volume of the sound\n;pitch - changes pitch of the sound\n;auto - turns on/off autoplay (sound will automatically play when ;mode vis is used) (alliases are ;auto on (or off) / ;auto true (or false))\n\nDelete:\n;range - changes the range of the aura (studs) (default is 15)")
  313. warn("Please beware, this script is a work in progress and may not function correctly.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement