Jiren_0013

funny

Jul 25th, 2021
689
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Made by Jiren
  2. getgenv().AutoDodge = not getgenv().AutoDodge
  3. getgenv().TPTween = false
  4. getgenv().TweenSpeed = 3000 -- the higher the faster
  5. getgenv().dodgedistance = 20
  6.  
  7. function TeamCheckLib()
  8.     local func = {}
  9.     function teamType(noob)
  10.         if noob.Team or noob.TeamColor then
  11.             local teamplayer = noob.Team or noob.TeamColor
  12.             return teamplayer
  13.         end
  14.     end
  15.     function FFA()
  16.         sameTeam = 0
  17.         for _, player in next, game.Players:GetPlayers() do
  18.             if teamType(player) == teamType(game.Players.LocalPlayer) then
  19.                 sameTeam = sameTeam + 1
  20.             end
  21.         end
  22.         if sameTeam == #game.Players:GetChildren() then
  23.             return true
  24.         else
  25.             return false
  26.         end
  27.     end
  28.     function func:ProTeam(Noob)
  29.         -- Same team
  30.         if Noob.Neutral and game.Players.LocalPlayer.Neutral then return true end
  31.         return Noob.TeamColor == game.Players.LocalPlayer.TeamColor
  32.     end
  33.     function func:NoobTeam(noob)
  34.         -- Enemy team / FFA
  35.         return teamType(noob) ~= teamType(game.Players.LocalPlayer) or FFA()
  36.     end
  37.     return func
  38. end
  39.  
  40. function GetClosestNoob()
  41.     local check = TeamCheckLib();
  42.     local pro = game.Players.LocalPlayer
  43.     local okdistance = math.huge
  44.     local closestplayer
  45.     for all,noob in next, game:GetService("Players"):GetPlayers() do
  46.         if noob ~= pro and check:NoobTeam(noob) and noob.Character and noob.Character:FindFirstChild("Humanoid") and noob.Character.Humanoid.Health ~= 0 then
  47.             closestnoob = (pro.Character.HumanoidRootPart.Position - noob.Character.HumanoidRootPart.Position).Magnitude
  48.             if closestnoob < dodgedistance - 1 then
  49.                 okdistance = closestnoob
  50.                 closestplayer = noob
  51.             end
  52.         end
  53.     end
  54.     return closestplayer
  55. end
  56.  
  57. local function RandomShit(t)
  58.     return t[math.random(1, #t)]
  59. end
  60.  
  61. pcall(function()
  62.     getgenv().AddAuraWhenSpawn:Disconnect()
  63. end)
  64.  
  65. function MUIAura(UltraInstinct)
  66.     pcall(function()
  67.         Aura:Destroy()
  68.         Aura2:Destroy()
  69.         Aura3:Destroy()
  70.         Aura4:Destroy()
  71.         Aura5:Destroy()
  72.         Aura6:Destroy()
  73.         Aura7:Destroy()
  74.         Sparkles:Destroy()
  75.     end)
  76.     if not UltraInstinct then
  77.         return
  78.     end
  79.     local char = game.Players.LocalPlayer.Character
  80.     local larm = char:WaitForChild("Left Arm")
  81.     local rarm = char:WaitForChild("Right Arm")
  82.     local lleg = char:WaitForChild("Left Leg")
  83.     local rleg = char:WaitForChild("Right Leg")
  84.     local hed = char:WaitForChild("Head")
  85.     local torso = char:WaitForChild("Torso")
  86.     local root = char:WaitForChild("HumanoidRootPart")
  87.     getgenv().Aura = Instance.new("ParticleEmitter",rarm)
  88.     Aura.Texture = "rbxassetid://1207853932"
  89.     Aura.Color = ColorSequence.new(Color3.fromRGB(33, 54, 255))
  90.     Aura.EmissionDirection = "Top"
  91.     Aura.Speed = NumberRange.new(1)
  92.     Aura.Size = NumberSequence.new(1.2)
  93.     Aura.Transparency = NumberSequence.new(0,1)
  94.     Aura.Drag = 0.4
  95.     Aura.LightInfluence = 0
  96.     Aura.LockedToPart = true
  97.     Aura.Lifetime = NumberRange.new(1.2)
  98.     Aura.Rate = 48
  99.     Aura.LightEmission = 1
  100.     Aura.Rotation = NumberRange.new(-360,360)
  101.     Aura.VelocitySpread = 0
  102.     Aura.Acceleration = Vector3.new(0,0,0) 
  103.     Aura.ZOffset = 0.2
  104.     getgenv().Aura2 = Instance.new("ParticleEmitter",larm)
  105.     Aura2.Texture = "rbxassetid://1207853932"
  106.     Aura2.Color = ColorSequence.new(Color3.fromRGB(33, 54, 255))
  107.     Aura2.EmissionDirection = "Top"
  108.     Aura2.Speed = NumberRange.new(1)
  109.     Aura2.Size = NumberSequence.new(1.2)
  110.     Aura2.Transparency = NumberSequence.new(0,1)
  111.     Aura2.Drag = 0.4
  112.     Aura2.LightInfluence = 0
  113.     Aura2.LockedToPart = true
  114.     Aura2.Lifetime = NumberRange.new(1.2)
  115.     Aura2.Rate = 48
  116.     Aura2.LightEmission = 1
  117.     Aura2.Rotation = NumberRange.new(-360,360)
  118.     Aura2.VelocitySpread = 0
  119.     Aura2.Acceleration = Vector3.new(0,0,0)
  120.     Aura2.ZOffset = 0.2
  121.     getgenv().Aura3 = Instance.new("ParticleEmitter",torso)
  122.     Aura3.Texture = "rbxassetid://1207853932"
  123.     Aura3.Color = ColorSequence.new(Color3.fromRGB(33, 54, 255))
  124.     Aura3.EmissionDirection = "Top"
  125.     Aura3.Speed = NumberRange.new(1)
  126.     Aura3.Size = NumberSequence.new(1.2)
  127.     Aura3.Transparency = NumberSequence.new(0,1)
  128.     Aura3.Drag = 0.4
  129.     Aura3.LightInfluence = 0
  130.     Aura3.LockedToPart = true
  131.     Aura3.Lifetime = NumberRange.new(1.2)
  132.     Aura3.Rate = 48
  133.     Aura3.LightEmission = 1
  134.     Aura3.Rotation = NumberRange.new(-360,360)
  135.     Aura3.VelocitySpread = 0
  136.     Aura3.Acceleration = Vector3.new(0,0,0)
  137.     Aura3.ZOffset = 0.2
  138.     getgenv().Aura4 = Instance.new("ParticleEmitter",hed)
  139.     Aura4.Texture = "rbxassetid://1207853932"
  140.     Aura4.Color = ColorSequence.new(Color3.fromRGB(33, 54, 255))
  141.     Aura4.EmissionDirection = "Top"
  142.     Aura4.Speed = NumberRange.new(1)
  143.     Aura4.Size = NumberSequence.new(1.2)
  144.     Aura4.Transparency = NumberSequence.new(0,1)
  145.     Aura4.Drag = 0.4
  146.     Aura4.LightInfluence = 0
  147.     Aura4.LockedToPart = true
  148.     Aura4.Lifetime = NumberRange.new(1.2)
  149.     Aura4.Rate = 48
  150.     Aura4.LightEmission = 1
  151.     Aura4.Rotation = NumberRange.new(-360,360)
  152.     Aura4.VelocitySpread = 0
  153.     Aura4.Acceleration = Vector3.new(0,0,0)
  154.     Aura4.ZOffset = 0.2
  155.     getgenv().Aura5 = Instance.new("ParticleEmitter",torso)
  156.     Aura5.Texture = "rbxassetid://242255193"
  157.     Aura5.Color = ColorSequence.new(Color3.fromRGB(85, 170, 255))
  158.     Aura5.EmissionDirection = "Top"
  159.     Aura5.Speed = NumberRange.new(1)
  160.     Aura5.Size = NumberSequence.new(3)
  161.     Aura5.Transparency = NumberSequence.new(0.9,1)
  162.     Aura5.Drag = 0.4
  163.     Aura5.LightInfluence = 0
  164.     Aura5.LockedToPart = true
  165.     Aura5.Lifetime = NumberRange.new(4)
  166.     Aura5.Rate = 28
  167.     Aura5.LightEmission = 1
  168.     Aura5.Rotation = NumberRange.new(-360,360)
  169.     Aura5.VelocitySpread = 1
  170.     Aura5.Acceleration = Vector3.new(0,0,0)
  171.     Aura5.ZOffset = 2
  172.     getgenv().Aura6 = Instance.new("ParticleEmitter",lleg)
  173.     Aura6.Texture = "rbxassetid://1207853932"
  174.     Aura6.Color = ColorSequence.new(Color3.fromRGB(33, 54, 255))
  175.     Aura6.EmissionDirection = "Top"
  176.     Aura6.Speed = NumberRange.new(1)
  177.     Aura6.Size = NumberSequence.new(1.2)
  178.     Aura6.Transparency = NumberSequence.new(0,1)
  179.     Aura6.Drag = 0.4
  180.     Aura6.LightInfluence = 0
  181.     Aura6.LockedToPart = true
  182.     Aura6.Lifetime = NumberRange.new(1.2)
  183.     Aura6.Rate = 48
  184.     Aura6.LightEmission = 1
  185.     Aura6.Rotation = NumberRange.new(-360,360)
  186.     Aura6.VelocitySpread = 0
  187.     Aura6.Acceleration = Vector3.new(0,0,0)
  188.     Aura6.ZOffset = 0.2
  189.     getgenv().Aura7 = Instance.new("ParticleEmitter",rleg)
  190.     Aura7.Texture = "rbxassetid://1207853932"
  191.     Aura7.Color = ColorSequence.new(Color3.fromRGB(33, 54, 255))
  192.     Aura7.EmissionDirection = "Top"
  193.     Aura7.Speed = NumberRange.new(1)
  194.     Aura7.Size = NumberSequence.new(1.2)
  195.     Aura7.Transparency = NumberSequence.new(0,1)
  196.     Aura7.Drag = 0.4
  197.     Aura7.LightInfluence = 0
  198.     Aura7.LockedToPart = true
  199.     Aura7.Lifetime = NumberRange.new(1.2)
  200.     Aura7.Rate = 48
  201.     Aura7.LightEmission = 1
  202.     Aura7.Rotation = NumberRange.new(-360,360)
  203.     Aura7.VelocitySpread = 0
  204.     Aura7.Acceleration = Vector3.new(0,0,0)
  205.     Aura7.ZOffset = 0.2
  206.     getgenv().Sparkles = Instance.new("ParticleEmitter",torso)
  207.     Sparkles.Texture = "rbxassetid://1084976679"
  208.     Sparkles.Color = ColorSequence.new(BrickColor.new("White").Color)
  209.     Sparkles.EmissionDirection = "Top"
  210.     Sparkles.Speed = NumberRange.new(0)
  211.     Sparkles.Size = NumberSequence.new(2.5)
  212.     Sparkles.Transparency = NumberSequence.new(0,1)
  213.     Sparkles.Drag = 0.4
  214.     Sparkles.LightInfluence = 0
  215.     Sparkles.LockedToPart = true
  216.     Sparkles.Lifetime = NumberRange.new(0.8)
  217.     Sparkles.Rate = 60
  218.     Sparkles.LightEmission = 1
  219.     Sparkles.Rotation = NumberRange.new(-360,360)
  220.     Sparkles.VelocitySpread = 0
  221.     Sparkles.Acceleration = Vector3.new(0,10,0)
  222.     Sparkles.ZOffset = 1
  223. end
  224.  
  225. if getgenv().AutoDodge then
  226.     MUIAura(true)
  227. else
  228.     MUIAura(false)
  229. end
  230.  
  231. function Tween(targetPos, targetCFrame)
  232.     local tween_s = game:service"TweenService"
  233.     local mysexybody = game:GetService("Players").LocalPlayer.Character["HumanoidRootPart"]
  234.     local info = TweenInfo.new((targetPos - mysexybody.Position).Magnitude/getgenv().TweenSpeed, Enum.EasingStyle.Linear)
  235.     local tween, err = pcall(function()
  236.         local tween = tween_s:Create(game:GetService("Players").LocalPlayer.Character["HumanoidRootPart"], info, {CFrame = targetCFrame})
  237.         tween:Play()
  238.     end)
  239.     if not tween then return err end
  240. end
  241.  
  242. function Dodge()
  243.     pcall(function()
  244.         local getnoob = GetClosestNoob()
  245.         local youcf = getnoob.Character.HumanoidRootPart.Position
  246.         local a = dodgedistance
  247.         local number = {-a, -a-1, -a-2, a-2, a-1, a}
  248.         local randomX = RandomShit(number)
  249.         local randomZ = RandomShit(number)
  250.         if getgenv().TPTween then
  251.             Tween(youcf + Vector3.new(randomX, 0, randomZ), CFrame.new(youcf + Vector3.new(randomX, 0, randomZ)))
  252.         else
  253.             game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(youcf.X + randomX, youcf.Y, youcf.Z + randomZ)
  254.         end
  255.     end)
  256. end
  257.  
  258. spawn(function()
  259.     while getgenv().AutoDodge do game:GetService("RunService").RenderStepped:Wait()
  260.         Dodge()
  261.     end
  262. end)
  263.  
  264. spawn(function()
  265.     getgenv().AddAuraWhenSpawn = game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function()
  266.         repeat wait() until game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  267.         if getgenv().AutoDodge then
  268.             MUIAura(true)
  269.         end
  270.     end)
  271. end)
RAW Paste Data