Advertisement
Guest User

Vector Curse

a guest
Feb 17th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.81 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local Tool = Instance.new("Tool")
  3. Tool.Name = "Fire"
  4. Tool.TextureId = "rbxassetid://428032311"
  5. Tool.Parent = Player.Backpack
  6.  
  7.  
  8. repeat
  9.     wait()
  10. until Player.Character ~= nil
  11. local Character = Player.Character
  12. repeat
  13.     wait()
  14. until Character:FindFirstChild("Torso")
  15. repeat
  16.     wait()
  17. until Player.PlayerGui:FindFirstChild("Sidescreens")
  18. repeat
  19.     wait()
  20. until Player.PlayerGui.Sidescreens.LocalStats:FindFirstChild("MagicPower")
  21. repeat
  22.     wait()
  23. until Player.PlayerGui.Sidescreens.LocalStats:FindFirstChild("Strength")
  24. repeat
  25.     wait()
  26. until Player.PlayerGui.Sidescreens.LocalStats:FindFirstChild("CriticalPower")
  27. repeat
  28.     wait()
  29. until Player.PlayerGui.Sidescreens.LocalStats:FindFirstChild("Level")
  30. repeat
  31.     wait()
  32. until Player.PlayerGui.Sidescreens.LocalStats:FindFirstChild("EXP")
  33. local Head = Character.Head
  34. local Torso = Character.Torso
  35. local RightArm = Character["Right Arm"]
  36. local LeftArm = Character["Left Arm"]
  37. local RightFist = Character.RightFist
  38. local LeftFist = Character.LeftFist
  39. local RightLeg = Character["Right Leg"]
  40. local LeftLeg = Character["Left Leg"]
  41. local Humanoid = Character.Humanoid
  42. local Mouse = Player:GetMouse()
  43. local Enabled = true
  44. local QKeyDown = false
  45. local Enabled2 = true
  46. local ZKeyDown = false
  47. local Selected = false
  48. repeat
  49.     wait()
  50. until Character:FindFirstChild("Head")
  51. repeat
  52.     wait()
  53. until Character.Head:FindFirstChild("Overhead")
  54. repeat
  55.     wait()
  56. until Character.Head.Overhead:FindFirstChild("Player")
  57.  
  58. if game.PlaceId ~= 657297629 then
  59.     do
  60.         local sv = Instance.new("BoolValue", Character)
  61.         sv.Name = "Slash"
  62.         local ss = Instance.new("IntValue", Character)
  63.         ss.Name = "StrengthStat"
  64.         ss.Value = game.ReplicatedStorage.Remotes.CheckStat:InvokeServer("Strength")
  65.         local cv = Instance.new("StringValue", Character)
  66.         cv.Name = "CV"
  67.         cv.Value = "Vector"
  68.         local cp = game.ReplicatedStorage.Particles.Curse.Vector:Clone()
  69.         cp.Parent = Head
  70.         cp.Name = "CuPa"
  71.         cp.Enabled = false
  72.         local cp = game.ReplicatedStorage.Particles.Curse.Vector:Clone()
  73.         cp.Parent = RightArm
  74.         cp.Name = "CuPa"
  75.         cp.Enabled = false
  76.         local cp = game.ReplicatedStorage.Particles.Curse.Vector:Clone()
  77.         cp.Parent = LeftArm
  78.         cp.Name = "CuPa"
  79.         cp.Enabled = false
  80.         local cp = game.ReplicatedStorage.Particles.Curse.Vector:Clone()
  81.         cp.Parent = Torso
  82.         cp.Name = "CuPa"
  83.         cp.Enabled = false
  84.         local cp = game.ReplicatedStorage.Particles.Curse.Vector:Clone()
  85.         cp.Parent = RightLeg
  86.         cp.Name = "CuPa"
  87.         cp.Enabled = false
  88.         local cp = game.ReplicatedStorage.Particles.Curse.Vector:Clone()
  89.         cp.Parent = LeftLeg
  90.         cp.Name = "CuPa"
  91.         cp.Enabled = false
  92.         local cp = game.ReplicatedStorage.Particles.Curse.Vector:Clone()
  93.         cp.Parent = Character.HumanoidRootPart
  94.         cp.Name = "CuPa"
  95.         cp.Enabled = false
  96.         local ce = game.ReplicatedStorage.Particles.Vector.Other1Vector:Clone()
  97.         ce.Parent = Character.HumanoidRootPart
  98.         ce.Name = "CuEx"
  99.         ce.Enabled = false
  100.         local cupaen = true
  101.         local Search = Character:GetChildren()
  102.         for i = 1, #Search do
  103.             if Search[i] == RightArm or Search[i] == LeftArm or Search[i] == Torso or Search[i] == Head or Search[i] == Character.HumanoidRootPart then
  104.                 Search[i].Touched:Connect(function(Part)
  105.                     if cupaen == false then
  106.                         return
  107.                     end
  108.                     cupaen = false
  109.                     if Search[i]:FindFirstChild("CuPa") then
  110.                         Search[i].CuPa:Emit(30)
  111.                     end
  112.                     game.ReplicatedStorage.Remotes.PlaySound:FireServer(1, game.ReplicatedStorage.SFX.Curse.Vector, Search[i])
  113.                     wait(0.2)
  114.                     cupaen = true
  115.                 end)
  116.             end
  117.         end
  118.     end
  119. end
  120. local MagicPower = Player.PlayerGui.Sidescreens.LocalStats.MagicPower.Value
  121. local Strength = Player.PlayerGui.Sidescreens.LocalStats.Strength.Value
  122. local CriticalPower = Player.PlayerGui.Sidescreens.LocalStats.CriticalPower.Value
  123. local PointsService = game:GetService("PointsService")
  124. local RunService = game:GetService("RunService")
  125. local MI = require(game.ReplicatedStorage.Modules.MagicInfo)
  126. local DamageFunctions = require(game.ReplicatedStorage.Modules.DamageFunctions)
  127. local TouchDamageBasic = DamageFunctions.TouchDamageBasic
  128. local TouchDamageBarrage = DamageFunctions.TouchDamageBarrage
  129. local AoEDamageUp = DamageFunctions.AoEDamageUp
  130. local AttackFunctions = require(game.ReplicatedStorage.Modules.AttackFunctions)
  131. local NoPvPHitEffects = AttackFunctions.NoPvPHitEffects
  132. local MakeMagicCircle = AttackFunctions.MakeMagicCircle
  133. local BasicFunctions = require(game.ReplicatedStorage.Modules.BasicFunctions)
  134. local Effects = require(game.ReplicatedStorage.Modules.Effects)
  135. local Shockwave = Effects.Shockwave
  136. local Shockwave2 = Effects.Shockwave2
  137. local Tornado = Effects.Tornado
  138. local SlowShockwave = Effects.SlowShockwave
  139. local InverseShockwave = Effects.InverseShockwave
  140. function KeyDown(Key)
  141.     if Character:FindFirstChild("ForceField") then
  142.         return
  143.     end
  144.     if Selected == false then
  145.         return
  146.     end
  147.     if Character:FindFirstChild("KO") then
  148.         return
  149.     end
  150.     if Character.Humanoid.Sit == true then
  151.         return
  152.     end
  153.     if Character.Humanoid.Health <= 0 then
  154.         return
  155.     end
  156.     MagicPower = Player.PlayerGui.Sidescreens.LocalStats.MagicPower.Value
  157.     Strength = Player.PlayerGui.Sidescreens.LocalStats.Strength.Value
  158.     CriticalPower = Player.PlayerGui.Sidescreens.LocalStats.CriticalPower.Value
  159.     Key = Key:lower()
  160.     if Key == "z" then
  161.         ZKeyDown = true
  162.         local VectorTier = BasicFunctions.GetMagicTier(MagicPower, 1)
  163.         if Enabled2 == true then
  164.             game.ReplicatedStorage.Remotes.PlaySound:FireServer(3, game.ReplicatedStorage.SFX.Vector.On, Character.HumanoidRootPart, 1, 1)
  165.             do
  166.                 local SlashV = Instance.new("BoolValue")
  167.                 SlashV.Name = "Slash"
  168.                 SlashV.Value = true
  169.                 SlashV.Parent = Character
  170.                 local Effect = game.ReplicatedStorage.Particles.Vector.VectorField:Clone()
  171.                 Effect.Parent = Character.HumanoidRootPart
  172.                 Enabled2 = false
  173.                 local e1 = 60 + 30 * VectorTier
  174.                 local e2 = Vector3.new(e1, e1, e1)
  175.                 local e3 = 30 + 15 * VectorTier
  176.                 spawn(function()
  177.                     while true do
  178.                         if Enabled2 == true then
  179.                             break
  180.                         end
  181.                         local Radius = BasicFunctions.CreateRegion3(Character.HumanoidRootPart.Position, e2)
  182.                         local Search = BasicFunctions.FindPartsInRegion3WithMagnitude3(Radius, Character.HumanoidRootPart, e3, {
  183.                             game.Workspace.Map,
  184.                             Character
  185.                         }, 300)
  186.                         if Search ~= nil and #Search > 0 then
  187.                             for i = 1, #Search do
  188.                                 if (Search[i]:FindFirstChild("BodyVelocity") or Search[i]:FindFirstChild("FireV")) and Search[i].Anchored == false and Search[i]:FindFirstChild("Reflected") == nil then
  189.                                     local Reflected = Instance.new("BoolValue", Search[i])
  190.                                     Reflected.Name = "Reflected"
  191.                                     Effect:Emit(1)
  192.                                     local Scan = Search[i]:GetChildren()
  193.                                     for o = 1, #Scan do
  194.                                         if Scan[o].ClassName == "BodyVelocity" then
  195.                                             Scan[o].Velocity = -Scan[o].Velocity
  196.                                             game.ReplicatedStorage.Remotes.PlaySound:FireServer(1, game.ReplicatedStorage.SFX.Vector.Reflect, Character.HumanoidRootPart, 1, 1)
  197.                                         end
  198.                                     end
  199.                                 end
  200.                             end
  201.                         end
  202.                         RunService.RenderStepped:wait()
  203.                     end
  204.                 end)
  205.             end
  206.         else
  207.             game.ReplicatedStorage.Remotes.PlaySound:FireServer(3, game.ReplicatedStorage.SFX.Vector.Off, Character.HumanoidRootPart, 1, 1)
  208.             if Character.HumanoidRootPart:FindFirstChild("VectorField") then
  209.                 Character.HumanoidRootPart.VectorField:Destroy()
  210.             end
  211.             local Search = Character:GetChildren()
  212.             for i = 1, #Search do
  213.                 if Search[i].Name == "Slash" then
  214.                     Search[i]:Destroy()
  215.                 end
  216.             end
  217.             Enabled2 = true
  218.         end
  219.     elseif Key == "q" then
  220.         QKeyDown = true
  221.         do
  222.             local VectorTier = BasicFunctions.GetMagicTier(MagicPower, 1)
  223.             local Move, jp, speed = BasicFunctions.AttackStart(Player, "MagicEnergy", 30 * VectorTier, Enabled)
  224.             if Move == nil then
  225.                 return
  226.             end
  227.             Enabled = false
  228.             local cv = Instance.new("StringValue", Character)
  229.             cv.Name = "ClashValue"
  230.             cv.Value = "Vector Thrust"
  231.             local AttackP = Instance.new("BodyPosition", Character.HumanoidRootPart)
  232.             AttackP.Name = "AttackP"
  233.             AttackP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  234.             AttackP.position = Character.HumanoidRootPart.Position
  235.             local AttackG = Instance.new("BodyGyro", Character.HumanoidRootPart)
  236.             AttackG.Name = "AttackG"
  237.             AttackG.P = AttackG.P * 4
  238.             AttackG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  239.             AttackG.cframe = CFrame.new(Character.HumanoidRootPart.Position, Mouse.Hit.p)
  240.             local InertiaWaveTrack, Effect, Effect2
  241.             if VectorTier == 1 or VectorTier == 2 then
  242.                 InertiaWaveTrack = Humanoid:LoadAnimation(game.ReplicatedStorage.Animations.Vector.InertiaWave1)
  243.                 InertiaWaveTrack:Play()
  244.                 Effect = game.ReplicatedStorage.Particles.Vector.Other1Vector:Clone()
  245.                 Effect.Parent = RightFist
  246.                 Effect.Enabled = true
  247.                 Effect2 = game.ReplicatedStorage.Particles.Vector.Other1Vector:Clone()
  248.                 Effect2.Parent = LeftFist
  249.                 Effect2.Enabled = true
  250.             elseif VectorTier == 3 or VectorTier == 4 or VectorTier == 5 then
  251.                 InertiaWaveTrack = Humanoid:LoadAnimation(game.ReplicatedStorage.Animations.Vector.InertiaWave2)
  252.                 InertiaWaveTrack:Play()
  253.                 Effect = game.ReplicatedStorage.Particles.Vector.Other1Vector:Clone()
  254.                 Effect.Parent = RightFist
  255.                 Effect.Enabled = true
  256.             end
  257.             wait(0.15)
  258.             local Charge = 0
  259.             local e1 = 12 * VectorTier / 60
  260.             local clashes = false
  261.             while QKeyDown == true do
  262.                 if clashes == false then
  263.                     clashes = AttackFunctions.PreClash(Mouse, Character, cv)
  264.                 end
  265.                 if 0 < Player.bin.MagicEnergy.Value then
  266.                     Player.bin.MagicEnergy.Value = Player.bin.MagicEnergy.Value - e1
  267.                 else
  268.                     break
  269.                 end
  270.                 Charge = Charge + 1
  271.                 AttackG.cframe = CFrame.new(Character.HumanoidRootPart.Position, Mouse.Hit.p)
  272.                 if VectorTier == 1 or VectorTier == 2 then
  273.                     if Charge == 50 then
  274.                         InertiaWaveTrack:AdjustSpeed(0)
  275.                     end
  276.                 elseif (VectorTier == 3 or VectorTier == 4 or VectorTier == 5) and Charge == 5 then
  277.                     InertiaWaveTrack:AdjustSpeed(0)
  278.                 end
  279.                 if QKeyDown == false then
  280.                     break
  281.                 end
  282.                 if Charge == 60 then
  283.                     break
  284.                 end
  285.                 wait()
  286.             end
  287.             if Player.bin.MagicEnergy.Value >= 30 * VectorTier then
  288.                 Player.bin.MagicEnergy.Value = Player.bin.MagicEnergy.Value - 30 * VectorTier
  289.             else
  290.                 InertiaWaveTrack:AdjustSpeed(0)
  291.                 wait(0.5)
  292.                 if Effect ~= nil then
  293.                     Effect.Enabled = false
  294.                     game.Debris:AddItem(Effect, Effect.Lifetime.Max)
  295.                 end
  296.                 if Effect2 ~= nil then
  297.                     Effect2.Enabled = false
  298.                     game.Debris:AddItem(Effect2, Effect2.Lifetime.Max)
  299.                 end
  300.                 Move:Destroy()
  301.                 AttackP:Destroy()
  302.                 AttackG:Destroy()
  303.                 Humanoid.JumpPower = jp
  304.                 Humanoid.WalkSpeed = speed
  305.                 Player.bin.Move.Value = false
  306.                 InertiaWaveTrack:Stop()
  307.                 wait(1)
  308.                 Enabled = true
  309.                 return
  310.             end
  311.             if clashes == true then
  312.                 AttackFunctions.ClashAttacks(Character, cv.Clash.Value)
  313.             else
  314.                 do
  315.                     local EXPgive = 5
  316.                     if VectorTier == 2 then
  317.                         EXPgive = 100
  318.                     elseif VectorTier == 3 then
  319.                         EXPgive = 200
  320.                     elseif VectorTier == 4 then
  321.                         EXPgive = 300
  322.                     elseif VectorTier == 5 then
  323.                         EXPgive = 400
  324.                     end
  325.                     local cc = Instance.new("BoolValue", Player.PlayerGui)
  326.                     cc.Name = "EEeX"
  327.                     game.Debris:AddItem(cc, 2)
  328.                     game.ReplicatedStorage.Remotes.SetStat:FireServer("EXP", Player.PlayerGui.Sidescreens.LocalStats.EXP.Value + EXPgive, "math.random() is the best thing ever")
  329.                     local cc = Instance.new("BoolValue", Player.PlayerGui)
  330.                     cc.Name = "MPeX"
  331.                     game.Debris:AddItem(cc, 2)
  332.                     game.ReplicatedStorage.Remotes.SetStat:FireServer("MPEXP", Player.PlayerGui.Sidescreens.LocalStats.MPEXP.Value + EXPgive, "math.random() is the best thing ever")
  333.                     game.ReplicatedStorage.Remotes.AwardPP:FireServer(math.floor(EXPgive / 2))
  334.                     if VectorTier > 2 then
  335.                         if Charge <= 30 then
  336.                             game:GetService("Chat"):Chat(Player.Character.Head, "Vector Thrust!", 2)
  337.                         else
  338.                             game:GetService("Chat"):Chat(Player.Character.Head, "VECTOR THRUST!!!", 2)
  339.                         end
  340.                     else
  341.                         game:GetService("Chat"):Chat(Player.Character.Head, "Vector Thrust!", 2)
  342.                     end
  343.                     local Damage = 5 + Charge / 3 + Player.PlayerGui.Sidescreens.LocalStats.MagicDamage.Value * ((VectorTier == 1 and 0 or VectorTier) / 5) * (VectorTier / 5)
  344.                     Damage = Damage + (Player.PlayerGui.Sidescreens.LocalStats.Level.Value / 4 + Player.PlayerGui.Sidescreens.LocalStats.MagicPower.Value / 8)
  345.                     if CriticalPower > 0 then
  346.                         cgr = math.random(1, 3)
  347.                         if cgr == 1 then
  348.                             Damage = Damage * (CriticalPower * 2)
  349.                             do
  350.                                 local SFX = game.ReplicatedStorage.SFX.Misc.CriticalExplosion:clone()
  351.                                 SFX.Parent = Head
  352.                                 SFX.Volume = 0.25
  353.                                 SFX.Pitch = 1
  354.                                 SFX:Play()
  355.                                 delay(1, function()
  356.                                     for i = 1, 10 do
  357.                                         SFX.Volume = SFX.Volume - 0.025
  358.                                         wait()
  359.                                     end
  360.                                     SFX:Stop()
  361.                                     SFX:Destroy()
  362.                                 end)
  363.                                 local CriticalExplosion = game.ReplicatedStorage.Particles.Misc.CriticalExplosion:clone()
  364.                                 CriticalExplosion.Parent = Head
  365.                                 CriticalExplosion.Enabled = false
  366.                                 game.Debris:AddItem(CriticalExplosion, 2)
  367.                                 wait()
  368.                                 CriticalExplosion:Emit(250)
  369.                             end
  370.                         end
  371.                     end
  372.                     wait(0.2)
  373.                     local Ball = Instance.new("Part", game.Workspace)
  374.                     Ball.Transparency = 1
  375.                     game.ReplicatedStorage.Remotes.SetNetworkOwner:FireServer(Ball)
  376.                     Ball.Size = Vector3.new(3, 3, 3)
  377.                     Ball.CFrame = Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -5)
  378.                     Ball.CanCollide = false
  379.                     Ball.Name = "VectorThrust"
  380.                     Ball.TopSurface = "Smooth"
  381.                     Ball.BottomSurface = "Smooth"
  382.                     game.ReplicatedStorage.Remotes.DebrisAddItem:FireServer(Ball, 5)
  383.                     local BallLight = Instance.new("PointLight", Ball)
  384.                     BallLight.Range = 10 * VectorTier
  385.                     BallLight.Color = Color3.new(1, 1, 1)
  386.                     BallLight.Shadows = true
  387.                     local p = 1
  388.                     if VectorTier == 1 then
  389.                         p = 1.5
  390.                     elseif VectorTier == 2 then
  391.                         p = 1.25
  392.                     elseif VectorTier == 3 then
  393.                         p = 1
  394.                     elseif VectorTier == 4 then
  395.                         p = 0.875
  396.                     elseif VectorTier == 5 then
  397.                         p = 0.75
  398.                     end
  399.                     game.ReplicatedStorage.Remotes.PlaySound:FireServer(6, game.ReplicatedStorage.SFX.Vector.InertiaWave, Ball, 1, p)
  400.                     local mod = Instance.new("Model", game.Workspace)
  401.                     mod.Name = "Shockwaves"
  402.                     spawn(function()
  403.                         local e1 = 6 * VectorTier
  404.                         local e2 = Vector3.new(e1, e1 / 8, e1)
  405.                         local e3 = CFrame.Angles(math.rad(90), math.rad(-90), 0)
  406.                         while Ball.Parent ~= nil do
  407.                             Effects.Shockwave2(BrickColor.new("Institutional White"), BrickColor.new("Institutional White"), e2, Ball.CFrame * e3, mod, true)
  408.                             wait(0.1)
  409.                         end
  410.                     end)
  411.                     local FlareV = Instance.new("BodyVelocity", Ball)
  412.                     FlareV.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  413.                     FlareV.velocity = Character.HumanoidRootPart.CFrame.lookVector * 150
  414.                     local DamageV = Instance.new("IntValue", Ball)
  415.                     DamageV.Name = "Damage"
  416.                     DamageV.Value = Damage
  417.                     local TierV = Instance.new("IntValue", Ball)
  418.                     TierV.Name = "Tier"
  419.                     TierV.Value = VectorTier
  420.                     local TypeV = Instance.new("StringValue", Ball)
  421.                     TypeV.Name = "Type"
  422.                     TypeV.Value = "Vector"
  423.                     local BallEnabled = true
  424.                     spawn(function()
  425.                         local e1 = 30 + 15 * VectorTier
  426.                         local e2 = Vector3.new(e1, e1, e1)
  427.                         local e3 = 15 + 7.5 * VectorTier
  428.                         while true do
  429.                             if BallEnabled == false then
  430.                                 break
  431.                             end
  432.                             if Ball.Parent == nil then
  433.                                 break
  434.                             end
  435.                             do
  436.                                 local Radius = BasicFunctions.CreateRegion3(Ball.Position, e2)
  437.                                 local Search = BasicFunctions.FindPartsInRegion3WithMagnitude3(Radius, Ball, e3, {
  438.                                     Character,
  439.                                     mod,
  440.                                     Ball,
  441.                                     game.Workspace.Map
  442.                                 }, 100)
  443.                                 if Search ~= nil and #Search > 0 then
  444.                                     for i = 1, #Search do
  445.                                         if Search[i].Parent ~= nil then
  446.                                             if Search[i].Parent:FindFirstChild("Humanoid") and Search[i].Parent:FindFirstChild("Torso") and Search[i].Parent:FindFirstChild("HitTag") == nil and Search[i].Parent:FindFirstChild("KO") == nil then
  447.                                                 if Search[i].Parent.Torso:FindFirstChild("VectorFling") == nil then
  448.                                                     if game.Players:FindFirstChild(Search[i].Parent.Name) then
  449.                                                         local ePlayer = game.Players[Search[i].Parent.Name]
  450.                                                         if ePlayer.bin.PvP.Value == true and Player.bin.PvP.Value == true then
  451.                                                             if AttackFunctions.CanDamage(Player, ePlayer) == true then
  452.                                                                 if Search[i].Parent:FindFirstChild("ForceField") == nil then
  453.                                                                     spawn(function()
  454.                                                                         local BV = Instance.new("BodyVelocity", Search[i].Parent.Torso)
  455.                                                                         BV.Name = "VectorFling"
  456.                                                                         BV.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  457.                                                                         BV.velocity = FlareV.velocity
  458.                                                                         game.Debris:AddItem(BV, 0.5)
  459.                                                                     end)
  460.                                                                 end
  461.                                                                 Search[i].Parent.Humanoid:TakeDamage(Damage)
  462.                                                                 AttackFunctions.DmgInd(Search[i].Position, math.floor(Damage), Color3.new(1, 0, 0))
  463.                                                                 AttackFunctions.HitTag(Player, Search[i].Parent, 0.25)
  464.                                                             end
  465.                                                         else
  466.                                                             NoPvPHitEffects(Player, ePlayer)
  467.                                                         end
  468.                                                     elseif Search[i].Parent:FindFirstChild("Attributes") and AttackFunctions.CanDamageNPC(Player, Search[i].Parent) == true then
  469.                                                         if Search[i].Parent:FindFirstChild("ForceField") == nil then
  470.                                                             spawn(function()
  471.                                                                 local BV = Instance.new("BodyVelocity", Search[i].Parent.Torso)
  472.                                                                 BV.Name = "VectorFling"
  473.                                                                 BV.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  474.                                                                 BV.velocity = FlareV.velocity
  475.                                                                 game.Debris:AddItem(BV, 0.5)
  476.                                                             end)
  477.                                                         end
  478.                                                         Search[i].Parent.Humanoid:TakeDamage(Damage)
  479.                                                         AttackFunctions.DmgInd(Search[i].Position, math.floor(Damage), Color3.new(1, 0, 0))
  480.                                                         AttackFunctions.HitTag(Player, Search[i].Parent, 0.25)
  481.                                                     end
  482.                                                 end
  483.                                             elseif Search[i].Parent:FindFirstChild("Health") and Search[i].Parent:FindFirstChild("HitTag") == nil and Search[i].Parent:FindFirstChild("Owner") and Player.bin.PvP.Value == true and Search[i].Parent:FindFirstChild("Type") then
  484.                                                 if Search[i].Parent.Owner.Value ~= nil then
  485.                                                     local ePlayer = Search[i].Parent.Owner.Value
  486.                                                     if ePlayer.bin.PvP.Value == true and AttackFunctions.CanDamage(Player, ePlayer) == true then
  487.                                                         Search[i].Parent.Health.Value = Search[i].Parent.Health.Value - Damage / 2
  488.                                                         AttackFunctions.DmgInd(Search[i].Position, math.floor(Damage / 2), Color3.new(1, 0, 0))
  489.                                                         AttackFunctions.HitTag(Player, Search[i].Parent, 0.25)
  490.                                                     end
  491.                                                 else
  492.                                                     Search[i].Parent.Health.Value = Search[i].Parent.Health.Value - Damage / 2
  493.                                                     AttackFunctions.DmgInd(Search[i].Position, math.floor(Damage / 2), Color3.new(1, 0, 0))
  494.                                                     AttackFunctions.HitTag(Player, Search[i].Parent, 0.25)
  495.                                                 end
  496.                                             end
  497.                                         end
  498.                                         if (Search[i]:FindFirstChild("BodyVelocity") or Search[i]:FindFirstChild("FireV")) and Search[i].Anchored == false and Search[i]:FindFirstChild("Reflected") == nil then
  499.                                             local Reflected = Instance.new("BoolValue", Search[i])
  500.                                             Reflected.Name = "Reflected"
  501.                                             game.ReplicatedStorage.Remotes.PlaySound:FireServer(6, game.ReplicatedStorage.SFX.Vector.Reflect, Ball, 1, 1)
  502.                                             local Scan = Search[i]:GetChildren()
  503.                                             for o = 1, #Scan do
  504.                                                 if Scan[o].ClassName == "BodyVelocity" then
  505.                                                     Scan[o].Velocity = -Scan[o].Velocity
  506.                                                 end
  507.                                             end
  508.                                         end
  509.                                     end
  510.                                 end
  511.                                 wait(0.25)
  512.                             end
  513.                         end
  514.                     end)
  515.                     game.Debris:AddItem(mod, 5)
  516.                     game.ReplicatedStorage.Remotes.DebrisAddItem:FireServer(mod, 5)
  517.                     cv:Destroy()
  518.                 end
  519.             end
  520.             InertiaWaveTrack:AdjustSpeed(0)
  521.             wait(0.5)
  522.             Move:Destroy()
  523.             AttackP:Destroy()
  524.             AttackG:Destroy()
  525.             if Effect ~= nil then
  526.                 Effect.Enabled = false
  527.                 game.Debris:AddItem(Effect, Effect.Lifetime.Max)
  528.             end
  529.             if Effect2 ~= nil then
  530.                 Effect2.Enabled = false
  531.                 game.Debris:AddItem(Effect2, Effect2.Lifetime.Max)
  532.             end
  533.             Humanoid.JumpPower = jp
  534.             Humanoid.WalkSpeed = speed
  535.             Player.bin.Move.Value = false
  536.             InertiaWaveTrack:Stop()
  537.             wait(2)
  538.             Enabled = true
  539.         end
  540.     end
  541. end
  542. function KeyUp(Key)
  543.     if Selected == false then
  544.         return
  545.     end
  546.     Key = Key:lower()
  547.     if Key == "z" then
  548.         ZKeyDown = false
  549.     elseif Key == "q" then
  550.         QKeyDown = false
  551.     end
  552. end
  553. function Select()
  554.     Selected = true
  555. end
  556. function Deselect()
  557.     Selected = false
  558. end
  559.  
  560. Mouse.KeyDown:connect(KeyDown)
  561. Mouse.KeyUp:connect(KeyUp)
  562. Tool.Equipped:connect(Select)
  563. Tool.Unequipped:connect(Deselect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement