SHOW:
|
|
- or go back to the newest paste.
| 1 | - | Plr = game.Players.LocalPlayer |
| 1 | + | --[[Fixed by Scenius]]-- |
| 2 | - | Char = Plr.Character |
| 2 | + | wait(0.016666666666666666) |
| 3 | - | Mouse = Plr:GetMouse() |
| 3 | + | Player = game:GetService("Players").LocalPlayer
|
| 4 | - | local YRot = 5 |
| 4 | + | Character = Player.Character |
| 5 | - | local DebounceShot = false |
| 5 | + | PlayerGui = Player.PlayerGui |
| 6 | - | local ArmAng1,ArmAng2 = CFrame.Angles(0,math.rad(-YRot),0),CFrame.Angles(0,math.rad(YRot),0) |
| 6 | + | Backpack = Player.Backpack |
| 7 | - | local CurrentAmmo,CurrentAmmo2 = 24,24 |
| 7 | + | Torso = Character.Torso |
| 8 | - | local UpForce = 0 |
| 8 | + | Head = Character.Head |
| 9 | - | local GlobalIgnore = {};
|
| 9 | + | Humanoid = Character.Humanoid |
| 10 | - | local ra,la,ts,hd,ll,rl,root,humanoid = Char:FindFirstChild'Right Arm',Char:FindFirstChild'Left Arm',Char:FindFirstChild'Torso',Char:FindFirstChild'Head',Char:FindFirstChild'Left Leg',Char:FindFirstChild'Right Leg',Char:FindFirstChild'HumanoidRootPart',Char:FindFirstChild'Humanoid' |
| 10 | + | LeftArm = Character["Left Arm"] |
| 11 | - | local rarm,larm,hed,torso,hroot,lleg,hum,rleg,mouse = ra,la,hd,ts,root,ll,humanoid,rl,Mouse |
| 11 | + | LeftLeg = Character["Left Leg"] |
| 12 | - | local UpdateGui = nil |
| 12 | + | RightArm = Character["Right Arm"] |
| 13 | - | local lRS = game["Run Service"].RenderStepped |
| 13 | + | RightLeg = Character["Right Leg"] |
| 14 | - | local sRS = game["Run Service"].Stepped |
| 14 | + | LS = Torso["Left Shoulder"] |
| 15 | - | local Shootin_Arm = 'Right' |
| 15 | + | LH = Torso["Left Hip"] |
| 16 | - | local AClip,BClip = CurrentAmmo,CurrentAmmo2 |
| 16 | + | RS = Torso["Right Shoulder"] |
| 17 | - | Weld = function(P0,P1,CF,CF2) |
| 17 | + | RH = Torso["Right Hip"] |
| 18 | - | local W = Instance.new('Weld',P0)
|
| 18 | + | Face = Head.face |
| 19 | - | W.Part0 = P0 |
| 19 | + | Neck = Torso.Neck |
| 20 | - | W.Part1 = P1 |
| 20 | + | it = Instance.new |
| 21 | - | W.C1 = CF |
| 21 | + | attacktype = 1 |
| 22 | - | if CF2 then |
| 22 | + | vt = Vector3.new |
| 23 | - | W.C0 = CF2 |
| 23 | + | cf = CFrame.new |
| 24 | - | end |
| 24 | + | euler = CFrame.fromEulerAnglesXYZ |
| 25 | - | return W |
| 25 | + | angles = CFrame.Angles |
| 26 | - | end; |
| 26 | + | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
| 27 | - | |
| 27 | + | RootCF = angles(math.rad(-90), 0, math.rad(180)) |
| 28 | - | NewSound = function(Parent,Id) |
| 28 | + | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
| 29 | - | local Sound = Instance.new('Sound',Parent)
|
| 29 | + | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
| 30 | - | Sound.SoundId = 'rbxassetid://'..Id |
| 30 | + | RootPart = Character.HumanoidRootPart |
| 31 | - | return Sound |
| 31 | + | RootJoint = RootPart.RootJoint |
| 32 | attack = false | |
| 33 | - | |
| 33 | + | equipped = false |
| 34 | - | New = function(Object, Parent, Name, Data) |
| 34 | + | Mouse = Player:GetMouse() |
| 35 | - | local Object = Instance.new(Object) |
| 35 | + | local idle = 0 |
| 36 | - | spawn(function() |
| 36 | + | local Anim = "Idle" |
| 37 | - | wait() |
| 37 | + | local ShotTarget = RootPart |
| 38 | - | if Object:IsA'Part' then |
| 38 | + | player = nil |
| 39 | - | Object.CanCollide = false |
| 39 | + | ArtificialHB = Instance.new("BindableEvent", script)
|
| 40 | - | Object.Anchored = false |
| 40 | + | ArtificialHB.Name = "ArtificialHB" |
| 41 | - | Object.TopSurface,Object.BottomSurface = 10,10 |
| 41 | + | script:WaitForChild("ArtificialHB")
|
| 42 | - | Object.RightSurface,Object.LeftSurface = 10,10 |
| 42 | + | frame = 0.016666666666666666 |
| 43 | - | Object.FrontSurface,Object.BackSurface = 10,10 |
| 43 | + | tf = 0 |
| 44 | - | end |
| 44 | + | allowframeloss = false |
| 45 | - | end) |
| 45 | + | tossremainder = false |
| 46 | - | for Index, Value in pairs(Data or {}) do
|
| 46 | + | lastframe = tick() |
| 47 | - | Object[Index] = Value |
| 47 | + | script.ArtificialHB:Fire() |
| 48 | - | end |
| 48 | + | game:GetService("RunService").Heartbeat:connect(function(s, p)
|
| 49 | - | Object.Parent = Parent |
| 49 | + | tf = tf + s |
| 50 | - | Object.Name = Name |
| 50 | + | if tf >= frame then |
| 51 | - | return Object |
| 51 | + | if allowframeloss then |
| 52 | script.ArtificialHB:Fire() | |
| 53 | - | |
| 53 | + | lastframe = tick() |
| 54 | - | rad = function(Int) |
| 54 | + | else |
| 55 | - | return math.rad(tonumber(Int or 0)) |
| 55 | + | for i = 1, math.floor(tf / frame) do |
| 56 | - | end; |
| 56 | + | script.ArtificialHB:Fire() |
| 57 | - | sin = function(Int) |
| 57 | + | end |
| 58 | - | return math.sin(tonumber(Int or 0)) |
| 58 | + | lastframe = tick() |
| 59 | - | end; |
| 59 | + | |
| 60 | - | cos = function(Int) |
| 60 | + | if tossremainder then |
| 61 | - | return math.cos(tonumber(Int or 0)) |
| 61 | + | tf = 0 |
| 62 | - | end; |
| 62 | + | else |
| 63 | - | Angles = function(X,Y,Z) |
| 63 | + | tf = tf - frame * math.floor(tf / frame) |
| 64 | - | return CFrame.Angles(X or 0,Y or 0,Z or 0); |
| 64 | + | |
| 65 | - | end; |
| 65 | + | end |
| 66 | - | Euler = function(X,Y,Z) |
| 66 | + | |
| 67 | - | return CFrame.fromEulerAnglesXYZ(X or 0,Y or 0,Z or 0); |
| 67 | + | local animationspeed = 2 |
| 68 | - | end; |
| 68 | + | function hbwait(number) |
| 69 | - | CF = function(X,Y,Z) |
| 69 | + | if number == 0 or number == nil then |
| 70 | - | return CFrame.new(X or 0,Y or 0,Z or 0); |
| 70 | + | ArtificialHB.Event:wait() |
| 71 | - | end; |
| 71 | + | else |
| 72 | - | |
| 72 | + | for i = 0, number do |
| 73 | - | Pistol = New("Model",Char,"Pistol",{})
|
| 73 | + | ArtificialHB.Event:wait() |
| 74 | - | Handle = New("Part",Pistol,"Handle",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000131706009, -0.00595998997, -0.0338135734),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.5793629, 1.18539906, 46.3977585, -1.0000062, -0.000306295813, 2.70537785e-005, -4.11341171e-005, 0.0119839404, -0.99993974, 0.000304313551, -0.99994427, -0.0119866366),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 74 | + | |
| 75 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000102014397, -0.00329493778, -0.0302501526),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5793591, 1.02604604, 46.5169373, -1.00001025, -3.21070947e-005, 0.000351106835, -8.28879274e-005, -0.962805808, -0.270270586, 0.000343979453, -0.270277083, 0.962812603),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 75 | + | end |
| 76 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.105263159, 0.263157904, 0.0526315793),})
|
| 76 | + | |
| 77 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.00000274, -7.66412195e-005, 0.000344961474, -2.58259442e-005, -0.962792039, -0.270270348, 0.000351840572, -0.270268351, 0.962794304),C1 = CFrame.new(3.81469727e-005, -0.121078491, 0.157911539, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 77 | + | local Stats = Instance.new("Folder", Character)
|
| 78 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(4.46137565e-005, -0.00730502047, -0.0345620923),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.6587944, 1.22831309, 46.3298874, -1.43941779e-005, -1.00001025, -0.000347569643, -0.999950171, -8.6847831e-006, 0.0118665909, -0.0118710753, 0.000344910863, -0.999958336),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 78 | + | Stats.Name = "Stats" |
| 79 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.042105265, 0.0526315793, 0.042105265),})
|
| 79 | + | local Defense = Instance.new("NumberValue", Stats)
|
| 80 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -8.13660517e-006, -0.999936283, -0.0118692722, -1.00000274, -2.43909744e-006, 0.000345892768, -0.00034665264, 0.011868001, -0.999938905),C1 = CFrame.new(0.0794086456, 0.0684051514, -0.0421000719, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 80 | + | Defense.Name = "Defense" |
| 81 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(4.44929974e-005, -0.00765172811, -0.0349847004),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.4999523, 1.22833216, 46.3298264, -1.43941779e-005, -1.00001025, -0.000347569643, -0.999950171, -8.6847831e-006, 0.0118665909, -0.0118710753, 0.000344910863, -0.999958336),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 81 | + | Defense.Value = 0.6 |
| 82 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.042105265, 0.0526315793, 0.042105265),})
|
| 82 | + | local Movement = Instance.new("NumberValue", Stats)
|
| 83 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -8.13660517e-006, -0.999936283, -0.0118692722, -1.00000274, -2.43909744e-006, 0.000345892768, -0.00034665264, 0.011868001, -0.999938905),C1 = CFrame.new(-0.0794315338, 0.0684165955, -0.0421124697, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 83 | + | Movement.Name = "Movement" |
| 84 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.000133551774, -0.00169851072, -0.0258756131),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5793438, 0.830419421, 46.5883293, 1.00001025, -0.000347483263, -6.00108615e-005, 8.30962817e-005, 0.012100039, 0.999947488, -0.0003439555, -0.999955654, 0.012104691),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 84 | + | Movement.Value = 1.1 |
| 85 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.210526317, 0.473684222, 0.210526317),})
|
| 85 | + | local Damage = Instance.new("NumberValue", Stats)
|
| 86 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, -0.000346567744, 0.0121014463, -0.999936223, -6.62680832e-005, 0.9999336, 0.0121028852),C1 = CFrame.new(4.95910645e-005, -0.19480896, 0.352666259, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 86 | + | Damage.Name = "Damage" |
| 87 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.00100132555, -0.00469637057, -0.0412132218),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5793304, 1.51629984, 46.4542694, 1.00001025, -0.000347483263, -6.00108615e-005, 8.30962817e-005, 0.012100039, 0.999947488, -0.0003439555, -0.999955654, 0.012104691),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 87 | + | Damage.Value = 0.5 |
| 88 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.105263159, 0.263157904, 0.0526315793),})
|
| 88 | + | local Mana = Instance.new("NumberValue", Stats)
|
| 89 | - | Fire = New("Fire",Part,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 89 | + | Mana.Name = "Mana" |
| 90 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, -0.000346567744, 0.0121014463, -0.999936223, -6.62680832e-005, 0.9999336, 0.0121028852),C1 = CFrame.new(-2.47955322e-005, -0.0525398254, -0.33155036, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 90 | + | Mana.Value = 0 |
| 91 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000469254417, -0.000466316473, -0.0305693839),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5792961, 1.04031432, 46.6434364, 1.00000739, 0.000283122528, 1.47415631e-006, 1.73401058e-005, -0.0119159417, -0.999942839, -0.000281111017, 0.999948323, -0.0119191548),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 91 | + | local Rooted = Instance.new("BoolValue", Stats)
|
| 92 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.210526317, 0.578947365, 0.210526317),MeshType = Enum.MeshType.Wedge,})
|
| 92 | + | Rooted.Name = "Rooted" |
| 93 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.99999994, 1.10942201e-005, -0.000282094174, 0.00028220634, -0.0119173527, 0.999928951, 7.73160718e-006, -0.999928951, -0.0119173527),C1 = CFrame.new(1.33514404e-005, -0.247394562, 0.142128587, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 93 | + | Rooted.Value = false |
| 94 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000581160013, 0.00534787821, -0.0246125218),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5792847, 0.773928165, 46.9034424, -1.00001025, 0.000347483263, -6.00108615e-005, -8.30962817e-005, -0.012100039, 0.999947488, 0.0003439555, 0.999955654, 0.012104691),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 94 | + | local BlockValue = Instance.new("BoolValue", Stats)
|
| 95 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.210526317, 0.0526315793, 0.315789461),MeshType = Enum.MeshType.Wedge,})
|
| 95 | + | BlockValue.Name = "BlockValue" |
| 96 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.00000274, -7.68495665e-005, 0.000344937551, 0.000346567744, -0.0121014463, 0.999936223, -6.62680832e-005, 0.9999336, 0.0121028852),C1 = CFrame.new(8.96453857e-005, -0.510570526, 0.405376673, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 96 | + | BlockValue.Value = false |
| 97 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.00155338983, -0.00712651294, -0.0498622991),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.6582298, 1.91245556, 46.337925, 1.43941779e-005, 0.000266414398, 1.00001037, 0.999950171, -0.011866536, 7.65304867e-006, 0.0118710753, 0.999958336, -0.000263792783),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 97 | + | local StaggerHitAnim = Instance.new("BoolValue", Stats)
|
| 98 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.368421048, 0.0526315793, 0.0526315793),MeshType = Enum.MeshType.Wedge,})
|
| 98 | + | StaggerHitAnim.Name = "StaggerHitAnim" |
| 99 | - | Fire = New("Fire",Part,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 99 | + | StaggerHitAnim.Value = false |
| 100 | - | Spread = New("Script",Fire,"Spread",{})
|
| 100 | + | local StaggerAnim = Instance.new("BoolValue", Stats)
|
| 101 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 8.13660517e-006, 0.999936283, 0.0118692722, 0.000265497976, -0.0118679451, 0.999938905, 1.00000286, 1.40725024e-006, -0.00026477623),C1 = CFrame.new(0.0788249969, 0.0685653687, -0.726281881, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 101 | + | StaggerAnim.Name = "StaggerAnim" |
| 102 | - | Barrel = New("Part",Pistol,"Barrel",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.10000000149012,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.00229140976, -0.0100641716, -0.0610444546),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5763988, 2.40278387, 46.2145119, -0.000235087573, -2.49402619e-005, -1.0000037, 0.00293392874, 1.00000262, -3.18761122e-005, 1.00000536, -0.00293237157, -0.000236003427),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 102 | + | StaggerAnim.Value = false |
| 103 | - | Mesh = New("CylinderMesh",Barrel,"Mesh",{Scale = Vector3.new(0.214285716, 1.14285719, 0.214285716),})
|
| 103 | + | local StunAnim = Instance.new("BoolValue", Stats)
|
| 104 | - | Fire = New("Fire",Barrel,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 104 | + | StunAnim.Name = "StunAnim" |
| 105 | - | mot = New("Motor",Barrel,"mot",{Part0 = Barrel,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.000235431333, 0.00293339998, 0.999998868, -2.70200144e-005, 0.999998033, -0.0029328675, -1.00000131, -2.97950337e-005, -0.000235663669),C1 = CFrame.new(-0.00305747986, 0.197822571, -1.21508718, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 105 | + | StunAnim.Value = false |
| 106 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-3.07981973e-005, 0.000460991636, -0.0242924858),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.4999084, 0.750182033, 46.6926231, -1.85363006e-005, -1.0000087, -0.000346502289, -0.99994576, -1.50499545e-007, 0.0118683474, -0.0118720857, 0.000344387314, -0.999952197),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 106 | + | local StunValue = Instance.new("NumberValue", Stats)
|
| 107 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.126315787, 0.0526315793, 0.126315787),})
|
| 107 | + | StunValue.Name = "StunValue" |
| 108 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.22787278e-005, -0.999931872, -0.0118702827, -1.00000119, 6.09505514e-006, 0.000345369219, -0.000345585286, 0.0118697584, -0.999932766),C1 = CFrame.new(-0.0793495178, -0.300079346, 0.431650162, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 108 | + | StunValue.Value = 0 |
| 109 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000872036908, -0.00239087758, -0.0370649621),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5793247, 1.33079326, 46.5573692, 1.0000087, -6.84582046e-005, 0.000346430374, 8.71387456e-005, 0.99994576, -0.0118685188, -0.000343282532, 0.011872286, 0.999952197),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 109 | + | local CanCrit = Instance.new("BoolValue", Stats)
|
| 110 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.105263159, 0.368421048, 0.0526315793),})
|
| 110 | + | CanCrit.Name = "CanCrit" |
| 111 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000119, 8.08919867e-005, -0.000344264612, -7.47151353e-005, 0.999931872, 0.0118704839, 0.00034551337, -0.0118699297, 0.999932766),C1 = CFrame.new(5.7220459e-006, -0.157852173, -0.14729476, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 111 | + | CanCrit.Value = true |
| 112 | - | A1 = New("Part",Pistol,"A1",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(1.63562654e-005, -0.00997792743, -0.0375390835),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.6582851, 1.36138058, 46.2104073, 1.0000087, -0.00034644609, -6.83783946e-005, 8.71387456e-005, 0.0120988851, 0.999943018, -0.000343282532, -0.999949455, 0.0121026533),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
|
| 112 | + | local CritChance = Instance.new("NumberValue", Stats)
|
| 113 | - | Mesh = New("BlockMesh",A1,"Mesh",{Scale = Vector3.new(0.0526315793, 0.210526317, 0.210526317),})
|
| 113 | + | CritChance.Name = "CritChance" |
| 114 | - | Fire = New("Fire",A1,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 114 | + | CritChance.Value = 20 |
| 115 | - | Spread = New("Script",Fire,"Spread",{})
|
| 115 | + | local CanPenetrateArmor = Instance.new("BoolValue", Stats)
|
| 116 | - | mot = New("Motor",A1,"mot",{Part0 = A1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000119, 8.08919867e-005, -0.000344264612, -0.00034553057, 0.0121002914, -0.999930024, -7.46355363e-005, 0.99992913, 0.0121008456),C1 = CFrame.new(0.0788593292, 0.189468384, -0.173724651, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 116 | + | CanPenetrateArmor.Name = "CanPenetrateArmor" |
| 117 | - | A10 = New("Part",Pistol,"A10",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.00204913015, -0.0146882143, -0.0220529698),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.5268917, 0.653240383, 46.0125427, 1.0000087, -0.00034644609, -6.83783946e-005, 8.71387456e-005, 0.0120988851, 0.999943018, -0.000343282532, -0.999949455, 0.0121026533),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
|
| 117 | + | CanPenetrateArmor.Value = false |
| 118 | - | Mesh = New("BlockMesh",A10,"Mesh",{Scale = Vector3.new(0.0526315793, 0.105263159, 0.0263157897),})
|
| 118 | + | local AntiTeamKill = Instance.new("BoolValue", Stats)
|
| 119 | - | mot = New("Motor",A10,"mot",{Part0 = A10,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000119, 8.08919867e-005, -0.000344264612, -0.00034553057, 0.0121002914, -0.999930024, -7.46355363e-005, 0.99992913, 0.0121008456),C1 = CFrame.new(-0.0525722504, 0.378787994, 0.536732554, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 119 | + | AntiTeamKill.Name = "AntiTeamKill" |
| 120 | - | A2 = New("Part",Pistol,"A2",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.00110872404, -0.011444605, -0.027760148),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.5794373, 0.914704919, 46.1524849, 1.0000087, -0.00034644609, -6.83783946e-005, 8.71387456e-005, 0.0120988851, 0.999943018, -0.000343282532, -0.999949455, 0.0121026533),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
|
| 120 | + | AntiTeamKill.Value = false |
| 121 | - | Mesh = New("BlockMesh",A2,"Mesh",{Scale = Vector3.new(0.210526317, 0.473684222, 0.684210539),})
|
| 121 | + | local LastPoint |
| 122 | - | mot = New("Motor",A2,"mot",{Part0 = A2,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000119, 8.08919867e-005, -0.000344264612, -0.00034553057, 0.0121002914, -0.999930024, -7.46355363e-005, 0.99992913, 0.0121008456),C1 = CFrame.new(7.62939453e-006, 0.242008209, 0.27361083, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 122 | + | local changeanim = false |
| 123 | - | A3 = New("Part",Pistol,"A3",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000806285825, -0.0112167411, -0.0471783131),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.5793667, 1.78305697, 46.1626816, 1.0000087, -0.00034644609, -6.83783946e-005, 8.71387456e-005, 0.0120988851, 0.999943018, -0.000343282532, -0.999949455, 0.0121026533),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
|
| 123 | + | local move2charging = false |
| 124 | - | Mesh = New("BlockMesh",A3,"Mesh",{Scale = Vector3.new(0.210526317, 0.473684222, 0.631578922),})
|
| 124 | + | local staggerhitanim = false |
| 125 | - | Fire = New("Fire",A3,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 125 | + | local staggeranim = false |
| 126 | - | Spread = New("Script",Fire,"Spread",{})
|
| 126 | + | local stunanim = false |
| 127 | - | mot = New("Motor",A3,"mot",{Part0 = A3,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000119, 8.08919867e-005, -0.000344264612, -0.00034553057, 0.0121002914, -0.999930024, -7.46355363e-005, 0.99992913, 0.0121008456),C1 = CFrame.new(-8.58306885e-005, 0.242218018, -0.594790936, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 127 | + | local dancing = false |
| 128 | - | A4 = New("Part",Pistol,"A4",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.000122233032, -0.0114991684, -0.0379733518),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.5005093, 1.36204767, 46.1577187, 1.0000087, -0.00034644609, -6.83783946e-005, 8.71387456e-005, 0.0120988851, 0.999943018, -0.000343282532, -0.999949455, 0.0121026533),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
|
| 128 | + | local Mode = "Normal" |
| 129 | - | Mesh = New("BlockMesh",A4,"Mesh",{Scale = Vector3.new(0.0526315793, 0.473684222, 0.210526317),})
|
| 129 | + | local CritChanceNumber = 0 |
| 130 | - | Fire = New("Fire",A4,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 130 | + | local CustomColor = Torso.BrickColor |
| 131 | - | Spread = New("Script",Fire,"Spread",{})
|
| 131 | + | local Colorpart1 = CustomColor.r |
| 132 | - | mot = New("Motor",A4,"mot",{Part0 = A4,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000119, 8.08919867e-005, -0.000344264612, -0.00034553057, 0.0121002914, -0.999930024, -7.46355363e-005, 0.99992913, 0.0121008456),C1 = CFrame.new(-0.0789318085, 0.242111206, -0.173754454, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 132 | + | local Colorpart2 = CustomColor.g |
| 133 | - | A5 = New("Part",Pistol,"A5",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.00108195608, -0.0137364287, -0.0530940257),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.5793743, 2.04760242, 46.0500031, 1.0000087, -0.00034644609, -6.83783946e-005, 8.71387456e-005, 0.0120988851, 0.999943018, -0.000343282532, -0.999949455, 0.0121026533),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
|
| 133 | + | local Colorpart3 = CustomColor.b |
| 134 | - | Mesh = New("BlockMesh",A5,"Mesh",{Scale = Vector3.new(0.0157894734, 0.105263159, 0.105263159),})
|
| 134 | + | local InverseColor = BrickColor.new(Color3.new(1 - Colorpart1, 1 - Colorpart2, 1 - Colorpart3)) |
| 135 | - | Fire = New("Fire",A5,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 135 | + | local idleangle = 0 |
| 136 | - | Spread = New("Script",Fire,"Spread",{})
|
| 136 | + | local idlen = 0 |
| 137 | - | mot = New("Motor",A5,"mot",{Part0 = A5,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000119, 8.08919867e-005, -0.000344264612, -0.00034553057, 0.0121002914, -0.999930024, -7.46355363e-005, 0.99992913, 0.0121008456),C1 = CFrame.new(-0.000122070313, 0.358058929, -0.857964039, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 137 | + | local donum = 0 |
| 138 | - | A6 = New("Part",Pistol,"A6",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.0014149046, -0.00847565569, -0.050087247),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5793362, 1.91313791, 46.2852631, 1.0000087, -0.00034644609, -6.83783946e-005, 8.71387456e-005, 0.0120988851, 0.999943018, -0.000343282532, -0.999949455, 0.0121026533),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
|
| 138 | + | local sine = 0 |
| 139 | - | Mesh = New("BlockMesh",A6,"Mesh",{Scale = Vector3.new(0.105263159, 0.0526315793, 0.368421048),})
|
| 139 | + | local change = 2 / animationspeed |
| 140 | - | Fire = New("Fire",A6,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 140 | + | local walkinganim = false |
| 141 | - | Spread = New("Script",Fire,"Spread",{})
|
| 141 | + | local handidle = false |
| 142 | - | mot = New("Motor",A6,"mot",{Part0 = A6,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000119, 8.08919867e-005, -0.000344264612, -0.00034553057, 0.0121002914, -0.999930024, -7.46355363e-005, 0.99992913, 0.0121008456),C1 = CFrame.new(-8.39233398e-005, 0.121208191, -0.726330042, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 142 | + | local walk = 0 |
| 143 | - | A7 = New("Part",Pistol,"A7",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.000316067017, -0.0130318189, -0.037853349),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.5531254, 1.36293519, 46.0840645, 1.0000087, -0.00034644609, -6.83783946e-005, 8.71387456e-005, 0.0120988851, 0.999943018, -0.000343282532, -0.999949455, 0.0121026533),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
|
| 143 | + | local someangle = 0 |
| 144 | - | Mesh = New("BlockMesh",A7,"Mesh",{Scale = Vector3.new(0.0526315793, 0.105263159, 0.210526317),})
|
| 144 | + | local change2 = 1 |
| 145 | - | Fire = New("Fire",A7,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 145 | + | local stundelay = 0 |
| 146 | - | Spread = New("Script",Fire,"Spread",{})
|
| 146 | + | local manadelay = 0 |
| 147 | - | mot = New("Motor",A7,"mot",{Part0 = A7,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000119, 8.08919867e-005, -0.000344264612, -0.00034553057, 0.0121002914, -0.999930024, -7.46355363e-005, 0.99992913, 0.0121008456),C1 = CFrame.new(-0.0263385773, 0.315788269, -0.173761129, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 147 | + | local robloxidleanimation = Instance.new("Animation", Torso)
|
| 148 | - | A8 = New("Part",Pistol,"A8",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.0019659712, -0.013867043, -0.0219044145),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.5794849, 0.652848184, 46.0441513, 1.0000087, -0.00034644609, -6.83783946e-005, 8.71387456e-005, 0.0120988851, 0.999943018, -0.000343282532, -0.999949455, 0.0121026533),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
|
| 148 | + | robloxidleanimation.Name = "robloxidleanimation" |
| 149 | - | Mesh = New("BlockMesh",A8,"Mesh",{Scale = Vector3.new(0.157894731, 0.105263159, 0.0263157897),})
|
| 149 | + | robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571" |
| 150 | - | mot = New("Motor",A8,"mot",{Part0 = A8,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000119, 8.08919867e-005, -0.000344264612, -0.00034553057, 0.0121002914, -0.999930024, -7.46355363e-005, 0.99992913, 0.0121008456),C1 = CFrame.new(3.05175781e-005, 0.347194672, 0.536743999, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 150 | + | local Animator = Humanoid:findFirstChild("Animator")
|
| 151 | - | A9 = New("Part",Pistol,"A9",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.00204901048, -0.0144584086, -0.0217732638),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.632082, 0.65323478, 46.0125923, 1.0000087, -0.00034644609, -6.83783946e-005, 8.71387456e-005, 0.0120988851, 0.999943018, -0.000343282532, -0.999949455, 0.0121026533),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
|
| 151 | + | local Animate = Character:findFirstChild("Animate")
|
| 152 | - | Mesh = New("BlockMesh",A9,"Mesh",{Scale = Vector3.new(0.0526315793, 0.105263159, 0.0263157897),})
|
| 152 | + | local HitPlayerSounds = {
|
| 153 | - | mot = New("Motor",A9,"mot",{Part0 = A9,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000119, 8.08919867e-005, -0.000344264612, -0.00034553057, 0.0121002914, -0.999930024, -7.46355363e-005, 0.99992913, 0.0121008456),C1 = CFrame.new(0.0526180267, 0.378768921, 0.536733627, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 153 | + | 199149137, |
| 154 | - | Chamber = New("Part",Pistol,"Chamber",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.000802163733, -0.0117565617, -0.0312946253),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5794373, 1.07276309, 46.1385345, -1.84767068e-005, -0.000267046067, 1.0000087, -0.99994576, 0.0118683558, -7.32899935e-007, -0.0118720932, -0.999952197, -0.000264934788),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
|
| 154 | + | 199149186, |
| 155 | - | Mesh = New("BlockMesh",Chamber,"Mesh",{Scale = Vector3.new(0.263157904, 0.0526315793, 0.157894731),})
|
| 155 | + | 199149221, |
| 156 | - | mot = New("Motor",Chamber,"mot",{Part0 = Chamber,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.22191304e-005, -0.999931872, -0.0118702902, -0.000266129646, 0.0118697658, -0.999932766, 1.00000119, -6.97857467e-006, -0.000265918265),C1 = CFrame.new(-1.90734863e-006, 0.257850647, 0.115733027, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 156 | + | 199149235, |
| 157 | - | Mesh = New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(0.0526315793, 0.315789461, 0.0526315793),})
|
| 157 | + | 199149269, |
| 158 | - | Mag = New("Part",Pistol,"Mag",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000134852016, 0.000141454395, -0.0263869073),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.5793266, 0.853281856, 46.6706123, 1.00001025, -0.000348133501, 5.63386493e-005, 8.30962817e-005, 0.336984247, 0.941532195, -0.0003439555, -0.941538453, 0.33699137),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 158 | + | 199149297 |
| 159 | - | Mesh = New("BlockMesh",Mag,"Mesh",{Scale = Vector3.new(0.157894731, 1.42105269, 0.315789461),})
|
| 159 | + | } |
| 160 | - | mot = New("Motor",Mag,"mot",{Part0 = Mag,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, -0.00034930493, 0.336981088, -0.941520691, 5.01242466e-005, 0.941518664, 0.336983383),C1 = CFrame.new(5.7220459e-005, -0.276809692, 0.328819752, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 160 | + | local HitArmorSounds = {
|
| 161 | - | Mag2 = New("Part",Pistol,"Mag2",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000710197375, 0.00663900422, -0.0243613273),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.5792694, 0.762693167, 46.9611816, 1.00001025, -0.000352658855, 1.24114558e-006, 8.30962817e-005, 0.185557246, 0.982654452, -0.0003439555, -0.982661784, 0.185563445),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 161 | + | 199149321, |
| 162 | - | Mesh = New("BlockMesh",Mag2,"Mesh",{Scale = Vector3.new(0.210526317, 0.210526317, 0.368421048),})
|
| 162 | + | 199149338, |
| 163 | - | mot = New("Motor",Mag2,"mot",{Part0 = Mag2,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, -0.000352843781, 0.185556218, -0.982643008, -5.08000448e-006, 0.982640564, 0.185558274),C1 = CFrame.new(9.15527344e-005, -0.568439484, 0.415918827, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 163 | + | 199149367, |
| 164 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.000723114063, -0.00542289857, -0.0243647732),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.499958, 0.753420591, 46.4294968, -1.43941743e-005, -1.00001025, -0.000347540772, -0.999950171, -8.6847831e-006, 0.0118664699, -0.0118710678, 0.000344910863, -0.999958456),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 164 | + | 199149409, |
| 165 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.042105265, 0.0526315793, 0.042105265),})
|
| 165 | + | 199149452 |
| 166 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -8.13660154e-006, -0.999936283, -0.0118692648, -1.00000274, -2.43909744e-006, 0.000345892768, -0.000346623769, 0.0118678799, -0.999939024),C1 = CFrame.new(-0.0793819427, -0.0369377136, 0.431565046, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 166 | + | } |
| 167 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(4.45857731e-005, -0.00747835962, -0.0347737111),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.57938, 1.22833753, 46.3298569, 1.00001025, -0.000347483263, -6.00108615e-005, 8.30962817e-005, 0.012100039, 0.999947488, -0.0003439555, -0.999955654, 0.012104691),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 167 | + | local HitWeaponSounds = {
|
| 168 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.210526317, 0.0526315793, 1),})
|
| 168 | + | 199148971, |
| 169 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, -0.000346567744, 0.0121014463, -0.999936223, -6.62680832e-005, 0.9999336, 0.0121028852),C1 = CFrame.new(-5.7220459e-006, 0.0684089661, -0.042121172, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 169 | + | 199149025, |
| 170 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-3.0680676e-005, 0.000807354227, -0.0238702651),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.6587486, 0.750180125, 46.6926689, -1.43941743e-005, -1.00001025, -0.000347540772, -0.999950171, -8.6847831e-006, 0.0118664699, -0.0118710678, 0.000344910863, -0.999958456),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 170 | + | 199149072, |
| 171 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.126315787, 0.0526315793, 0.126315787),})
|
| 171 | + | 199149109, |
| 172 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -8.13660154e-006, -0.999936283, -0.0118692648, -1.00000274, -2.43909744e-006, 0.000345892768, -0.000346623769, 0.0118678799, -0.999939024),C1 = CFrame.new(0.0794887543, -0.300075531, 0.431645632, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 172 | + | 199149119 |
| 173 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000373447954, -0.00112821534, -0.030393146),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.5793228, 1.03243625, 46.6138344, 1.00001025, -0.000348133501, 5.63386493e-005, 8.30962817e-005, 0.336984247, 0.941532195, -0.0003439555, -0.941538453, 0.33699137),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 173 | + | } |
| 174 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.210526317, 0.105263159, 0.105263159),})
|
| 174 | + | local HitBlockSounds = {199148933, 199148947}
|
| 175 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, -0.00034930493, 0.336981088, -0.941520691, 5.01242466e-005, 0.941518664, 0.336983383),C1 = CFrame.new(3.05175781e-005, -0.217891693, 0.150360703, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 175 | + | local cooldown1 = 0 |
| 176 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000357143377, -0.00628074026, -0.036524415),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5793591, 1.30662465, 46.3834152, 1.00001025, 0.000347509369, 6.00109124e-005, 8.30962817e-005, -0.0120997438, -0.999947488, -0.0003439555, 0.999955535, -0.0121045122),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 176 | + | local cooldown2 = 0 |
| 177 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.210526317, 0.0526315793, 0.526315808),MeshType = Enum.MeshType.Wedge,})
|
| 177 | + | local cooldown3 = 0 |
| 178 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, 0.000346593792, -0.0121011501, 0.999936104, 6.62681341e-005, -0.9999336, -0.0121027064),C1 = CFrame.new(-1.14440918e-005, 0.0157966614, -0.121043563, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 178 | + | local cooldown4 = 0 |
| 179 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.00141480949, -0.00864786748, -0.0502967983),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5004406, 1.91313148, 46.2852325, 1.00001025, -0.000347509369, -6.00109124e-005, 8.30962817e-005, 0.0120997438, 0.999947488, -0.0003439555, -0.999955535, 0.0121045122),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 179 | + | local scrn = Instance.new("ScreenGui", PlayerGui)
|
| 180 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.0526315793, 0.0526315793, 0.368421048),})
|
| 180 | + | local ud = UDim2.new |
| 181 | - | Fire = New("Fire",Part,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 181 | + | local c3 = Color3.new |
| 182 | - | Spread = New("Script",Fire,"Spread",{})
|
| 182 | + | local skillcolorscheme = c3(1, 1, 1) |
| 183 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, -0.000346593792, 0.0121011501, -0.999936104, -6.62681341e-005, 0.9999336, 0.0121027064),C1 = CFrame.new(-0.0789794922, 0.12121582, -0.726320267, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 183 | + | function subtractmana(k) |
| 184 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.00177695858, -0.00854887161, -0.0539006367),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5793247, 2.08366752, 46.2819901, 1.00001025, 6.00824787e-005, -0.000347492314, 8.30962817e-005, -0.99995029, 0.0118665239, -0.0003439555, -0.0118710902, -0.999958336),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 184 | + | if k <= Mana.Value then |
| 185 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.0473684184, 0.0526315793, 0.0473684184),})
|
| 185 | + | Mana.Value = Mana.Value - k |
| 186 | - | Fire = New("Fire",Part,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 186 | + | end |
| 187 | - | Spread = New("Script",Fire,"Spread",{})
|
| 187 | + | |
| 188 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, 6.63394894e-005, -0.999936402, -0.011869288, -0.000346575311, 0.0118679339, -0.999938905),C1 = CFrame.new(-0.000101089478, 0.126525879, -0.89680624, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 188 | + | local co1 = 20 |
| 189 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.00148046366, -0.0111364266, -0.0540143475),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5793476, 2.08875513, 46.166275, 1.00001025, 6.00824787e-005, -0.000347492314, 8.30962817e-005, -0.99995029, 0.0118665239, -0.0003439555, -0.0118710902, -0.999958336),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 189 | + | local co2 = 40 |
| 190 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.142105252, 0.0526315793, 0.142105252),})
|
| 190 | + | local co3 = 60 |
| 191 | - | Fire = New("Fire",Part,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 191 | + | local co4 = 80 |
| 192 | - | Spread = New("Script",Fire,"Spread",{})
|
| 192 | + | local maxmana = 100 |
| 193 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, 6.63394894e-005, -0.999936402, -0.011869288, -0.000346575311, 0.0118679339, -0.999938905),C1 = CFrame.new(-0.000114440918, 0.242290497, -0.900506735, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 193 | + | local maxstun = 1 |
| 194 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000550840807, -0.011246983, -0.0445879176),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5793858, 1.6672194, 46.1613274, 1.00001025, 6.00824787e-005, -0.000347492314, 8.30962817e-005, -0.99995029, 0.0118665239, -0.0003439555, -0.0118710902, -0.999958336),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 194 | + | local recovermana = 1 |
| 195 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.157894731, 0.894736826, 0.157894731),})
|
| 195 | + | local losestun = 0 |
| 196 | - | Fire = New("Fire",Part,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 196 | + | local stunwait = 100 |
| 197 | - | Spread = New("Script",Fire,"Spread",{})
|
| 197 | + | local manawait = 20 |
| 198 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, 6.63394894e-005, -0.999936402, -0.011869288, -0.000346575311, 0.0118679339, -0.999938905),C1 = CFrame.new(-6.48498535e-005, 0.242183685, -0.478946924, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 198 | + | local skill1mana = 20 |
| 199 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.000267980795, -0.00867571123, -0.03302259),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5794067, 1.15003228, 46.27631, 1.00001025, -0.000347509369, -6.00109124e-005, 8.30962817e-005, 0.0120997438, 0.999947488, -0.0003439555, -0.999955535, 0.0121045122),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 199 | + | local skill2mana = 40 |
| 200 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.210526317, 0.0526315793, 1.15789473),})
|
| 200 | + | local skill3mana = 60 |
| 201 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, -0.000346593792, 0.0121011501, -0.999936104, -6.62681341e-005, 0.9999336, 0.0121027064),C1 = CFrame.new(7.62939453e-006, 0.121013641, 0.0368192196, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 201 | + | local skill4mana = 80 |
| 202 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.00123203825, -0.00763012562, -0.0218286011),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5794144, 0.649449527, 46.3230667, -1.00001025, 0.000347509369, -6.00109124e-005, -8.30962817e-005, -0.0120997438, 0.999947488, 0.0003439555, 0.999955535, 0.0121045122),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 202 | + | local menuupdatespeed = 0.5 |
| 203 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.210526317, 0.0526315793, 0.157894731),MeshType = Enum.MeshType.Wedge,})
|
| 203 | + | local constantupdate = true |
| 204 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.00000274, -7.68495665e-005, 0.000344937551, 0.000346593792, -0.0121011501, 0.999936104, -6.62681341e-005, 0.9999336, 0.0121027064),C1 = CFrame.new(4.57763672e-005, 0.0682601929, 0.536799908, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 204 | + | local showstats = true |
| 205 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.00136610924, -0.008597726, -0.0497345962),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5793362, 1.89736772, 46.2798042, 1.00001025, 6.00824787e-005, -0.000347492314, 8.30962817e-005, -0.99995029, 0.0118665239, -0.0003439555, -0.0118710902, -0.999958336),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 205 | + | local allowstunbar = false |
| 206 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.0526315793, 0.421052635, 0.0526315793),})
|
| 206 | + | function makeframe(par, trans, pos, size, color, name) |
| 207 | - | Fire = New("Fire",Part,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 207 | + | local frame = Instance.new("Frame")
|
| 208 | - | Spread = New("Script",Fire,"Spread",{})
|
| 208 | + | frame.Parent = par |
| 209 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, 6.63394894e-005, -0.999936402, -0.011869288, -0.000346575311, 0.0118679339, -0.999938905),C1 = CFrame.new(-8.39233398e-005, 0.126476288, -0.71049571, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 209 | + | frame.BackgroundTransparency = trans |
| 210 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.000470539497, -0.00115869148, -0.0217496157),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5793514, 0.645909905, 46.6124687, 1.00001025, -0.000347509369, -6.00109124e-005, 8.30962817e-005, 0.0120997438, 0.999947488, -0.0003439555, -0.999955535, 0.0121045122),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 210 | + | frame.BorderSizePixel = 0 |
| 211 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.210526317, 0.421052635, 0.157894731),MeshType = Enum.MeshType.Wedge,})
|
| 211 | + | frame.Position = pos |
| 212 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, -0.000346593792, 0.0121011501, -0.999936104, -6.62681341e-005, 0.9999336, 0.0121027064),C1 = CFrame.new(7.05718994e-005, -0.221157074, 0.536871195, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 212 | + | frame.Size = size |
| 213 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.00155326072, -0.00747104175, -0.050282158),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5004292, 1.91247547, 46.3378601, -1.44239839e-005, 0.00026640881, -1.00001037, -0.99995029, -0.0118664391, -7.65304867e-006, -0.0118711051, 0.999958336, 0.000263792783),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 213 | + | frame.BackgroundColor3 = color |
| 214 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.368421048, 0.0526315793, 0.0526315793),MeshType = Enum.MeshType.Wedge,})
|
| 214 | + | frame.Name = name |
| 215 | - | Fire = New("Fire",Part,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 215 | + | return frame |
| 216 | - | Spread = New("Script",Fire,"Spread",{})
|
| 216 | + | |
| 217 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -8.16641113e-006, -0.999936402, -0.011869303, 0.000265492388, -0.0118678482, 0.999938905, -1.00000286, -1.40725024e-006, 0.00026477623),C1 = CFrame.new(-0.0789737701, 0.0685844421, -0.726294994, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 217 | + | function makelabel(par, text, trans, stroketrans, name) |
| 218 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000596989179, 0.00153125077, -0.0294411648),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.5792999, 0.989861965, 46.7327652, 1.00001025, -0.000348137837, 5.6345787e-005, 8.30964564e-005, 0.336984456, 0.941532314, -0.000343971187, -0.941538274, 0.33699137),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 218 | + | local label = Instance.new("TextLabel")
|
| 219 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.210526317, 0.105263159, 0.105263159),})
|
| 219 | + | label.Parent = par |
| 220 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68497412e-005, -0.000344953209, -0.000349309295, 0.336981297, -0.941520512, 5.0131388e-005, 0.941518784, 0.336983383),C1 = CFrame.new(4.57763672e-005, -0.337322235, 0.191506147, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 220 | + | label.BackgroundTransparency = 1 |
| 221 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.00141498866, -0.00830335915, -0.0498774797),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.6582317, 1.91313457, 46.2852974, 1.0000087, -0.00034644609, -6.83783946e-005, 8.71387456e-005, 0.0120988851, 0.999943018, -0.000343282532, -0.999949455, 0.0121026533),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 221 | + | label.Size = ud(1, 0, 1, 0) |
| 222 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.0526315793, 0.0526315793, 0.368421048),})
|
| 222 | + | label.Position = ud(0, 0, 0, 0) |
| 223 | - | Fire = New("Fire",Part,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 223 | + | label.TextColor3 = c3(255, 255, 255) |
| 224 | - | Spread = New("Script",Fire,"Spread",{})
|
| 224 | + | label.TextStrokeTransparency = stroketrans |
| 225 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000119, 8.08919867e-005, -0.000344264612, -0.00034553057, 0.0121002914, -0.999930024, -7.46355363e-005, 0.99992913, 0.0121008456),C1 = CFrame.new(0.0788116455, 0.121196747, -0.726330042, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 225 | + | label.TextTransparency = trans |
| 226 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(3.64737352e-005, 0.00412243465, -0.0205082893),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.579298, 0.590392649, 46.8486404, -1.00001025, 0.0003474853, -6.00108579e-005, -8.30964564e-005, -0.0121000428, 0.999947608, 0.000343971187, 0.999955416, 0.0121046817),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 226 | + | label.FontSize = Enum.FontSize.Size32 |
| 227 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.210526317, 0.0526315793, 0.0526315793),MeshType = Enum.MeshType.Wedge,})
|
| 227 | + | label.Font = Enum.Font.Legacy |
| 228 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.00000274, -7.68497412e-005, 0.000344953209, 0.000346569752, -0.0121014491, 0.999935985, -6.62680832e-005, 0.99993372, 0.0121028749),C1 = CFrame.new(9.15527344e-005, -0.45797348, 0.589553595, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 228 | + | label.BorderSizePixel = 0 |
| 229 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000820491812, 0.00419039978, -0.0284891743),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-24.5792885, 0.947288573, 46.8516808, 1.00001025, -0.000348078291, 5.6345787e-005, 8.30964564e-005, 0.336984277, 0.941532314, -0.000343971187, -0.941538334, 0.33699137),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 229 | + | label.TextScaled = true |
| 230 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.210526317, 0.105263159, 0.105263159),})
|
| 230 | + | label.Text = text |
| 231 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68497412e-005, -0.000344953209, -0.00034924972, 0.336981118, -0.941520572, 5.0131388e-005, 0.941518784, 0.336983383),C1 = CFrame.new(7.2479248e-005, -0.456737518, 0.232650995, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 231 | + | label.Name = name |
| 232 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000442712975, 0.00417104037, -0.0246272199),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5792904, 0.774586082, 46.8508148, 1.00001025, -0.0003474853, -6.00108579e-005, 8.30964564e-005, 0.0121000428, 0.999947608, -0.000343971187, -0.999955416, 0.0121046817),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 232 | + | return label |
| 233 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.210526317, 0.0526315793, 0.315789461),})
|
| 233 | + | |
| 234 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68497412e-005, -0.000344953209, -0.000346569752, 0.0121014491, -0.999935985, -6.62680832e-005, 0.99993372, 0.0121028749),C1 = CFrame.new(7.82012939e-005, -0.457939148, 0.405349493, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 234 | + | framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 1") |
| 235 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.000427368213, -0.00383632118, -0.0342584029),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5793381, 1.20528841, 46.4927292, -1.00001013, 0.000271175231, -0.000225748983, -8.31278594e-005, 0.489565641, 0.871990204, 0.000344104104, 0.871999621, -0.48956567),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 235 | + | framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 2") |
| 236 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.0526315793, 0.105263159, 0.0526315793),MeshType = Enum.MeshType.Wedge,})
|
| 236 | + | framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 3") |
| 237 | - | Fire = New("Fire",Part,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 237 | + | framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 4") |
| 238 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1.00000262, -7.68811442e-005, 0.000345086155, 0.000267253345, 0.489557475, 0.871981919, -0.000230709804, 0.871978939, -0.489557564),C1 = CFrame.new(3.81469727e-006, -0.0947227478, -0.0210257769, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 238 | + | bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 1") |
| 239 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(0.00155338726, -0.00729865115, -0.0500727147),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.5793285, 1.91248703, 46.3378983, 1.00001025, -0.000347483263, -6.00108615e-005, 8.30962817e-005, 0.012100039, 0.999947488, -0.0003439555, -0.999955654, 0.012104691),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 239 | + | bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 2") |
| 240 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.105263159, 0.0526315793, 0.368421048),})
|
| 240 | + | bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 3") |
| 241 | - | Fire = New("Fire",Part,"Fire",{Size = 30,Color = Color3.new(0, 0, 1),Enabled = false,Heat = 25,SecondaryColor = Color3.new(1, 1, 1),})
|
| 241 | + | bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 4") |
| 242 | - | Spread = New("Script",Fire,"Spread",{})
|
| 242 | + | text1 = makelabel(framesk1, "[C] Boulder", 1, 1, "Text 1") |
| 243 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000274, 7.68495665e-005, -0.000344937551, -0.000346567744, 0.0121014463, -0.999936223, -6.62680832e-005, 0.9999336, 0.0121028852),C1 = CFrame.new(-7.43865967e-005, 0.0685691833, -0.726310015, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 243 | + | text2 = makelabel(framesk2, "[V] Cataclysm", 1, 1, "Text 2") |
| 244 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.000209889404, -0.00849557202, -0.033399865),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.6588097, 1.1763413, 46.2766457, -1.43941779e-005, -1.00001025, -0.000347569643, -0.999950171, -8.6847831e-006, 0.0118665909, -0.0118710753, 0.000344910863, -0.999958336),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 244 | + | text3 = makelabel(framesk3, "[X] Destructive Blow", 1, 1, "Text 3") |
| 245 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.0210526325, 0.0526315793, 0.0210526325),})
|
| 245 | + | text4 = makelabel(framesk4, "[Z] Pray", 1, 1, "Text 4") |
| 246 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -8.13660517e-006, -0.999936283, -0.0118692722, -1.00000274, -2.43909744e-006, 0.000345892768, -0.00034665264, 0.011868001, -0.999938905),C1 = CFrame.new(0.0794086456, 0.121017456, 0.0105054379, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 246 | + | manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar") |
| 247 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.000210028375, -0.00884245057, -0.0338224955),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.4999676, 1.17636132, 46.276577, -1.43941779e-005, -1.00001025, -0.000347569643, -0.999950171, -8.6847831e-006, 0.0118665909, -0.0118710753, 0.000344910863, -0.999958336),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 247 | + | manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover") |
| 248 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.0210526325, 0.0526315793, 0.0210526325),})
|
| 248 | + | manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text") |
| 249 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -8.13660517e-006, -0.999936283, -0.0118692722, -1.00000274, -2.43909744e-006, 0.000345892768, -0.00034665264, 0.011868001, -0.999938905),C1 = CFrame.new(-0.0794315338, 0.12103653, 0.0104920864, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 249 | + | healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Bar") |
| 250 | - | Part = New("Part",Pistol,"Part",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.40000000596046,RotVelocity = Vector3.new(-0.0223618727, 0.00265787449, -0.00217412785),Velocity = Vector3.new(-0.000723043864, -0.00507635716, -0.0239418484),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-24.658802, 0.75338757, 46.4295502, -1.43941779e-005, -1.00001025, -0.000347569643, -0.999950171, -8.6847831e-006, 0.0118665909, -0.0118710753, 0.000344910863, -0.999958336),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
|
| 250 | + | healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Cover") |
| 251 | - | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.042105265, 0.0526315793, 0.042105265),})
|
| 251 | + | healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text") |
| 252 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -8.13660517e-006, -0.999936283, -0.0118692722, -1.00000274, -2.43909744e-006, 0.000345892768, -0.00034665264, 0.011868001, -0.999938905),C1 = CFrame.new(0.0794620514, -0.0369415283, 0.431591511, -1.00000119, -3.69687623e-005, 0.000304960064, -0.000305693859, 0.0119848885, -0.999931395, 3.12264528e-005, -0.999930501, -0.0119854258),})
|
| 252 | + | if allowstunbar == true then |
| 253 | - | |
| 253 | + | stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137254902), "Stun Frame") |
| 254 | - | local Pistol2 = Pistol:Clone() |
| 254 | + | stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137254902), "Stun Bar") |
| 255 | - | Pistol2.Parent = Char |
| 255 | + | stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text") |
| 256 | - | Pistol2.Name = 'Second Pistol' |
| 256 | + | |
| 257 | - | local B2 = Pistol2.Barrel |
| 257 | + | if showstats == true then |
| 258 | - | local H2 = Pistol2.Handle |
| 258 | + | defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3843137254901961, 0.1450980392156863, 0.8196078431372549), "Defense Frame") |
| 259 | - | |
| 259 | + | damageframe = makeframe(scrn, 0.5, ud(0.3225, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.6862745098039216, 0), "Damage Frame") |
| 260 | - | lerp = function(a,b,int) |
| 260 | + | movementframe = makeframe(scrn, 0.5, ud(0.415, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 1, 0), "Movement Frame") |
| 261 | - | return a:lerp(b or a,int or .1) |
| 261 | + | defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text") |
| 262 | damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text") | |
| 263 | - | clerp = function(c1,c2,al) |
| 263 | + | movementtext = makelabel(movementframe, "Movement: " .. Movement.Value, 1, 1, "Movement Text") |
| 264 | - | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
|
| 264 | + | |
| 265 | - | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
|
| 265 | + | function NoOutline(Part) |
| 266 | - | for i,v in pairs(com1) do |
| 266 | + | Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 |
| 267 | - | com1[i] = v+(com2[i]-v)*al |
| 267 | + | |
| 268 | local weldBetween = function(a, b) | |
| 269 | - | return CF(com1[1],com1[2],com1[3]) * Angles(select(4,unpack(com1))) |
| 269 | + | local weldd = Instance.new("ManualWeld")
|
| 270 | weldd.Part0 = a | |
| 271 | - | ----------------------------- |
| 271 | + | weldd.Part1 = b |
| 272 | - | local ArmCF,ArmAngle = CF(0,0,0),Angles(0,0,0) |
| 272 | + | weldd.C0 = CFrame.new() |
| 273 | - | local raw = Weld(torso,rarm,CF(0,0,0),CF(1.5,.5,0)*Angles(0,0,0)); |
| 273 | + | weldd.C1 = b.CFrame:inverse() * a.CFrame |
| 274 | - | HandleWeld = Weld(rarm,Handle,CF(0,-.5,.815)*Angles(rad(90),rad(0),rad(0))) |
| 274 | + | weldd.Parent = a |
| 275 | - | local law = Weld(torso,larm,CF(0,0,0),CF(-1.5,.5,0)*Angles(0,0,0)); |
| 275 | + | return weldd |
| 276 | - | HandleWeld2 = Weld(larm,H2,CF(0,-.5,.815)*Angles(rad(90),rad(0),rad(0))) |
| 276 | + | |
| 277 | - | ----------------------------- |
| 277 | + | function nooutline(part) |
| 278 | - | ShowDamage = function(Char, Dealt, Time, Color) |
| 278 | + | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 |
| 279 | - | local DamageModel = Instance.new("Model",Char)
|
| 279 | + | |
| 280 | - | DamageModel.Name = tostring(Dealt) |
| 280 | + | function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) |
| 281 | - | local Hum = Instance.new("Humanoid")
|
| 281 | + | local fp = it("Part")
|
| 282 | - | Hum.Health = 0 |
| 282 | + | fp.formFactor = formfactor |
| 283 | - | Hum.MaxHealth = 0 |
| 283 | + | fp.Parent = parent |
| 284 | - | Hum.Parent = DamageModel |
| 284 | + | fp.Reflectance = reflectance |
| 285 | - | local Part = Instance.new("Part")
|
| 285 | + | fp.Transparency = transparency |
| 286 | - | Part.Material = 'Neon' |
| 286 | + | fp.CanCollide = false |
| 287 | - | Part.Transparency = .6 |
| 287 | + | fp.Locked = true |
| 288 | - | Part.BrickColor = Color |
| 288 | + | fp.BrickColor = BrickColor.new(tostring(brickcolor)) |
| 289 | - | Part.Name = "Head" |
| 289 | + | fp.Name = name |
| 290 | - | Part.TopSurface = 0 |
| 290 | + | fp.Size = size |
| 291 | - | Part.BottomSurface = 0 |
| 291 | + | fp.Position = Character.Torso.Position |
| 292 | - | Part.formFactor = "Plate" |
| 292 | + | nooutline(fp) |
| 293 | - | Part.Size = Vector3.new(1,.4,1) |
| 293 | + | fp.Material = material |
| 294 | - | local CMesh = Instance.new("CylinderMesh")
|
| 294 | + | fp:BreakJoints() |
| 295 | - | CMesh.Scale = Vector3.new(.8,.1,.8) |
| 295 | + | return fp |
| 296 | - | CMesh.Parent = Part |
| 296 | + | |
| 297 | - | Part.Reflectance = 0 |
| 297 | + | function mesh(Mesh, part, meshtype, meshid, offset, scale) |
| 298 | - | Instance.new("BodyGyro").Parent = Part
|
| 298 | + | local mesh = it(Mesh) |
| 299 | - | Part.Parent = DamageModel |
| 299 | + | mesh.Parent = part |
| 300 | - | if Char:FindFirstChild("Head") ~= nil then
|
| 300 | + | if Mesh == "SpecialMesh" then |
| 301 | - | Part.CFrame = CFrame.new(Char["Head"].CFrame.p + Vector3.new(0,1.5,0)) |
| 301 | + | mesh.MeshType = meshtype |
| 302 | - | elseif Char.Parent:FindFirstChild("Head") ~= nil then
|
| 302 | + | mesh.MeshId = meshid |
| 303 | - | Part.CFrame = CFrame.new(Char.Parent["Head"].CFrame.p + Vector3.new(0,1.5,0)) |
| 303 | + | end |
| 304 | mesh.Offset = offset | |
| 305 | - | local pd,dp = 2000,100 |
| 305 | + | mesh.Scale = scale |
| 306 | - | local critiq = false |
| 306 | + | return mesh |
| 307 | - | if Dealt > 30 then |
| 307 | + | |
| 308 | - | critiq = true |
| 308 | + | function weld(parent, part0, part1, c0, c1) |
| 309 | - | end |
| 309 | + | local weld = it("Motor")
|
| 310 | - | if critiq == true then |
| 310 | + | weld.Parent = parent |
| 311 | - | pd,dp = 10,100 |
| 311 | + | weld.Part0 = part0 |
| 312 | - | local ns = NewSound(Part,279136468) |
| 312 | + | weld.Part1 = part1 |
| 313 | - | ns:Play() |
| 313 | + | weld.C0 = c0 |
| 314 | - | end |
| 314 | + | weld.C1 = c1 |
| 315 | - | local BP = Instance.new("BodyPosition")
|
| 315 | + | return weld |
| 316 | - | BP.P = pd |
| 316 | + | |
| 317 | - | BP.D = dp |
| 317 | + | m = Instance.new("Model", Character)
|
| 318 | - | |
| 318 | + | m.Name = "Gladiator's Greatsword" |
| 319 | - | BP.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
| 319 | + | local particleemitterreference = part(3, Torso, "SmoothPlastic", 0, 1, "Really black", "Particle Emitter Reference", vt()) |
| 320 | - | BP.position = Part.Position + Vector3.new(0,3,0) |
| 320 | + | particleemitterreferenceweld = weld(m, Torso, particleemitterreference, cf(0, 0, 0), cf(0, 0, 0)) |
| 321 | - | BP.Parent = Part |
| 321 | + | local particleemitter = Instance.new("ParticleEmitter", particleemitterreference)
|
| 322 | - | game:service'Debris':AddItem(Part,.15 + Time) |
| 322 | + | particleemitter.ZOffset = 1 |
| 323 | - | Part.CanCollide = false |
| 323 | + | particleemitter.Lifetime = NumberRange.new(0.5) |
| 324 | - | --Part.Parent = workspace |
| 324 | + | particleemitter.Speed = NumberRange.new(0) |
| 325 | - | Part.CanCollide = false |
| 325 | + | particleemitter.Size = NumberSequence.new({
|
| 326 | - | end |
| 326 | + | NumberSequenceKeypoint.new(0, 4), |
| 327 | - | |
| 327 | + | NumberSequenceKeypoint.new(1, 6) |
| 328 | - | dmg=function(hit,Damage,Knockback) |
| 328 | + | }) |
| 329 | - | local mana = 0 |
| 329 | + | particleemitter.RotSpeed = NumberRange.new(360) |
| 330 | - | if DebounceHit == false then |
| 330 | + | particleemitter.LockedToPart = true |
| 331 | - | DebounceHit = true |
| 331 | + | particleemitter.Rate = 20 |
| 332 | - | coroutine.resume(coroutine.create(function() |
| 332 | + | particleemitter.Transparency = NumberSequence.new({
|
| 333 | NumberSequenceKeypoint.new(0, 1), | |
| 334 | - | DebounceHit = false |
| 334 | + | NumberSequenceKeypoint.new(0.2, 0), |
| 335 | - | end)) |
| 335 | + | NumberSequenceKeypoint.new(1, 1) |
| 336 | - | if hit.Parent==nil then |
| 336 | + | }) |
| 337 | - | return |
| 337 | + | particleemitter.LightEmission = 0.25 |
| 338 | particleemitter.Color = ColorSequence.new(Color3.new(0.960784, 0.803922, 0.188235), Color3.new(1, 1, 1)) | |
| 339 | - | --CPlayer=Bin |
| 339 | + | particleemitter.Texture = "rbxassetid://244221613" |
| 340 | - | h=hit.Parent:FindFirstChild("Humanoid")
|
| 340 | + | local particleemitter2 = Instance.new("ParticleEmitter", particleemitterreference)
|
| 341 | - | if h~=nil and hit.Parent.Name~=Char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
|
| 341 | + | particleemitter2.ZOffset = 1 |
| 342 | - | if mana < 400 then |
| 342 | + | particleemitter2.Lifetime = NumberRange.new(1) |
| 343 | - | mana = mana + math.random(5,15) |
| 343 | + | particleemitter2.Speed = NumberRange.new(0) |
| 344 | particleemitter2.Size = NumberSequence.new({
| |
| 345 | - | if mana > 400 then |
| 345 | + | NumberSequenceKeypoint.new(0, 4), |
| 346 | - | mana = 400 |
| 346 | + | NumberSequenceKeypoint.new(1, 6) |
| 347 | }) | |
| 348 | - | Damage=Damage |
| 348 | + | particleemitter2.RotSpeed = NumberRange.new(360) |
| 349 | - | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then |
| 349 | + | particleemitter2.LockedToPart = true |
| 350 | - | return |
| 350 | + | particleemitter2.Rate = 20 |
| 351 | - | end]] |
| 351 | + | particleemitter2.Transparency = NumberSequence.new({
|
| 352 | - | c=Instance.new("ObjectValue")
|
| 352 | + | NumberSequenceKeypoint.new(0, 1), |
| 353 | - | c.Name="creator" |
| 353 | + | NumberSequenceKeypoint.new(0.2, 0.5), |
| 354 | - | c.Value=game.Players.LocalPlayer |
| 354 | + | NumberSequenceKeypoint.new(1, 1) |
| 355 | - | c.Parent=h |
| 355 | + | }) |
| 356 | - | game:GetService("Debris"):AddItem(c,.5)
|
| 356 | + | particleemitter2.LightEmission = 0.25 |
| 357 | - | -- print(c.Value) |
| 357 | + | particleemitter2.Color = ColorSequence.new(Color3.new(0.960784, 0.803922, 0.188235), Color3.new(1, 1, 1)) |
| 358 | - | if math.random(0,99)+math.random()<=7.8 then |
| 358 | + | particleemitter2.Texture = "rbxassetid://242292318" |
| 359 | - | --CRIT=true |
| 359 | + | particleemitter.Enabled = false |
| 360 | - | Damage=Damage*3 |
| 360 | + | particleemitter2.Enabled = false |
| 361 | - | --[[ Knockback=Knockback*2 |
| 361 | + | Handle = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 362 | - | r=Instance.new("BodyAngularVelocity")
|
| 362 | + | Handleweld = weld(m, Character["Left Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00593662262, 0, -0.00341796875, 0.00495308638, -7.96281383E-4, 0.999987423, 5.21182892E-6, 0.999999464, 7.96210894E-4, -0.999987781, 1.26810494E-6, 0.00495308917)) |
| 363 | - | r.P=3000 |
| 363 | + | Hitbox = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 1, "Smoky grey", "Hitbox", Vector3.new(0.2, 0.2, 0.2)) |
| 364 | - | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 |
| 364 | + | Hitboxweld = weld(m, Handle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 6.93411636, -4.42378223E-8, 2.70574674E-10, -1, 1.74622983E-10, 0.999999702, 3.13320925E-10, 1, -5.43077476E-8, -4.3772161E-8)) |
| 365 | - | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) |
| 365 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 366 | - | r.Parent=hit.Parent.Torso]] |
| 366 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.61337948, 2.38418579E-7, 9.53674316E-7, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 367 | - | --critsound(2) |
| 367 | + | mesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1.25, 1.25, 1.25))
|
| 368 | - | |
| 368 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 369 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0147428513, -7.22768688, 7.31270361, 0.00145436265, -0.00350086438, -0.999992907, -0.707098067, 0.707106471, -0.00350388698, 0.707114041, 0.707097769, -0.00144706573)) | |
| 370 | - | |
| 370 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 371 | - | Damage = Damage+math.random(0,9) |
| 371 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 372 | - | --end |
| 372 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.62661934, 0, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 373 | - | |
| 373 | + | mesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1.25, 1.25, 1.25))
|
| 374 | - | --warn('dmged')
|
| 374 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, CustomColor, "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 375 | - | -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2)) |
| 375 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 2.38418579E-7, 9.53674316E-7, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 376 | - | h.Health = h.Health - Damage |
| 376 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(10, 1, 1))
|
| 377 | - | -- showDamage(hit.Parent,Damage,.5) |
| 377 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 378 | - | vp=Instance.new("BodyVelocity")
|
| 378 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, -0.400000334, 8.03411674, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) |
| 379 | - | vp.P=500 |
| 379 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 380 | - | vp.maxForce=Vector3.new(math.huge,0,math.huge) |
| 380 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, CustomColor, "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 381 | - | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback |
| 381 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.19661903, 1.1920929E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 382 | - | vp.velocity=torso.CFrame.lookVector*Knockback+torso.Velocity/1.05 |
| 382 | + | mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=12221505", Vector3.new(0, 0, 0), Vector3.new(0.075000003, 1.13999999, 0.764999986))
|
| 383 | - | if Knockback>0 then |
| 383 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Medium stone grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 384 | - | vp.Parent=hit.Parent.Torso |
| 384 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.49911976, 1.1920929E-7, 9.53674316E-7, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 385 | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.20000005, 1.20000005))
| |
| 386 | - | game:GetService("Debris"):AddItem(vp,.1)
|
| 386 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, CustomColor, "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 387 | - | r=Instance.new("BodyAngularVelocity")
|
| 387 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.53661919, 1.1920929E-7, 9.53674316E-7, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 388 | - | r.P=3000 |
| 388 | + | mesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.5, 1.25, 1.25))
|
| 389 | - | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 |
| 389 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Medium stone grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 390 | - | r.angularvelocity= Vector3.new(0,0,0) |
| 390 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.56661987, 2.38418579E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 391 | - | r.Parent=hit.Parent.Torso |
| 391 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.20000005, 1.20000005))
|
| 392 | - | game:GetService("Debris"):AddItem(r,.5)
|
| 392 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 393 | - | c=Instance.new("ObjectValue")
|
| 393 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.840000153, 10.2816219, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) |
| 394 | - | c.Name="creator" |
| 394 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 395 | - | c.Value=Plr |
| 395 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 396 | - | c.Parent=h |
| 396 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 6.23555136, 9.67515945, -4.3772161E-8, -4.22915036E-11, -1.00000012, 0.601814926, 0.798635125, -2.63098627E-8, 0.798635602, -0.601814747, -3.49245965E-8)) |
| 397 | - | game:GetService("Debris"):AddItem(c,.5)
|
| 397 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 398 | - | return h |
| 398 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Medium stone grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 399 | - | --CRIT=false |
| 399 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.53838062, 2.38418579E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 400 | - | --hitDeb=true |
| 400 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.20000005, 1.20000005))
|
| 401 | - | --AttackPos=6 |
| 401 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 402 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, -0.400000572, 9.53411674, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) | |
| 403 | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
| |
| 404 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) | |
| 405 | - | |
| 405 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, 0.0599999428, 5.78162193, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) |
| 406 | - | GunShot = function(P) |
| 406 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 407 | - | local GS = NewSound(P,269953442) |
| 407 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Ghost grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 408 | - | return GS |
| 408 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.90734863E-6, -6.6722846, 8.98348618, 1.34576112E-7, 1.20632649E-7, 1.00000012, -0.601814926, -0.798635125, 1.7718412E-7, 0.798635602, -0.601814747, -3.49245965E-8)) |
| 409 | - | end; |
| 409 | + | mesh("SpecialMesh", Part, Enum.MeshType.Torso, "", Vector3.new(0, 0, 0), Vector3.new(2, 2.5, 7.5))
|
| 410 | - | |
| 410 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Smoky grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 411 | - | Shoot = function(TrailBool, Velocity, Drop, HitMode) |
| 411 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.375000477, 10.9716244, 4.3772161E-8, 1.51037966E-7, 1.00000012, 5.424954E-8, -0.999999583, 1.50952928E-7, 1, -5.43077476E-8, -4.3772161E-8)) |
| 412 | - | --if DebounceShot == true then return end |
| 412 | + | mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(2, 4.5, 6))
|
| 413 | - | local reclr = function(prt) |
| 413 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Ghost grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 414 | - | if HitMode == 'Standard' then |
| 414 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.53674316E-7, -0.674999595, 6.57662582, 4.3772161E-8, 1.51037966E-7, 1.00000012, 5.424954E-8, -0.999999583, 1.50952928E-7, 1, -5.43077476E-8, -4.3772161E-8)) |
| 415 | - | prt.Color = BrickColor.new'New Yeller'.Color |
| 415 | + | mesh("SpecialMesh", Part, Enum.MeshType.Torso, "", Vector3.new(0, 0, 0), Vector3.new(1.60000002, 2.5, 25))
|
| 416 | - | elseif HitMode == 'TimeBomb' then |
| 416 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 417 | - | prt.Color = BrickColor.new'Crimson'.Color |
| 417 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.90734863E-6, -0.400000334, 3.53412056, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) |
| 418 | - | elseif HitMode == 'BlackHole' then |
| 418 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 419 | - | prt.Color = BrickColor.new'Royal purple'.Color |
| 419 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 420 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.0600001812, 2.78162003, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) | |
| 421 | - | end; |
| 421 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 422 | - | if Shootin_Arm == 'Right' then |
| 422 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 423 | - | if CurrentAmmo < 1 then |
| 423 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, -0.839999676, 5.78162193, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) |
| 424 | - | local rld = NewSound(Handle,133067770) |
| 424 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 425 | - | local rld2 = NewSound(Handle,133067770) |
| 425 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Fossil", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 426 | - | rld:Play() |
| 426 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.34661865, 1.1920929E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 427 | - | --wait() |
| 427 | + | mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=12221505", Vector3.new(0, 0, 0), Vector3.new(0.075000003, 1.13999999, 0.764999986))
|
| 428 | - | rld2:Play() |
| 428 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 429 | - | UpForce = 0 |
| 429 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.839999914, 7.28162193, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) |
| 430 | - | wait(3.05) |
| 430 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 431 | - | CurrentAmmo2 = BClip |
| 431 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Medium stone grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 432 | - | CurrentAmmo = AClip |
| 432 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.79162025, 0, 9.53674316E-7, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 433 | - | UpdateGui() |
| 433 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 1.39999998, 1.39999998))
|
| 434 | - | return |
| 434 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 435 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, -0.840000153, 8.78162384, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) | |
| 436 | - | elseif Shootin_Arm == 'Left' then |
| 436 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 437 | - | if CurrentAmmo2 < 1 then |
| 437 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 438 | - | local rld = NewSound(H2,133067770) |
| 438 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.0599999428, 7.28162193, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) |
| 439 | - | local rld2 = NewSound(H2,133067770) |
| 439 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 440 | - | rld:Play() |
| 440 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 441 | - | --wait() |
| 441 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, -0.400000095, 5.03411484, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) |
| 442 | - | rld2:Play() |
| 442 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 443 | - | UpForce = 0 |
| 443 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Smoky grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 444 | - | wait(3.05) |
| 444 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.89662075, 2.38418579E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 445 | - | CurrentAmmo2 = BClip |
| 445 | + | mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=12221505", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1.20000005, 0.825000048))
|
| 446 | - | CurrentAmmo = AClip |
| 446 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Ghost grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 447 | - | UpdateGui() |
| 447 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.53674316E-7, -0.674999714, 6.32162285, 4.3772161E-8, 1.51037966E-7, 1.00000012, 5.424954E-8, -0.999999583, 1.50952928E-7, 1, -5.43077476E-8, -4.3772161E-8)) |
| 448 | - | return |
| 448 | + | mesh("SpecialMesh", Part, Enum.MeshType.Torso, "", Vector3.new(0, 0, 0), Vector3.new(2, 2.5, 25))
|
| 449 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Medium stone grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) | |
| 450 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.7166214, 1.1920929E-7, 9.53674316E-7, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) | |
| 451 | - | ------------------------------- |
| 451 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.20000005, 1.20000005))
|
| 452 | - | if Shootin_Arm == 'Right' then |
| 452 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 453 | - | CurrentAmmo = CurrentAmmo - 1 |
| 453 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, 0.060000062, 4.28162003, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) |
| 454 | - | elseif Shootin_Arm == 'Left' then |
| 454 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 455 | - | CurrentAmmo2 = CurrentAmmo2 - 1 |
| 455 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 456 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.839999914, 2.78162098, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) | |
| 457 | - | UpdateGui() |
| 457 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 458 | - | HitMode = HitMode or 'Standard' |
| 458 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Smoky grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 459 | - | local Min,Max = 7,13 |
| 459 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.19662094, 1.1920929E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 460 | - | local Bul = Instance.new('Part',nil)
|
| 460 | + | mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=12221505", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1.125, 0.75))
|
| 461 | - | local b = Bul |
| 461 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Smoky grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 462 | - | b.FormFactor = 3 |
| 462 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.49661922, 1.1920929E-7, 9.53674316E-7, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 463 | - | table.insert(GlobalIgnore,b) |
| 463 | + | mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=12221505", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1.20000005, 0.825000048))
|
| 464 | - | b.Size = Vector3.new(.2,.2,2) |
| 464 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Ghost grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 465 | - | b.CFrame = Barrel.CFrame |
| 465 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.90734863E-6, -6.6722846, 8.7434864, 1.34576112E-7, 1.20632649E-7, 1.00000012, -0.601814926, -0.798635125, 1.7718412E-7, 0.798635602, -0.601814747, -3.49245965E-8)) |
| 466 | - | b.Material = 272 |
| 466 | + | mesh("SpecialMesh", Part, Enum.MeshType.Torso, "", Vector3.new(0, 0, 0), Vector3.new(1.60000002, 2.5, 7.5))
|
| 467 | - | b.CanCollide = false |
| 467 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 468 | - | reclr(b) |
| 468 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, -0.400000095, 6.53411674, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) |
| 469 | - | b.Anchored = true |
| 469 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 470 | - | local msh = Instance.new('BlockMesh',Bul)
|
| 470 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 471 | - | msh.Scale = Vector3.new(.5,.5,.5) |
| 471 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, -0.839999914, 4.28161812, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) |
| 472 | - | b.Parent = workspace |
| 472 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 473 | - | local GS = GunShot(Barrel) |
| 473 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 474 | - | GS:Play() |
| 474 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, 0.0599998236, 8.78162193, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8)) |
| 475 | - | local bulletposition |
| 475 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
|
| 476 | - | if Shootin_Arm == 'Right' then |
| 476 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Medium stone grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 477 | - | bulletposition = (Barrel.CFrame*CF(.25,1,.2)).p |
| 477 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.74662018, 2.38418579E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 478 | - | local Bk = Instance.new('Part',Char)
|
| 478 | + | mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.29999995, 1.29999995))
|
| 479 | - | Bk.FormFactor = 3 |
| 479 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Fossil", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 480 | - | Bk.TopSurface,Bk.BottomSurface = 0,0 |
| 480 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.04661942, 1.1920929E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 481 | - | local rsz = 1 |
| 481 | + | mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=12221505", Vector3.new(0, 0, 0), Vector3.new(0.075000003, 1.13999999, 0.764999986))
|
| 482 | - | Bk.Size = Vector3.new(rsz,rsz,rsz) |
| 482 | + | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Smoky grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012)) |
| 483 | - | Bk.CFrame = Barrel.CFrame*Angles(rad(math.random(-360,360)),rad(math.random(-360,360)),rad(math.random(-360,360))) |
| 483 | + | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(6.32162285, -0.375000238, 1.90734863E-6, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012)) |
| 484 | - | Bk.Transparency = .55 |
| 484 | + | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(25, 4.5, 2))
|
| 485 | - | Bk.Anchored = true |
| 485 | + | for _, v in pairs(m:GetChildren()) do |
| 486 | - | Bk.Material = 'Neon' |
| 486 | + | if v.ClassName == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Handle" then |
| 487 | - | reclr(Bk) |
| 487 | + | v.Transparency = 1 |
| 488 | - | Bk.CanCollide = false |
| 488 | + | end |
| 489 | - | spawn(function() |
| 489 | + | |
| 490 | - | local nmb = 20 |
| 490 | + | Effects = Instance.new("Folder", m)
|
| 491 | - | local msh = Instance.new('BlockMesh',Bk)
|
| 491 | + | Effects.Name = "Effects" |
| 492 | - | for i = 1,nmb do |
| 492 | + | Handleweld.Part0 = Torso |
| 493 | - | Bk.Transparency = Bk.Transparency + .05 |
| 493 | + | Handleweld.C0 = cf(-4, 2.5, 0.8) * angles(0, math.rad(-90), 0) * angles(math.rad(-30), 0, 0) |
| 494 | - | msh.Scale = msh.Scale + Vector3.new(.05,.05,.05) |
| 494 | + | Humanoid.Died:connect(function() |
| 495 | - | lRS:wait() |
| 495 | + | attack = true |
| 496 | - | end |
| 496 | + | for _, v in pairs(Character:GetChildren()) do |
| 497 | - | Bk:Destroy() |
| 497 | + | if v:IsA("Model") then
|
| 498 | - | end) |
| 498 | + | m:Destroy() |
| 499 | - | elseif Shootin_Arm == 'Left' then |
| 499 | + | |
| 500 | - | bulletposition = (B2.CFrame*CF(.25,1,.2)).p |
| 500 | + | end |
| 501 | - | local Bk = Instance.new('Part',Char)
|
| 501 | + | |
| 502 | - | Bk.FormFactor = 3 |
| 502 | + | for i, v in pairs(Character:GetChildren()) do |
| 503 | - | Bk.TopSurface,Bk.BottomSurface = 0,0 |
| 503 | + | if v:IsA("Model") then
|
| 504 | - | local rsz = 1 |
| 504 | + | for _, c in pairs(v:GetChildren()) do |
| 505 | - | Bk.Size = Vector3.new(rsz,rsz,rsz) |
| 505 | + | if c:IsA("Part") then
|
| 506 | - | Bk.CFrame = B2.CFrame*Angles(rad(math.random(-360,360)),rad(math.random(-360,360)),rad(math.random(-360,360))) |
| 506 | + | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) |
| 507 | - | Bk.Transparency = .55 |
| 507 | + | end |
| 508 | - | Bk.Anchored = true |
| 508 | + | |
| 509 | - | Bk.Material = 'Neon' |
| 509 | + | end |
| 510 | - | Bk.CanCollide = false |
| 510 | + | |
| 511 | - | reclr(Bk) |
| 511 | + | print("Gladiator loaded.")
|
| 512 | - | spawn(function() |
| 512 | + | function so(id, par, vol, pit) |
| 513 | - | local nmb = 20 |
| 513 | + | coroutine.resume(coroutine.create(function() |
| 514 | - | local msh = Instance.new('BlockMesh',Bk)
|
| 514 | + | local sou = Instance.new("Sound", par or workspace)
|
| 515 | - | for i = 1,nmb do |
| 515 | + | sou.Volume = vol |
| 516 | - | Bk.Transparency = Bk.Transparency + .05 |
| 516 | + | sou.Pitch = pit or 1 |
| 517 | - | msh.Scale = msh.Scale + Vector3.new(.05,.05,.05) |
| 517 | + | sou.SoundId = "http://roblox.com/asset/?id=" .. id |
| 518 | - | lRS:wait() |
| 518 | + | hbwait() |
| 519 | - | end |
| 519 | + | sou:play() |
| 520 | - | Bk:Destroy() |
| 520 | + | game:GetService("Debris"):AddItem(sou, 10)
|
| 521 | - | end) |
| 521 | + | end)) |
| 522 | - | end |
| 522 | + | |
| 523 | - | local bulletvelocity = (Vector3.new(0,0,0))+( mouse.Hit.p - bulletposition).unit*Velocity |
| 523 | + | function clerp(a, b, t) |
| 524 | - | local bulletlastposition = bulletposition |
| 524 | + | local qa = {
|
| 525 | - | Bul.CFrame = CFrame.new( bulletposition, bulletposition+bulletvelocity ) |
| 525 | + | QuaternionFromCFrame(a) |
| 526 | - | |
| 526 | + | } |
| 527 | - | |
| 527 | + | local qb = {
|
| 528 | - | |
| 528 | + | QuaternionFromCFrame(b) |
| 529 | - | |
| 529 | + | } |
| 530 | - | |
| 530 | + | local ax, ay, az = a.x, a.y, a.z |
| 531 | - | coroutine.resume(coroutine.create(function() |
| 531 | + | local bx, by, bz = b.x, b.y, b.z |
| 532 | - | while true do |
| 532 | + | local _t = 1 - t |
| 533 | - | local dt = wait() |
| 533 | + | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) |
| 534 | - | bulletlastposition = bulletposition |
| 534 | + | |
| 535 | - | bulletvelocity = bulletvelocity + (Vector3.new(0, -Drop, 0)*dt) |
| 535 | + | function QuaternionFromCFrame(cf) |
| 536 | - | bulletposition = bulletposition + (bulletvelocity*dt) |
| 536 | + | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
| 537 | - | local Tbl = {Barrel,rarm,Pistol, Char, Bul};
|
| 537 | + | local trace = m00 + m11 + m22 |
| 538 | - | for index1,ite1 in next, GlobalIgnore do |
| 538 | + | if trace > 0 then |
| 539 | - | table.insert(Tbl,ite1) |
| 539 | + | local s = math.sqrt(1 + trace) |
| 540 | local recip = 0.5 / s | |
| 541 | - | local ray = Ray.new(bulletlastposition, (bulletposition - bulletlastposition)) |
| 541 | + | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 |
| 542 | - | local hit, hitposition = workspace:FindPartOnRayWithIgnoreList( ray, Tbl ) |
| 542 | + | else |
| 543 | - | if TrailBool == true and b.Parent ~= nil then |
| 543 | + | local i = 0 |
| 544 | - | local dst = (bulletlastposition-bulletposition).magnitude |
| 544 | + | if m00 < m11 then |
| 545 | - | local Trl = Instance.new('Part',workspace)
|
| 545 | + | i = 1 |
| 546 | - | table.insert(Tbl, Trl) |
| 546 | + | |
| 547 | - | local t = Trl |
| 547 | + | if m22 > (i == 0 and m00 or m11) then |
| 548 | - | t.FormFactor = 3 |
| 548 | + | i = 2 |
| 549 | - | t.Size = Vector3.new(.2,.2,dst) |
| 549 | + | |
| 550 | - | t.CFrame = CFrame.new(bulletlastposition,bulletposition) * CF(0,0,-dst/2) |
| 550 | + | if i == 0 then |
| 551 | - | t.Material = 272 |
| 551 | + | local s = math.sqrt(m00 - m11 - m22 + 1) |
| 552 | - | t.CanCollide = false |
| 552 | + | local recip = 0.5 / s |
| 553 | - | t.Transparency = .1 |
| 553 | + | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip |
| 554 | - | reclr(t) |
| 554 | + | elseif i == 1 then |
| 555 | - | t.Anchored = true |
| 555 | + | local s = math.sqrt(m11 - m22 - m00 + 1) |
| 556 | - | local msh = Instance.new('BlockMesh',t)
|
| 556 | + | local recip = 0.5 / s |
| 557 | - | msh.Scale = Vector3.new(.25,.25,1) |
| 557 | + | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip |
| 558 | - | spawn(function() |
| 558 | + | elseif i == 2 then |
| 559 | - | local nmb = 5 |
| 559 | + | local s = math.sqrt(m22 - m00 - m11 + 1) |
| 560 | - | for i = 0,nmb do |
| 560 | + | local recip = 0.5 / s |
| 561 | - | t.Transparency = t.Transparency + (1/nmb) |
| 561 | + | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
| 562 | - | game:service'RunService'.Stepped:wait() |
| 562 | + | |
| 563 | - | end |
| 563 | + | end |
| 564 | - | t:Destroy() |
| 564 | + | |
| 565 | - | end) |
| 565 | + | function QuaternionToCFrame(px, py, pz, x, y, z, w) |
| 566 | - | end |
| 566 | + | local xs, ys, zs = x + x, y + y, z + z |
| 567 | - | if (torso.Position - Bul.Position).magnitude > 500 then |
| 567 | + | local wx, wy, wz = w * xs, w * ys, w * zs |
| 568 | - | Bul:Destroy() |
| 568 | + | local xx = x * xs |
| 569 | - | break |
| 569 | + | local xy = x * ys |
| 570 | - | end |
| 570 | + | local xz = x * zs |
| 571 | - | |
| 571 | + | local yy = y * ys |
| 572 | - | |
| 572 | + | local yz = y * zs |
| 573 | - | if hit then |
| 573 | + | local zz = z * zs |
| 574 | - | local flesh = NewSound(hit,245631167) |
| 574 | + | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) |
| 575 | - | --if hit.CanCollide == true then |
| 575 | + | |
| 576 | - | if HitMode == 'Standard' then |
| 576 | + | function QuaternionSlerp(a, b, t) |
| 577 | - | local bl = Instance.new('Part',workspace)
|
| 577 | + | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] |
| 578 | - | bl.TopSurface,bl.BottomSurface = 0,0 |
| 578 | + | local startInterp, finishInterp |
| 579 | - | bl.FormFactor = 3 |
| 579 | + | if cosTheta >= 1.0E-4 then |
| 580 | - | bl.Anchored = true |
| 580 | + | if 1 - cosTheta > 1.0E-4 then |
| 581 | - | bl.CanCollide = false |
| 581 | + | local theta = math.acos(cosTheta) |
| 582 | - | bl.Size = Vector3.new(.5,.5,.5) |
| 582 | + | local invSinTheta = 1 / math.sin(theta) |
| 583 | - | local msh23 = Instance.new('SpecialMesh',bl)
|
| 583 | + | startInterp = math.sin((1 - t) * theta) * invSinTheta |
| 584 | - | msh23.MeshType = 'FileMesh' |
| 584 | + | finishInterp = math.sin(t * theta) * invSinTheta |
| 585 | - | msh23.MeshId = 'rbxassetid://9982590' |
| 585 | + | else |
| 586 | - | msh23.Scale = Vector3.new(.25,.25,.25) |
| 586 | + | startInterp = 1 - t |
| 587 | - | bl.Position = hitposition |
| 587 | + | finishInterp = t |
| 588 | - | bl.Color = Bul.Color |
| 588 | + | |
| 589 | - | spawn(function() |
| 589 | + | elseif 1 + cosTheta > 1.0E-4 then |
| 590 | - | local nmb = 5 |
| 590 | + | local theta = math.acos(-cosTheta) |
| 591 | - | for i = 1,nmb do |
| 591 | + | local invSinTheta = 1 / math.sin(theta) |
| 592 | - | bl.Transparency = bl.Transparency + (1/nmb) |
| 592 | + | startInterp = math.sin((t - 1) * theta) * invSinTheta |
| 593 | - | msh23.Scale = Vector3.new(.25+(i/15),.25+(i/15),.25+(i/15)) |
| 593 | + | finishInterp = math.sin(t * theta) * invSinTheta |
| 594 | - | game:service'RunService'.Stepped:wait() |
| 594 | + | else |
| 595 | - | end |
| 595 | + | startInterp = t - 1 |
| 596 | - | bl:Destroy() |
| 596 | + | finishInterp = t |
| 597 | - | end) |
| 597 | + | end |
| 598 | - | elseif HitMode == 'TimeBomb' then |
| 598 | + | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp |
| 599 | - | local bl = Instance.new('Part',workspace)
|
| 599 | + | |
| 600 | - | bl.TopSurface,bl.BottomSurface = 0,0 |
| 600 | + | function rayCast(Pos, Dir, Max, Ignore) |
| 601 | - | bl.FormFactor = 3 |
| 601 | + | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
|
| 602 | - | bl.Anchored = true |
| 602 | + | |
| 603 | - | bl.CanCollide = false |
| 603 | + | function DamageStatLabel(cframe, text, color) |
| 604 | - | bl.Size = Vector3.new(.5,.5,.5) |
| 604 | + | local c = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt(0, 0, 0)) |
| 605 | - | local msh23 = Instance.new('SpecialMesh',bl)
|
| 605 | + | c.CFrame = cf(cframe.p + vt(0, 1.5, 0)) |
| 606 | - | msh23.MeshType = 'FileMesh' |
| 606 | + | game:GetService("Debris"):AddItem(c, 5)
|
| 607 | - | msh23.MeshId = 'rbxassetid://9982590' |
| 607 | + | Instance.new("BodyGyro", c)
|
| 608 | - | msh23.Scale = Vector3.new(.25,.25,.25) |
| 608 | + | local f = Instance.new("BodyPosition", c)
|
| 609 | - | bl.Position = hitposition |
| 609 | + | f.P = 2000 |
| 610 | - | bl.Color = Color3.new(1,0,0) |
| 610 | + | f.D = 100 |
| 611 | - | local tospos = CF(hitposition)*bl.CFrame |
| 611 | + | f.maxForce = vt(math.huge, math.huge, math.huge) |
| 612 | - | local bltohit = Weld(bl,hit,tospos) |
| 612 | + | f.position = c.Position + vt(math.random(-1, 1), 6, math.random(-1, 1)) |
| 613 | - | spawn(function() |
| 613 | + | game:GetService("Debris"):AddItem(c, 5)
|
| 614 | - | wait(1) |
| 614 | + | local bg = Instance.new("BillboardGui", c)
|
| 615 | - | local xp = Instance.new('Explosion',bl)
|
| 615 | + | bg.Adornee = c |
| 616 | - | xp.Position = bl.Position |
| 616 | + | bg.Size = UDim2.new(2.5, 0, 2.5, 0) |
| 617 | - | local nmb = 10 |
| 617 | + | bg.StudsOffset = vt(-2, 2, 0) |
| 618 | - | for i = 1,nmb do |
| 618 | + | bg.AlwaysOnTop = false |
| 619 | - | bl.Transparency = bl.Transparency + (1/nmb) |
| 619 | + | local tl = Instance.new("TextLabel", bg)
|
| 620 | - | msh23.Scale = Vector3.new(.25+(i),.25+(i),.25+(i)) |
| 620 | + | tl.BackgroundTransparency = 1 |
| 621 | - | game:service'RunService'.Stepped:wait() |
| 621 | + | tl.Size = UDim2.new(2.5, 0, 2.5, 0) |
| 622 | - | end |
| 622 | + | tl.Text = text |
| 623 | - | bl:Destroy() |
| 623 | + | tl.Font = Enum.Font.SourceSans |
| 624 | - | end) |
| 624 | + | tl.FontSize = Enum.FontSize.Size42 |
| 625 | - | elseif HitMode == 'BlackHole' then |
| 625 | + | tl.TextColor3 = color |
| 626 | - | local bl = Instance.new('Part',workspace)
|
| 626 | + | tl.TextScaled = false |
| 627 | - | bl.TopSurface,bl.BottomSurface = 0,0 |
| 627 | + | tl.TextStrokeTransparency = 0 |
| 628 | - | bl.FormFactor = 3 |
| 628 | + | tl.TextScaled = true |
| 629 | - | bl.Anchored = true |
| 629 | + | tl.TextWrapped = true |
| 630 | - | bl.CanCollide = false |
| 630 | + | f.Parent = c |
| 631 | - | bl.Size = Vector3.new(.5,.5,.5) |
| 631 | + | coroutine.resume(coroutine.create(function(Part, BodyPosition, TextLabel) |
| 632 | - | local msh23 = Instance.new('SpecialMesh',bl)
|
| 632 | + | wait(0.25) |
| 633 | - | msh23.MeshType = 'FileMesh' |
| 633 | + | for i = 1, 5 do |
| 634 | - | msh23.MeshId = 'rbxassetid://9982590' |
| 634 | + | wait() |
| 635 | - | msh23.Scale = Vector3.new(.25,.25,.25) |
| 635 | + | BodyPosition.position = Part.Position - vt(0, 0.5, 0) |
| 636 | - | bl.Position = hitposition |
| 636 | + | |
| 637 | - | bl.Color = BrickColor.new'Royal purple'.Color |
| 637 | + | wait(1.25) |
| 638 | - | spawn(function() |
| 638 | + | for i = 1, 5 do |
| 639 | - | wait() |
| 639 | + | wait() |
| 640 | - | SearchAndReturn = function(Prnt, ClassName) |
| 640 | + | TextLabel.TextTransparency = TextLabel.TextTransparency + 0.2 |
| 641 | - | local Tbl = {};
|
| 641 | + | TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.2 |
| 642 | - | local Search |
| 642 | + | BodyPosition.position = Part.Position + vt(0, 0.5, 0) |
| 643 | - | Search = function(Prnt2) |
| 643 | + | |
| 644 | - | if Prnt2.Name == Plr.Name then return end |
| 644 | + | Part.Parent = nil |
| 645 | - | --warn('Exploring: '..Prnt.Name)
|
| 645 | + | end), c, f, tl) |
| 646 | - | for _,v in pairs(Prnt2:GetChildren()) do |
| 646 | + | |
| 647 | - | --print('Got: '..v.Name)
|
| 647 | + | function IncreaseStat(Location, Stat, Amount, Duration, ShowTheStat) |
| 648 | - | if v:IsA(ClassName) then |
| 648 | + | if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil then
|
| 649 | - | table.insert(Tbl,v) |
| 649 | + | if Location.Stats:FindFirstChild("BlockValue").Value ~= true then
|
| 650 | - | --warn('Got Important: '..v.Name,' | Source: '..tostring(v.Parent:GetFullName()))
|
| 650 | + | if Location.Stats[Stat] ~= nil then |
| 651 | - | end |
| 651 | + | Location.Stats[Stat].Value = Location.Stats[Stat].Value + Amount |
| 652 | - | Search(v) |
| 652 | + | if ShowTheStat == true then |
| 653 | - | end;end; |
| 653 | + | if Stat == "Defense" then |
| 654 | - | Search(Prnt) |
| 654 | + | DamageStatLabel(Location.Head.CFrame, "+Defense", c3(1, 1, 1)) |
| 655 | - | --print(#Tbl) |
| 655 | + | elseif Stat == "Damage" then |
| 656 | - | return Tbl |
| 656 | + | DamageStatLabel(Location.Head.CFrame, "+Damage", c3(1, 1, 1)) |
| 657 | - | end; |
| 657 | + | elseif Stat == "Movement" then |
| 658 | - | |
| 658 | + | DamageStatLabel(Location.Head.CFrame, "+Movement", c3(1, 1, 1)) |
| 659 | - | local PartList = SearchAndReturn(workspace,'Part') |
| 659 | + | end |
| 660 | - | if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent.Parent.Name ~= Plr.Name then
|
| 660 | + | |
| 661 | - | hit.Parent:findFirstChild("Humanoid").PlatformStand = true
|
| 661 | + | coroutine.resume(coroutine.create(function(CurrentDecrease) |
| 662 | - | spawn(function() |
| 662 | + | wait(Duration) |
| 663 | - | for i = 1,math.random(10,60) do |
| 663 | + | CurrentDecrease.Value = CurrentDecrease.Value - Amount |
| 664 | - | if hit and hit.Parent then |
| 664 | + | end), Location.Stats[Stat]) |
| 665 | - | hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1
|
| 665 | + | end |
| 666 | else | |
| 667 | - | lRS:wait() |
| 667 | + | DamageStatLabel(Location.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1)) |
| 668 | end | |
| 669 | end | |
| 670 | end | |
| 671 | - | for Index, Part in next, PartList do |
| 671 | + | function DecreaseStat(Location, Stat, Amount, Duration, ShowTheStat) |
| 672 | - | if Part.Anchored == true and Part ~= bl and Part.Name ~= 'Base' then Part.Anchored = false end |
| 672 | + | if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil then
|
| 673 | - | if (Part.CFrame.p-bl.CFrame.p).magnitude < 7 and Part.Name ~= 'Base' and Part ~= bl then |
| 673 | + | if Location.Stats:FindFirstChild("BlockValue").Value ~= true then
|
| 674 | - | |
| 674 | + | if Location.Stats[Stat] ~= nil then |
| 675 | - | local rnmb = math.random(-100,100) |
| 675 | + | Location.Stats[Stat].Value = Location.Stats[Stat].Value - Amount |
| 676 | - | local BP = Instance.new("BodyPosition")
|
| 676 | + | if ShowTheStat == true then |
| 677 | - | BP.P = 2000 |
| 677 | + | if Stat == "Defense" then |
| 678 | - | BP.D = 50 |
| 678 | + | DamageStatLabel(Location.Head.CFrame, "-Defense", c3(1, 1, 1)) |
| 679 | - | BP.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
| 679 | + | elseif Stat == "Damage" then |
| 680 | - | BP.position = bl.Position |
| 680 | + | DamageStatLabel(Location.Head.CFrame, "-Damage", c3(1, 1, 1)) |
| 681 | - | BP.Parent = Part |
| 681 | + | elseif Stat == "Movement" then |
| 682 | - | spawn(function() |
| 682 | + | DamageStatLabel(Location.Head.CFrame, "-Movement", c3(1, 1, 1)) |
| 683 | - | wait(.3) |
| 683 | + | end |
| 684 | - | if rnmb == 7 or rnmb == 3 then |
| 684 | + | |
| 685 | - | Part:Destroy() |
| 685 | + | coroutine.resume(coroutine.create(function(CurrentDecrease) |
| 686 | wait(Duration) | |
| 687 | - | game.Debris:AddItem(BP,1.5) |
| 687 | + | CurrentDecrease.Value = CurrentDecrease.Value + Amount |
| 688 | - | spawn(function() |
| 688 | + | end), Location.Stats[Stat]) |
| 689 | - | wait(1) |
| 689 | + | end |
| 690 | - | for i = 1,2 do |
| 690 | + | else |
| 691 | - | Part.CFrame = lerp(Part.CFrame,Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1) |
| 691 | + | DamageStatLabel(Location.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1)) |
| 692 | - | lRS:wait() |
| 692 | + | |
| 693 | end | |
| 694 | end | |
| 695 | function GetDistance(Part1, Part2, magnitude) | |
| 696 | local target = Part1.Position - Part2.Position | |
| 697 | local mag = target.magnitude | |
| 698 | - | local nmb = 40 |
| 698 | + | if magnitude >= mag then |
| 699 | - | for i = 1,nmb do |
| 699 | + | return true |
| 700 | - | bl.Transparency = bl.Transparency + (.5/nmb) |
| 700 | + | else |
| 701 | - | msh23.Scale = Vector3.new(.25+(i/15),.25+(i/15),.25+(i/15)) |
| 701 | + | return false |
| 702 | - | game:service'RunService'.Stepped:wait() |
| 702 | + | end |
| 703 | - | end |
| 703 | + | |
| 704 | - | spawn(function() |
| 704 | + | function Damagefunc(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, DecreaseTheStat, DecreaseAmount, DecreaseDuration, ShowDecreasedStat) |
| 705 | - | for i = 1,10 do |
| 705 | + | if hit.Parent == nil then |
| 706 | - | --bl.Transparency = bl.Transparency + (.5/10) |
| 706 | + | return |
| 707 | - | msh23.Scale = msh23.Scale + Vector3.new(.05,.05,.05) |
| 707 | + | end |
| 708 | - | game:service'RunService'.Stepped:wait() |
| 708 | + | h = hit.Parent:FindFirstChild("Humanoid")
|
| 709 | - | end |
| 709 | + | for _, v in pairs(hit.Parent:GetChildren()) do |
| 710 | - | wait(.25) |
| 710 | + | if v:IsA("Humanoid") then
|
| 711 | - | for i = 1,10 do |
| 711 | + | h = v |
| 712 | - | bl.Transparency = bl.Transparency + (.5/10) |
| 712 | + | |
| 713 | - | msh23.Scale = msh23.Scale - Vector3.new(.3,.3,.3) |
| 713 | + | end |
| 714 | - | game:service'RunService'.Stepped:wait() |
| 714 | + | if hit.Name == "Hitbox" and ranged ~= true and hit.Parent ~= m then |
| 715 | - | end |
| 715 | + | StaggerHitAnim.Value = true |
| 716 | - | bl:Destroy() |
| 716 | + | so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1) |
| 717 | - | end) |
| 717 | + | return |
| 718 | - | end) |
| 718 | + | end |
| 719 | - | end |
| 719 | + | if AntiTeamKill.Value == true then |
| 720 | - | if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Name ~= 'Head' then
|
| 720 | + | if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then |
| 721 | - | pcall(function() |
| 721 | + | opponent = game.Players:FindFirstChild(hit.Parent.Name) |
| 722 | - | if hit.Parent:findFirstChild("Humanoid").Health < 1 then return end
|
| 722 | + | |
| 723 | - | local dg = math.random(Min,Max) |
| 723 | + | if opponent ~= nil and opponent.TeamColor == Player.TeamColor then |
| 724 | - | if dg >= 30 then dg = dg + math.random(5,15) end |
| 724 | + | return |
| 725 | - | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - dg |
| 725 | + | |
| 726 | - | flesh:Play() |
| 726 | + | end |
| 727 | - | ShowDamage(hit.Parent, dg, 1, BrickColor.new('Really red'))
|
| 727 | + | if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
|
| 728 | - | end) |
| 728 | + | h = hit.Parent.Parent:FindFirstChild("Humanoid")
|
| 729 | - | end |
| 729 | + | end |
| 730 | - | if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Name == 'Head' then
|
| 730 | + | if hit.Parent.className == "Hat" then |
| 731 | - | pcall(function() |
| 731 | + | hit = hit.Parent.Parent:findFirstChild("Head")
|
| 732 | - | if hit.Parent:findFirstChild("Humanoid").Health < 1 then return end
|
| 732 | + | end |
| 733 | - | local dg = math.random(Min*3,Max*3) |
| 733 | + | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
|
| 734 | - | if dg >= 30 then dg = dg + math.random(5,15) end |
| 734 | + | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
|
| 735 | - | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - dg |
| 735 | + | return |
| 736 | - | flesh:Play() |
| 736 | + | |
| 737 | - | ShowDamage(hit.Parent, dg, 1, BrickColor.new('Really red'))
|
| 737 | + | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health <= 0 then
|
| 738 | - | local bh = NewSound(hit,142347633) |
| 738 | + | return |
| 739 | - | bh:Play() |
| 739 | + | |
| 740 | - | local hh = NewSound(hit,138093488) |
| 740 | + | if hit.Parent:findFirstChild("Stats") ~= nil and hit.Parent.Stats:findFirstChild("StunValue") ~= nil then
|
| 741 | - | bh:Play() |
| 741 | + | hit.Parent.Stats:findFirstChild("StunValue").Value = hit.Parent.Stats:findFirstChild("StunValue").Value + incstun
|
| 742 | - | end) |
| 742 | + | |
| 743 | - | end |
| 743 | + | if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:findFirstChild("StaggerAnim") ~= nil and stagger == true then
|
| 744 | - | if hit.Parent:IsA("Hat") and hit.Parent.Parent:findFirstChild("Humanoid") ~= nil then
|
| 744 | + | hit.Parent.Stats:findFirstChild("StaggerAnim").Value = true
|
| 745 | - | pcall(function() |
| 745 | + | |
| 746 | - | if hit.Parent.Parent:findFirstChild("Humanoid").Health < 1 then return end
|
| 746 | + | if hit.Parent:findFirstChild("Stats") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue").Value == true then
|
| 747 | - | local dg = math.random(Min*3,Max*3) |
| 747 | + | DamageStatLabel(hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1)) |
| 748 | - | if dg >= 30 then dg = dg + math.random(5,15) end |
| 748 | + | so(HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1) |
| 749 | - | hit.Parent.Parent.Humanoid.Health = hit.Parent.Parent.Humanoid.Health - dg |
| 749 | + | if ranged ~= true then |
| 750 | - | flesh:Play() |
| 750 | + | hit.Parent.Stats:findFirstChild("BlockValue").Value = false
|
| 751 | - | ShowDamage(hit.Parent.Parent, dg, 1, BrickColor.new('Really red'))
|
| 751 | + | StaggerAnim.Value = true |
| 752 | - | local bh = NewSound(hit,142347633) |
| 752 | + | end |
| 753 | - | bh:Play() |
| 753 | + | return |
| 754 | - | end) |
| 754 | + | |
| 755 | - | end |
| 755 | + | if DecreaseTheStat ~= nil and hit.Parent:FindFirstChild("Stats") ~= nil then
|
| 756 | - | bulletposition = hitposition |
| 756 | + | if DecreaseTheStat == "Defense" then |
| 757 | - | Bul.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) |
| 757 | + | DecreaseStat(hit.Parent, "Defense", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) |
| 758 | - | Bul:Destroy() |
| 758 | + | elseif DecreaseTheStat == "Damage" then |
| 759 | - | break |
| 759 | + | DecreaseStat(hit.Parent, "Damage", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) |
| 760 | elseif DecreaseTheStat == "Movement" then | |
| 761 | - | Bul.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) |
| 761 | + | DecreaseStat(hit.Parent, "Movement", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) |
| 762 | end | |
| 763 | - | end)) |
| 763 | + | |
| 764 | - | |
| 764 | + | local D = math.random(minim, maxim) * Damage.Value |
| 765 | if hit.Parent:FindFirstChild("Stats") ~= nil then
| |
| 766 | - | |
| 766 | + | if hit.Parent.Stats:FindFirstChild("Defense") then
|
| 767 | - | local hm = 'Standard' |
| 767 | + | if CanPenetrateArmor.Value == true then |
| 768 | - | local MouseDown = false |
| 768 | + | else |
| 769 | D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
| |
| 770 | - | local spd = .6 |
| 770 | + | |
| 771 | - | local lng = 5 |
| 771 | + | elseif hit.Parent.Stats:FindFirstChild("Defense") == nil then
|
| 772 | - | local rcl = 10 |
| 772 | + | end |
| 773 | - | MouseDown = true |
| 773 | + | |
| 774 | - | if DebounceShot == false then |
| 774 | + | if CanCrit.Value == true then |
| 775 | - | DebounceShot = true |
| 775 | + | CritChanceNumber = math.random(1, CritChance.Value) |
| 776 | - | --while MouseDown == true do |
| 776 | + | if CritChanceNumber == CritChance.Value then |
| 777 | - | --wait(.1) |
| 777 | + | D = D * 2 |
| 778 | - | Shoot(false,1500,100,hm) |
| 778 | + | end |
| 779 | - | if Shootin_Arm == 'Right' then |
| 779 | + | |
| 780 | - | spawn(function() |
| 780 | + | D = math.floor(D) |
| 781 | - | UpForce = UpForce + rcl |
| 781 | + | h.Health = h.Health - D |
| 782 | - | for i = 1,lng do |
| 782 | + | if D <= 3 and staggerhit == true then |
| 783 | - | ArmAng1 = clerp(ArmAng1,CF(0,0,0)*Angles(rad(-UpForce),rad(-YRot),0),spd) |
| 783 | + | if ranged ~= true then |
| 784 | - | lRS:wait() |
| 784 | + | StaggerHitAnim.Value = true |
| 785 | end | |
| 786 | - | UpForce = UpForce - rcl |
| 786 | + | if ranged ~= true then |
| 787 | - | for i = 1,lng do |
| 787 | + | so(HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1) |
| 788 | - | ArmAng1 = clerp(ArmAng1,CF(0,0,0)*Angles(rad(-UpForce),rad(-YRot),0),spd) |
| 788 | + | end |
| 789 | - | lRS:wait() |
| 789 | + | elseif D > 3 and ranged ~= true then |
| 790 | so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1) | |
| 791 | end | |
| 792 | - | wait() |
| 792 | + | if D > 2 and D < 20 then |
| 793 | - | Shootin_Arm = 'Left' |
| 793 | + | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then |
| 794 | - | elseif Shootin_Arm == 'Left' then |
| 794 | + | DamageStatLabel(hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254901961, 0, 0)) |
| 795 | - | spawn(function() |
| 795 | + | so("296102734", hit, 1, 1)
|
| 796 | - | UpForce = UpForce + rcl |
| 796 | + | else |
| 797 | - | for i = 1,lng do |
| 797 | + | DamageStatLabel(hit.Parent.Head.CFrame, D, Color3.new(1, 0.8627450980392157, 0)) |
| 798 | - | ArmAng2 = clerp(ArmAng2,CF(0,0,0)*Angles(rad(-UpForce),rad(YRot),0),spd) |
| 798 | + | end |
| 799 | - | lRS:wait() |
| 799 | + | elseif D >= 20 then |
| 800 | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then | |
| 801 | - | UpForce = UpForce - rcl |
| 801 | + | DamageStatLabel(hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254901961, 0, 0)) |
| 802 | - | for i = 1,lng do |
| 802 | + | so("296102734", hit, 1, 1)
|
| 803 | - | ArmAng2 = clerp(ArmAng2,CF(0,0,0)*Angles(rad(-UpForce),rad(YRot),0),spd) |
| 803 | + | else |
| 804 | - | lRS:wait() |
| 804 | + | DamageStatLabel(hit.Parent.Head.CFrame, D, Color3.new(1, 0, 0)) |
| 805 | end | |
| 806 | else | |
| 807 | - | wait() |
| 807 | + | if D <= 2 then |
| 808 | - | Shootin_Arm = 'Right' |
| 808 | + | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then |
| 809 | - | --end |
| 809 | + | DamageStatLabel(hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254901961, 0, 0)) |
| 810 | so("296102734", hit, 1, 1)
| |
| 811 | else | |
| 812 | DamageStatLabel(hit.Parent.Head.CFrame, D, Color3.new(0.8823529411764706, 0.8823529411764706, 0.8823529411764706)) | |
| 813 | - | |
| 813 | + | |
| 814 | - | Mouse.Button1Up:connect(function() |
| 814 | + | else |
| 815 | - | DebounceShot = false |
| 815 | + | end |
| 816 | - | MouseDown = false |
| 816 | + | |
| 817 | if Type == "Normal" then | |
| 818 | - | |
| 818 | + | so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 2) |
| 819 | - | |
| 819 | + | vp = Instance.new("BodyVelocity")
|
| 820 | - | print'Q and E to change Modes' |
| 820 | + | vp.P = 500 |
| 821 | - | |
| 821 | + | vp.maxForce = vt(math.huge, 0, math.huge) |
| 822 | - | |
| 822 | + | if KnockbackType == 1 then |
| 823 | - | Mouse.KeyDown:connect(function(k) |
| 823 | + | vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 |
| 824 | - | local ks = k:lower() |
| 824 | + | elseif KnockbackType == 2 then |
| 825 | - | local kb = k:byte() |
| 825 | + | vp.Velocity = Property.CFrame.lookVector * knockback |
| 826 | - | if ks == 'e' then |
| 826 | + | end |
| 827 | - | if hm == 'Standard' then |
| 827 | + | if knockback > 0 then |
| 828 | - | hm = 'TimeBomb' |
| 828 | + | vp.Parent = hit.Parent.Torso |
| 829 | - | --print(hm) |
| 829 | + | end |
| 830 | - | elseif hm == 'TimeBomb' then |
| 830 | + | game:GetService("Debris"):AddItem(vp, 0.5)
|
| 831 | - | hm = 'BlackHole' |
| 831 | + | elseif Type == "Knockdown" then |
| 832 | - | --print(hm) |
| 832 | + | so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 2) |
| 833 | - | elseif hm == 'BlackHole' then |
| 833 | + | vp = Instance.new("BodyVelocity")
|
| 834 | - | hm = 'Standard' |
| 834 | + | vp.P = 1000 |
| 835 | - | --print(hm) |
| 835 | + | vp.maxForce = vt(0, math.huge, 0) |
| 836 | vp.Velocity = Vector3.new(0, 10, 0) | |
| 837 | - | elseif ks == 'q' then |
| 837 | + | vp.Parent = hit.Parent.Torso |
| 838 | - | if hm == 'Standard' then |
| 838 | + | game:GetService("Debris"):AddItem(vp, 0.25)
|
| 839 | - | hm = 'BlackHole' |
| 839 | + | elseif Type == "Normal2" then |
| 840 | - | --print(hm) |
| 840 | + | so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 0.8) |
| 841 | - | elseif hm == 'BlackHole' then |
| 841 | + | vp = Instance.new("BodyVelocity")
|
| 842 | - | hm = 'TimeBomb' |
| 842 | + | vp.P = 500 |
| 843 | - | --print(hm) |
| 843 | + | vp.maxForce = vt(math.huge, 0, math.huge) |
| 844 | - | elseif hm == 'TimeBomb' then |
| 844 | + | if KnockbackType == 1 then |
| 845 | - | hm = 'Standard' |
| 845 | + | vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 |
| 846 | - | --print(hm) |
| 846 | + | elseif KnockbackType == 2 then |
| 847 | vp.Velocity = Property.CFrame.lookVector * knockback | |
| 848 | end | |
| 849 | if knockback > 0 then | |
| 850 | - | |
| 850 | + | vp.Parent = hit.Parent.Torso |
| 851 | - | MakeAmmo = function(Scale) |
| 851 | + | end |
| 852 | - | local lblSize = 4 |
| 852 | + | game:GetService("Debris"):AddItem(vp, 0.5)
|
| 853 | - | local Gui = Instance.new('ScreenGui',Plr.PlayerGui)
|
| 853 | + | elseif Type == "SuperKnockup" then |
| 854 | - | local Frame = Instance.new('Frame',Gui)
|
| 854 | + | so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 0.8) |
| 855 | - | Frame.Size = UDim2.new(0,151*Scale,0,87*Scale) |
| 855 | + | vp = Instance.new("BodyVelocity")
|
| 856 | - | Frame.Position = UDim2.new(1,-154,1,-90) |
| 856 | + | vp.P = 500 |
| 857 | - | Frame.BorderSizePixel = 0 |
| 857 | + | vp.maxForce = vt(0, math.huge, 0) |
| 858 | - | Frame.ZIndex = 1 |
| 858 | + | vp.Velocity = vt(0, math.random(20, 40), 0) |
| 859 | - | Frame.Draggable = true |
| 859 | + | if knockback > 0 then |
| 860 | - | Frame.BackgroundColor3 = Color3.new(0,0,0) |
| 860 | + | vp.Parent = hit.Parent.Torso |
| 861 | - | Frame.BackgroundTransparency = .5 |
| 861 | + | end |
| 862 | - | UpdateGui = function() |
| 862 | + | game:GetService("Debris"):AddItem(vp, 0.5)
|
| 863 | - | ypcall(function() |
| 863 | + | vp2 = Instance.new("BodyVelocity")
|
| 864 | - | Frame:ClearAllChildren() |
| 864 | + | vp2.P = 500 |
| 865 | - | local Show = Instance.new('TextLabel',Frame)
|
| 865 | + | vp2.maxForce = vt(math.huge, 0, math.huge) |
| 866 | - | Show.BackgroundTransparency = 1 |
| 866 | + | if KnockbackType == 1 then |
| 867 | - | Show.TextColor3 = Color3.new(1,1,1) |
| 867 | + | vp2.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 |
| 868 | - | Show.Size = UDim2.new(.9,0,0,18*Scale) |
| 868 | + | elseif KnockbackType == 2 then |
| 869 | - | Show.Position = UDim2.new(0,5,0,0) |
| 869 | + | vp2.Velocity = Property.CFrame.lookVector * knockback |
| 870 | - | Show.Text = '- '..(CurrentAmmo)..' | '..(CurrentAmmo2)..' -' |
| 870 | + | end |
| 871 | - | Show.FontSize = 'Size24' |
| 871 | + | if knockback > 0 then |
| 872 | - | Show.Font = 'SourceSansBold'; |
| 872 | + | vp2.Parent = hit.Parent.Torso |
| 873 | - | local Show2 = Show:Clone() |
| 873 | + | end |
| 874 | - | Show2.Parent = Frame |
| 874 | + | game:GetService("Debris"):AddItem(vp2, 0.5)
|
| 875 | - | Show2.Position = UDim2.new(0,0,0,40) |
| 875 | + | elseif Type == "RockHit" then |
| 876 | - | Show2.Size = UDim2.new(1,0,0,18) |
| 876 | + | so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 0.8) |
| 877 | - | game:service'RunService'.Stepped:connect(function() |
| 877 | + | rockvelocity = Instance.new("BodyVelocity")
|
| 878 | - | Show2.Text = '[ '..(hm)..' ]' |
| 878 | + | rockvelocity.P = 500 |
| 879 | - | end)end) |
| 879 | + | rockvelocity.maxForce = vt(math.huge, 0, math.huge) |
| 880 | - | for Count = 1,CurrentAmmo do |
| 880 | + | rockvelocity.Velocity = hit.Position * knockback - Property.Position |
| 881 | - | local Label = Instance.new('TextLabel',Frame)
|
| 881 | + | if knockback > 0 then |
| 882 | - | Label.Size = UDim2.new(0,lblSize*Scale,0,17*Scale) |
| 882 | + | rockvelocity.Parent = hit.Parent.Torso |
| 883 | - | Label.Position = UDim2.new(0,(lblSize+1)+((lblSize+2)*(Count-1))*Scale,0,20*Scale) |
| 883 | + | end |
| 884 | - | Label.Text = '' |
| 884 | + | game:GetService("Debris"):AddItem(rockvelocity, 0.5)
|
| 885 | - | Label.BackgroundTransparency = 0 |
| 885 | + | |
| 886 | - | Label.BorderSizePixel = 0 |
| 886 | + | DebounceHit = Instance.new("BoolValue", hit.Parent)
|
| 887 | - | game:service'RunService'.Stepped:connect(function() |
| 887 | + | DebounceHit.Name = "DebounceHit" |
| 888 | - | if hm == 'Standard' then |
| 888 | + | DebounceHit.Value = true |
| 889 | - | for i = 1,1,.05 do |
| 889 | + | game:GetService("Debris"):AddItem(DebounceHit, Delay)
|
| 890 | - | Label.BackgroundColor3 = Color3.new(i,i,i) |
| 890 | + | end |
| 891 | - | game:service'RunService'.Stepped:wait() |
| 891 | + | |
| 892 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat) | |
| 893 | - | elseif hm == 'TimeBomb' then |
| 893 | + | for _, c in pairs(workspace:GetChildren()) do |
| 894 | - | for i = 1,1,.05 do |
| 894 | + | local hum = c:FindFirstChild("Humanoid")
|
| 895 | - | Label.BackgroundColor3 = Color3.new(i,0,0) |
| 895 | + | local head |
| 896 | - | game:service'RunService'.Stepped:wait() |
| 896 | + | if hum ~= nil then |
| 897 | head = c:FindFirstChild("Torso")
| |
| 898 | - | elseif hm == 'BlackHole' then |
| 898 | + | if head ~= nil then |
| 899 | - | for i = 1,1,.05 do |
| 899 | + | local targ = head.Position - Part.Position |
| 900 | - | Label.BackgroundColor3 = Color3.new(i,1-i,i) |
| 900 | + | local mag = targ.magnitude |
| 901 | - | game:service'RunService'.Stepped:wait() |
| 901 | + | if magni >= mag and c.Name ~= Player.Name then |
| 902 | - | end;end;end)end; |
| 902 | + | Damagefunc(head, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat) |
| 903 | - | -------------------------------------------------|| |
| 903 | + | |
| 904 | - | for Count = 1,CurrentAmmo2 do |
| 904 | + | end |
| 905 | - | local Label = Instance.new('TextLabel',Frame)
|
| 905 | + | for _, d in pairs(c:GetChildren()) do |
| 906 | - | Label.Size = UDim2.new(0,lblSize*Scale,0,17*Scale) |
| 906 | + | if d.ClassName == "Model" and ranged ~= true then |
| 907 | - | Label.Position = UDim2.new(0,(lblSize+1)+((lblSize+2)*(Count-1))*Scale,0,62*(Scale)) |
| 907 | + | head = d:FindFirstChild("Hitbox")
|
| 908 | - | Label.Text = '' |
| 908 | + | if head ~= nil then |
| 909 | - | Label.BackgroundTransparency = 0 |
| 909 | + | local targ = head.Position - Part.Position |
| 910 | - | Label.BorderSizePixel = 0 |
| 910 | + | local mag = targ.magnitude |
| 911 | - | game:service'RunService'.Stepped:connect(function() |
| 911 | + | if magni >= mag and c.Name ~= Player.Name then |
| 912 | - | if hm == 'Standard' then |
| 912 | + | local hitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt()) |
| 913 | - | for i = 1,1,.05 do |
| 913 | + | hitrefpart.Anchored = true |
| 914 | - | Label.BackgroundColor3 = Color3.new(i,i,i) |
| 914 | + | hitrefpart.CFrame = cf(head.Position) |
| 915 | - | game:service'RunService'.Stepped:wait() |
| 915 | + | so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hitrefpart, 1, 1) |
| 916 | StaggerHitAnim.Value = true | |
| 917 | - | elseif hm == 'TimeBomb' then |
| 917 | + | |
| 918 | - | for i = 1,1,.05 do |
| 918 | + | end |
| 919 | - | Label.BackgroundColor3 = Color3.new(i,0,0) |
| 919 | + | |
| 920 | - | game:service'RunService'.Stepped:wait() |
| 920 | + | end |
| 921 | end | |
| 922 | - | elseif hm == 'BlackHole' then |
| 922 | + | end |
| 923 | - | for i = 1,1,.05 do |
| 923 | + | |
| 924 | - | Label.BackgroundColor3 = Color3.new(i,1-i,i) |
| 924 | + | function Lightning(p0, p1, tym, ofs, brickcolor, material, th, tra, last) |
| 925 | - | game:service'RunService'.Stepped:wait() |
| 925 | + | local magz = p0 - p1.magnitude |
| 926 | - | end;end;end)end; |
| 926 | + | local curpos = p0 |
| 927 | - | end; |
| 927 | + | local trz = {
|
| 928 | - | UpdateGui()end; |
| 928 | + | -ofs, |
| 929 | - | |
| 929 | + | ofs |
| 930 | - | MakeAmmo(1) |
| 930 | + | } |
| 931 | - | |
| 931 | + | for i = 1, tym do |
| 932 | - | local sine,change = 0,1 |
| 932 | + | do |
| 933 | - | lRS:connect(function() |
| 933 | + | local li = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt(th, th, magz / tym)) |
| 934 | - | --//Welding |
| 934 | + | li.Anchored = true |
| 935 | - | --//Rot |
| 935 | + | local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) |
| 936 | - | spawn(function() |
| 936 | + | local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz |
| 937 | - | local CF = CFrame.new((torso.CFrame*CFrame.new(0,-.5,0)).p,Mouse.Hit.p) * CFrame.Angles(math.pi/2,0,0) |
| 937 | + | if tym == i then |
| 938 | - | local a,b,c = (CF:inverse()*torso.CFrame):toEulerAnglesXYZ() |
| 938 | + | local magz2 = curpos - p1.magnitude |
| 939 | - | raw.C1 = CFrame.new(0,.5,0)*ArmAng1*CFrame.Angles(a,b,c) |
| 939 | + | li.Size = vt(th, th, magz2) |
| 940 | li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2) | |
| 941 | - | |
| 941 | + | else |
| 942 | - | spawn(function() |
| 942 | + | li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2) |
| 943 | - | local CF = CFrame.new((torso.CFrame*CFrame.new(0,-.5,0)).p,Mouse.Hit.p) * CFrame.Angles(math.pi/2,0,0) |
| 943 | + | end |
| 944 | - | local a,b,c = (CF:inverse()*torso.CFrame):toEulerAnglesXYZ() |
| 944 | + | curpos = li.CFrame * cf(0, 0, magz / tym / 2).p |
| 945 | - | law.C1 = CFrame.new(0,.5,0)*ArmAng2*CFrame.Angles(a,b,c) |
| 945 | + | game.Debris:AddItem(li, last) |
| 946 | coroutine.resume(coroutine.create(function() | |
| 947 | - | |
| 947 | + | while li.Transparency ~= 1 do |
| 948 | for i = 0, 1, last do | |
| 949 | - | |
| 949 | + | hbwait() |
| 950 | - | --// By: SavageMunkey |
| 950 | + | li.Transparency = li.Transparency + 0.1 / last |
| 951 | end | |
| 952 | end | |
| 953 | end)) | |
| 954 | end | |
| 955 | end | |
| 956 | end | |
| 957 | function MagicRing(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 958 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 959 | prt.Anchored = true | |
| 960 | prt.CFrame = cframe | |
| 961 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 962 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 963 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 964 | for i = 0, 1, delay do | |
| 965 | hbwait() | |
| 966 | Part.CFrame = Part.CFrame | |
| 967 | Part.Transparency = i | |
| 968 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 969 | end | |
| 970 | Part.Parent = nil | |
| 971 | end), prt, msh) | |
| 972 | end | |
| 973 | function MagicWave(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 974 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 975 | prt.Anchored = true | |
| 976 | prt.CFrame = cframe | |
| 977 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 978 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 979 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 980 | for i = 0, 1, delay do | |
| 981 | hbwait() | |
| 982 | Part.CFrame = Part.CFrame | |
| 983 | Part.Transparency = i | |
| 984 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 985 | end | |
| 986 | Part.Parent = nil | |
| 987 | end), prt, msh) | |
| 988 | end | |
| 989 | function MagicBlock(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 990 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 991 | prt.Anchored = true | |
| 992 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 993 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 994 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 995 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 996 | for i = 0, 1, delay do | |
| 997 | hbwait() | |
| 998 | if rotate == true then | |
| 999 | Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1000 | else | |
| 1001 | end | |
| 1002 | Part.Transparency = i | |
| 1003 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1004 | end | |
| 1005 | Part.Parent = nil | |
| 1006 | end), prt, msh) | |
| 1007 | end | |
| 1008 | function MagicBlock2(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1009 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1010 | prt.Anchored = true | |
| 1011 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1012 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1013 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1014 | CF = prt.CFrame | |
| 1015 | num = math.random(5, 20) | |
| 1016 | coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num) | |
| 1017 | for i = 0, 1, delay do | |
| 1018 | hbwait() | |
| 1019 | if rotate == true then | |
| 1020 | Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1021 | else | |
| 1022 | Part.CFrame = CF2 * cf(0, i * Num, 0) | |
| 1023 | end | |
| 1024 | Part.Transparency = i | |
| 1025 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1026 | end | |
| 1027 | Part.Parent = nil | |
| 1028 | end), prt, msh, CF, num) | |
| 1029 | end | |
| 1030 | function MagicCylinder(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1031 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1032 | prt.Anchored = true | |
| 1033 | prt.CFrame = cframe | |
| 1034 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1035 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1036 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1037 | for i = 0, 1, delay do | |
| 1038 | hbwait() | |
| 1039 | Part.Transparency = i | |
| 1040 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1041 | end | |
| 1042 | Part.Parent = nil | |
| 1043 | end), prt, msh) | |
| 1044 | end | |
| 1045 | function MagicCircle(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1046 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1047 | prt.Anchored = true | |
| 1048 | prt.CFrame = cframe | |
| 1049 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1050 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1051 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1052 | for i = 0, 1, delay do | |
| 1053 | hbwait() | |
| 1054 | Part.Transparency = i | |
| 1055 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1056 | end | |
| 1057 | Part.Parent = nil | |
| 1058 | end), prt, msh) | |
| 1059 | end | |
| 1060 | function MagicHead(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1061 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1062 | prt.Anchored = true | |
| 1063 | prt.CFrame = cframe | |
| 1064 | local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1065 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1066 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1067 | for i = 0, 1, delay do | |
| 1068 | hbwait() | |
| 1069 | Part.Transparency = i | |
| 1070 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1071 | end | |
| 1072 | Part.Parent = nil | |
| 1073 | end), prt, msh) | |
| 1074 | end | |
| 1075 | function BreakEffect(brickcolor, material, rotate, cframe, x1, y1, z1, delay) | |
| 1076 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1077 | prt.Anchored = true | |
| 1078 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1079 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1080 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1081 | coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb) | |
| 1082 | CF = Part.CFrame | |
| 1083 | Numbb = 0 | |
| 1084 | randnumb = math.random() - math.random() | |
| 1085 | for i = 0, 1, delay do | |
| 1086 | hbwait() | |
| 1087 | CF = CF * cf(0, 1, 0) | |
| 1088 | if rotate == true then | |
| 1089 | Part.CFrame = CF * angles(Numbb, 0, 0) | |
| 1090 | elseif rotate == false then | |
| 1091 | Part.CFrame = CF | |
| 1092 | end | |
| 1093 | Part.Transparency = i | |
| 1094 | Numbb = Numbb + randnumb | |
| 1095 | end | |
| 1096 | Part.Parent = nil | |
| 1097 | end), prt, CF, Numbb, randnumb) | |
| 1098 | end | |
| 1099 | function ElecEffect(brickcolor, material, cf, x, y, z, delay) | |
| 1100 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1101 | prt.Anchored = true | |
| 1102 | prt.CFrame = cf | |
| 1103 | xval = math.random() | |
| 1104 | yval = math.random() | |
| 1105 | zval = math.random() | |
| 1106 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
| |
| 1107 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1108 | coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal) | |
| 1109 | for i = 0, 1, delay do | |
| 1110 | hbwait() | |
| 1111 | Part.CFrame = Part.CFrame | |
| 1112 | xvaal = xvaal - 0.1 * (delay * 10) | |
| 1113 | yvaal = yvaal - 0.1 * (delay * 10) | |
| 1114 | zvaal = zvaal - 0.1 * (delay * 10) | |
| 1115 | Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal) | |
| 1116 | Part.Transparency = i | |
| 1117 | end | |
| 1118 | Part.Parent = nil | |
| 1119 | end), prt, msh, xval, yval, zval) | |
| 1120 | end | |
| 1121 | function TrailEffect(brickcolor, material, currentcf, oldcf, meshtype, reflectance, size, x, y, z, delay) | |
| 1122 | local prt = part(3, Effects, material, reflectance, 0, brickcolor, "Effect", vt()) | |
| 1123 | prt.Anchored = true | |
| 1124 | prt.CFrame = currentcf | |
| 1125 | local TheMeshType = "BlockMesh" | |
| 1126 | if meshtype == "Cylinder" then | |
| 1127 | TheMeshType = "CylinderMesh" | |
| 1128 | end | |
| 1129 | local msh = mesh(TheMeshType, prt, "", "", vt(0, 0, 0), vt()) | |
| 1130 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1131 | local magnitudecframe = currentcf.p - oldcf.p.magnitude | |
| 1132 | prt.Size = Vector3.new(1, magnitudecframe, 1) | |
| 1133 | prt.CFrame = cf((currentcf.p + oldcf.p) / 2, oldcf.p) * angles(math.rad(90), 0, 0) | |
| 1134 | msh.Scale = vt(0 + size, 1, 0 + size) | |
| 1135 | coroutine.resume(coroutine.create(function(Part, Mesh, TheCurrentCFrame, TheLastCFrame) | |
| 1136 | for i = 0, 1, delay do | |
| 1137 | hbwait() | |
| 1138 | Part.Transparency = i | |
| 1139 | Mesh.Scale = Mesh.Scale + vt(x, y, z) | |
| 1140 | end | |
| 1141 | Part.Parent = nil | |
| 1142 | end), prt, msh, currentcf, oldcf) | |
| 1143 | end | |
| 1144 | function ClangEffect(brickcolor, material, cframe, angle, duration, size, power, reflectance, x, y, z, delay) | |
| 1145 | local prt = part(3, Effects, material, 0, 1, brickcolor, "Effect", vt()) | |
| 1146 | prt.Anchored = true | |
| 1147 | prt.CFrame = cframe | |
| 1148 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(0, 0, 0))
| |
| 1149 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1150 | local TheLastPoint = cframe | |
| 1151 | coroutine.resume(coroutine.create(function(Part) | |
| 1152 | for i = 1, duration do | |
| 1153 | hbwait() | |
| 1154 | Part.CFrame = Part.CFrame * angles(math.rad(angle), 0, 0) * cf(0, power, 0) | |
| 1155 | TrailEffect(brickcolor, material, Part.CFrame, TheLastPoint, "Cylinder", reflectance, size, x, y, z, delay) | |
| 1156 | TheLastPoint = Part.CFrame | |
| 1157 | end | |
| 1158 | Part.Parent = nil | |
| 1159 | end), prt) | |
| 1160 | end | |
| 1161 | function MagicCone(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1162 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1163 | prt.Anchored = true | |
| 1164 | prt.CFrame = cframe | |
| 1165 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1778999", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1166 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1167 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1168 | for i = 0, 1, delay do | |
| 1169 | hbwait() | |
| 1170 | Part.Transparency = i | |
| 1171 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1172 | end | |
| 1173 | Part.Parent = nil | |
| 1174 | end), prt, msh) | |
| 1175 | end | |
| 1176 | function MagicFlatCone(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1177 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1178 | prt.Anchored = true | |
| 1179 | prt.CFrame = cframe | |
| 1180 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1033714", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1181 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1182 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1183 | for i = 0, 1, delay do | |
| 1184 | hbwait() | |
| 1185 | Part.Transparency = i | |
| 1186 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1187 | end | |
| 1188 | Part.Parent = nil | |
| 1189 | end), prt, msh) | |
| 1190 | end | |
| 1191 | function MagicSpikedCrown(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1192 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1193 | prt.Anchored = true | |
| 1194 | prt.CFrame = cframe | |
| 1195 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1323306", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1196 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1197 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1198 | for i = 0, 1, delay do | |
| 1199 | hbwait() | |
| 1200 | Part.Transparency = i | |
| 1201 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1202 | end | |
| 1203 | Part.Parent = nil | |
| 1204 | end), prt, msh) | |
| 1205 | end | |
| 1206 | function MagicCrown(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1207 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1208 | prt.Anchored = true | |
| 1209 | prt.CFrame = cframe | |
| 1210 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1078075", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1211 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1212 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1213 | for i = 0, 1, delay do | |
| 1214 | hbwait() | |
| 1215 | Part.Transparency = i | |
| 1216 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1217 | end | |
| 1218 | Part.Parent = nil | |
| 1219 | end), prt, msh) | |
| 1220 | end | |
| 1221 | function MagicSkull(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1222 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1223 | prt.Anchored = true | |
| 1224 | prt.CFrame = cframe | |
| 1225 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1226 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1227 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1228 | for i = 0, 1, delay do | |
| 1229 | hbwait() | |
| 1230 | Part.Transparency = i | |
| 1231 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1232 | end | |
| 1233 | Part.Parent = nil | |
| 1234 | end), prt, msh) | |
| 1235 | end | |
| 1236 | local startequipped = false | |
| 1237 | local startequippedwithequipanimation = true | |
| 1238 | local disableanimator = true | |
| 1239 | local disableanimate = false | |
| 1240 | local alternatewalk = false | |
| 1241 | local hidemenu = false | |
| 1242 | local allowmenutofunction = true | |
| 1243 | local allowabilitiestofunction = true | |
| 1244 | local canunequiporequip = false | |
| 1245 | local allowidle = false | |
| 1246 | local allowwalking = false | |
| 1247 | local disablemovingarms = false | |
| 1248 | local usemotorsinsteadofwelds = false | |
| 1249 | local leftarm = false | |
| 1250 | local rightarm = false | |
| 1251 | local allowhopperbin = false | |
| 1252 | local showstunbar = false | |
| 1253 | local walkspeeddependsonmovementvalue = true | |
| 1254 | local alternatemanaregensystem = true | |
| 1255 | local showhealthmanaandstunnumbers = true | |
| 1256 | local changebarcolorsifnotenoughmana = false | |
| 1257 | local disablejump = false | |
| 1258 | if hidemenu == true then | |
| 1259 | for _, v in pairs(scrn:GetChildren()) do | |
| 1260 | if v.ClassName == "Frame" or v.ClassName == "TextLabel" then | |
| 1261 | v.Visible = false | |
| 1262 | end | |
| 1263 | end | |
| 1264 | end | |
| 1265 | Humanoid.Changed:connect(function(Jump) | |
| 1266 | if Jump == "Jump" and disablejump == true then | |
| 1267 | Humanoid.Jump = false | |
| 1268 | end | |
| 1269 | end) | |
| 1270 | if allowmenutofunction == true then | |
| 1271 | for _, v in pairs(scrn:GetChildren()) do | |
| 1272 | if v.ClassName == "Frame" then | |
| 1273 | for _, b in pairs(v:GetChildren()) do | |
| 1274 | if b.ClassName == "TextLabel" then | |
| 1275 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1276 | wait(menuupdatespeed) | |
| 1277 | for i = 1, 0, -0.1 do | |
| 1278 | hbwait() | |
| 1279 | TheTextLabel.TextTransparency = i | |
| 1280 | TheTextLabel.TextStrokeTransparency = i | |
| 1281 | end | |
| 1282 | TheTextLabel.TextTransparency = 0 | |
| 1283 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1284 | end), b) | |
| 1285 | if showstats == true then | |
| 1286 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1287 | wait(menuupdatespeed) | |
| 1288 | for i = 1, 0, -0.1 do | |
| 1289 | hbwait() | |
| 1290 | TheTextLabel.TextTransparency = i | |
| 1291 | TheTextLabel.TextStrokeTransparency = i | |
| 1292 | end | |
| 1293 | TheTextLabel.TextTransparency = 0 | |
| 1294 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1295 | end), b) | |
| 1296 | end | |
| 1297 | if showstunbar == true then | |
| 1298 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1299 | wait(menuupdatespeed) | |
| 1300 | for i = 1, 0, -0.1 do | |
| 1301 | hbwait() | |
| 1302 | TheTextLabel.TextTransparency = i | |
| 1303 | TheTextLabel.TextStrokeTransparency = i | |
| 1304 | end | |
| 1305 | TheTextLabel.TextTransparency = 0 | |
| 1306 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1307 | end), b) | |
| 1308 | end | |
| 1309 | if allowabilitiestofunction == true then | |
| 1310 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1311 | wait(menuupdatespeed) | |
| 1312 | for i = 1, 0, -0.1 do | |
| 1313 | hbwait() | |
| 1314 | TheTextLabel.TextTransparency = i | |
| 1315 | TheTextLabel.TextStrokeTransparency = i | |
| 1316 | end | |
| 1317 | TheTextLabel.TextTransparency = 0 | |
| 1318 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1319 | end), b) | |
| 1320 | end | |
| 1321 | end | |
| 1322 | end | |
| 1323 | end | |
| 1324 | end | |
| 1325 | end | |
| 1326 | if allowhopperbin == true then | |
| 1327 | if script.Parent.className ~= "HopperBin" then | |
| 1328 | Tool = Instance.new("HopperBin")
| |
| 1329 | Tool.Parent = Backpack | |
| 1330 | Tool.Name = "Weapon Name" | |
| 1331 | script.Parent = Tool | |
| 1332 | end | |
| 1333 | Bin = script.Parent | |
| 1334 | end | |
| 1335 | if disablemovingarms == true then | |
| 1336 | RWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1337 | LWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1338 | RSH, LSH = nil, nil | |
| 1339 | if usemotorsinsteadofwelds == true then | |
| 1340 | RW = Instance.new("Motor")
| |
| 1341 | LW = Instance.new("Motor")
| |
| 1342 | else | |
| 1343 | RW = Instance.new("Weld")
| |
| 1344 | LW = Instance.new("Weld")
| |
| 1345 | end | |
| 1346 | RW.Name = "Right Shoulder" | |
| 1347 | LW.Name = "Left Shoulder" | |
| 1348 | RSH = Torso["Right Shoulder"] | |
| 1349 | LSH = Torso["Left Shoulder"] | |
| 1350 | RSH.Parent = Torso | |
| 1351 | LSH.Parent = Torso | |
| 1352 | RW.Name = "Right Shoulder" | |
| 1353 | RW.Part0 = Torso | |
| 1354 | RW.C0 = cf(1.5, 0.5, 0) | |
| 1355 | RW.C1 = cf(0, 0.5, 0) | |
| 1356 | RW.Part1 = Character["Right Arm"] | |
| 1357 | RW.Parent = nil | |
| 1358 | LW.Name = "Left Shoulder" | |
| 1359 | LW.Part0 = Torso | |
| 1360 | LW.C0 = cf(-1.5, 0.5, 0) | |
| 1361 | LW.C1 = cf(0, 0.5, 0) | |
| 1362 | LW.Part1 = Character["Left Arm"] | |
| 1363 | LW.Parent = nil | |
| 1364 | else | |
| 1365 | RW = Torso["Right Shoulder"] | |
| 1366 | LW = Torso["Left Shoulder"] | |
| 1367 | RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) | |
| 1368 | LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) | |
| 1369 | end | |
| 1370 | if allowidle == true then | |
| 1371 | coroutine.resume(coroutine.create(function() | |
| 1372 | while true do | |
| 1373 | for i = 0, 1, 0.08 do | |
| 1374 | wait() | |
| 1375 | idleangle = idleangle + 0.005 * idlen | |
| 1376 | idlen = idlen - 0.1 | |
| 1377 | end | |
| 1378 | idlen = 0 | |
| 1379 | for i = 0, 1, 0.08 do | |
| 1380 | wait() | |
| 1381 | idleangle = idleangle - 0.005 * idlen | |
| 1382 | idlen = idlen - 0.1 | |
| 1383 | end | |
| 1384 | idlen = 0 | |
| 1385 | idleangle = 0 | |
| 1386 | end | |
| 1387 | end)) | |
| 1388 | end | |
| 1389 | if startequipped == true then | |
| 1390 | for _, v in pairs(m:GetChildren()) do | |
| 1391 | if v.ClassName == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Handle" then | |
| 1392 | v.Transparency = 0 | |
| 1393 | end | |
| 1394 | end | |
| 1395 | elseif startequippedwithequipanimation == true then | |
| 1396 | for _, v in pairs(m:GetChildren()) do | |
| 1397 | if v.ClassName == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Handle" then | |
| 1398 | coroutine.resume(coroutine.create(function(Part) | |
| 1399 | for i = 1, 0, -0.1 do | |
| 1400 | hbwait() | |
| 1401 | Part.Transparency = i | |
| 1402 | end | |
| 1403 | Part.Transparency = 0 | |
| 1404 | end), v) | |
| 1405 | end | |
| 1406 | end | |
| 1407 | end | |
| 1408 | function equipanim() | |
| 1409 | attack = true | |
| 1410 | Movement.Value = Movement.Value - 0.1 | |
| 1411 | Defense.Value = Defense.Value + 0.4 | |
| 1412 | so("346134880", RightArm, 0.5, 1)
| |
| 1413 | so("346134880", LeftArm, 0.5, 1)
| |
| 1414 | for i = 0, 1, 0.06 / animationspeed do | |
| 1415 | hbwait() | |
| 1416 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1417 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1418 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-45)) * RWC0, 0.3 / animationspeed) | |
| 1419 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(45)) * LWC0, 0.3 / animationspeed) | |
| 1420 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1421 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1422 | end | |
| 1423 | for i = 0, 1, 0.06 / animationspeed do | |
| 1424 | hbwait() | |
| 1425 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 1426 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(1.25), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 1427 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.45 / animationspeed) | |
| 1428 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.45 / animationspeed) | |
| 1429 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 1430 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 1431 | end | |
| 1432 | attack = false | |
| 1433 | end | |
| 1434 | function unequipanim() | |
| 1435 | attack = true | |
| 1436 | for i = 0, 1, 0.08 / animationspeed do | |
| 1437 | hbwait() | |
| 1438 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1439 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1440 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1441 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1442 | RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1443 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1444 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1445 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1446 | end | |
| 1447 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 1) | |
| 1448 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 1) | |
| 1449 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 1) | |
| 1450 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 1) | |
| 1451 | RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 1) | |
| 1452 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 1) | |
| 1453 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1) | |
| 1454 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1) | |
| 1455 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1) | |
| 1456 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1) | |
| 1457 | Movement.Value = Movement.Value + 0.1 | |
| 1458 | Defense.Value = Defense.Value - 0.4 | |
| 1459 | attack = false | |
| 1460 | end | |
| 1461 | if startequipped == true then | |
| 1462 | equipped = true | |
| 1463 | if disableanimate == true then | |
| 1464 | Animate.Disabled = true | |
| 1465 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1466 | idleanimation:Play() | |
| 1467 | end | |
| 1468 | if disableanimator == true then | |
| 1469 | Animator.Parent = nil | |
| 1470 | end | |
| 1471 | if disablemovingarms == true then | |
| 1472 | RW.Parent = Torso | |
| 1473 | LW.Parent = Torso | |
| 1474 | RSH.Parent = nil | |
| 1475 | LSH.Parent = nil | |
| 1476 | end | |
| 1477 | Movement.Value = Movement.Value - 0.1 | |
| 1478 | Defense.Value = Defense.Value + 0.4 | |
| 1479 | elseif startequippedwithequipanimation == true then | |
| 1480 | equipped = true | |
| 1481 | if disableanimate == true then | |
| 1482 | Animate.Disabled = true | |
| 1483 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1484 | idleanimation:Play() | |
| 1485 | end | |
| 1486 | if disableanimator == true then | |
| 1487 | Animator.Parent = nil | |
| 1488 | end | |
| 1489 | if disablemovingarms == true then | |
| 1490 | RW.Parent = Torso | |
| 1491 | LW.Parent = Torso | |
| 1492 | RSH.Parent = nil | |
| 1493 | LSH.Parent = nil | |
| 1494 | end | |
| 1495 | coroutine.resume(coroutine.create(function() | |
| 1496 | hbwait() | |
| 1497 | equipanim() | |
| 1498 | end)) | |
| 1499 | end | |
| 1500 | function StaggerHit() | |
| 1501 | attack = true | |
| 1502 | for i = 1, math.random(2, 4) do | |
| 1503 | ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
| |
| 1504 | end | |
| 1505 | for i = 0, 1, 0.1 / animationspeed do | |
| 1506 | hbwait() | |
| 1507 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3 / animationspeed) | |
| 1508 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1509 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-30), math.rad(0), math.rad(60)) * angles(math.rad(0), math.rad(-30), math.rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1510 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)) * angles(math.rad(0), math.rad(20), math.rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1511 | RH.C0 = clerp(RH.C0, cf(1, -0.9 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3 / animationspeed) | |
| 1512 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(10)), 0.3 / animationspeed) | |
| 1513 | if StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1514 | break | |
| 1515 | end | |
| 1516 | end | |
| 1517 | attack = false | |
| 1518 | end | |
| 1519 | function Stagger() | |
| 1520 | attack = true | |
| 1521 | disablejump = true | |
| 1522 | for i = 1, math.random(2, 4) do | |
| 1523 | ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
| |
| 1524 | end | |
| 1525 | attacktype = 1 | |
| 1526 | local staggervelocity = Instance.new("BodyVelocity", Torso)
| |
| 1527 | staggervelocity.P = 500 | |
| 1528 | staggervelocity.maxForce = vt(math.huge, 0, math.huge) | |
| 1529 | if Rooted.Value == false then | |
| 1530 | staggervelocity.Velocity = RootPart.CFrame.lookVector * -25 | |
| 1531 | end | |
| 1532 | for i = 0, 1, 0.35 / animationspeed do | |
| 1533 | hbwait() | |
| 1534 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + idleangle) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3 / animationspeed) | |
| 1535 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(35)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1536 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(20), math.rad(-30), math.rad(40)) * RWC0, 0.3 / animationspeed) | |
| 1537 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(10), math.rad(5), math.rad(-20)) * LWC0, 0.3 / animationspeed) | |
| 1538 | RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, -0.25) * angles(math.rad(0), math.rad(100), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(40)), 0.3 / animationspeed) | |
| 1539 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(-60), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(10)), 0.3 / animationspeed) | |
| 1540 | end | |
| 1541 | for i = 0, 1, 0.2 / animationspeed do | |
| 1542 | hbwait() | |
| 1543 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 + idleangle) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3 / animationspeed) | |
| 1544 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(35)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1545 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(20), math.rad(-30), math.rad(40)) * RWC0, 0.3 / animationspeed) | |
| 1546 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(10), math.rad(5), math.rad(-20)) * LWC0, 0.3 / animationspeed) | |
| 1547 | RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, -0.25) * angles(math.rad(0), math.rad(100), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(40)), 0.3 / animationspeed) | |
| 1548 | LH.C0 = clerp(LH.C0, cf(-1, -0.9 - idleangle, 0.25) * angles(math.rad(0), math.rad(-60), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(30)), 0.3 / animationspeed) | |
| 1549 | end | |
| 1550 | staggervelocity:Destroy() | |
| 1551 | for i = 0, 1, 0.015 / animationspeed do | |
| 1552 | hbwait() | |
| 1553 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-20)) * angles(math.rad(-5), math.rad(-5), math.rad(0)), 0.3 / animationspeed) | |
| 1554 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(20)) * angles(math.rad(0), math.rad(5), math.rad(0)), 0.3 / animationspeed) | |
| 1555 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * angles(math.rad(0), math.rad(-20), math.rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1556 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-10)) * angles(math.rad(0), math.rad(20), math.rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1557 | RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(70)) * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3 / animationspeed) | |
| 1558 | LH.C0 = clerp(LH.C0, cf(-1, 0.4 - idleangle, -0.5) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.3 / animationspeed) | |
| 1559 | if StunAnim.Value == true then | |
| 1560 | break | |
| 1561 | end | |
| 1562 | end | |
| 1563 | attacktype = 1 | |
| 1564 | disablejump = false | |
| 1565 | attack = false | |
| 1566 | end | |
| 1567 | function Stun() | |
| 1568 | attack = true | |
| 1569 | disablejump = true | |
| 1570 | attacktype = 1 | |
| 1571 | DamageStatLabel(Head.CFrame, "Stunned!", Color3.new(1, 1, 0)) | |
| 1572 | for i = 0, 1, 0.4 / animationspeed do | |
| 1573 | hbwait() | |
| 1574 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(15), math.rad(0), math.rad(-160)), 0.3 / animationspeed) | |
| 1575 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1576 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(70), math.rad(0), math.rad(15)) * RWC0, 0.3 / animationspeed) | |
| 1577 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(70), math.rad(0), math.rad(-15)) * LWC0, 0.3 / animationspeed) | |
| 1578 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.3 / animationspeed) | |
| 1579 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.3 / animationspeed) | |
| 1580 | end | |
| 1581 | for i = 0, 1, 0.4 / animationspeed do | |
| 1582 | hbwait() | |
| 1583 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5 + idleangle) * angles(math.rad(45), math.rad(0), math.rad(-170)), 0.3 / animationspeed) | |
| 1584 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-30)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1585 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(45)) * RWC0, 0.3 / animationspeed) | |
| 1586 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(-45)) * LWC0, 0.3 / animationspeed) | |
| 1587 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-40)), 0.3 / animationspeed) | |
| 1588 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.3 / animationspeed) | |
| 1589 | end | |
| 1590 | for i = 0, 1, 0.4 / animationspeed do | |
| 1591 | hbwait() | |
| 1592 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1 + idleangle) * angles(math.rad(75), math.rad(0), math.rad(-180)), 0.3 / animationspeed) | |
| 1593 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-60)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1594 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(75)) * RWC0, 0.3 / animationspeed) | |
| 1595 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-45), math.rad(0), math.rad(-75)) * LWC0, 0.3 / animationspeed) | |
| 1596 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-40)), 0.3 / animationspeed) | |
| 1597 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-30)), 0.3 / animationspeed) | |
| 1598 | end | |
| 1599 | gyro = Instance.new("BodyGyro")
| |
| 1600 | gyro.Parent = nil | |
| 1601 | gyro.P = 10000000 | |
| 1602 | gyro.D = 1000 | |
| 1603 | gyro.MaxTorque = vt(10000000, 10000000, 10000000) | |
| 1604 | gyro.cframe = RootPart.CFrame | |
| 1605 | for i = 1, 70 * animationspeed do | |
| 1606 | hbwait() | |
| 1607 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5 + idleangle) * angles(math.rad(90), math.rad(0), math.rad(-180)), 0.3 / animationspeed) | |
| 1608 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1609 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(-10), math.rad(90)) * RWC0, 0.3 / animationspeed) | |
| 1610 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-90), math.rad(0), math.rad(-90)) * LWC0, 0.3 / animationspeed) | |
| 1611 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.2) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1612 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-100), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1613 | end | |
| 1614 | for i = 0, 1, 0.5 / animationspeed do | |
| 1615 | hbwait() | |
| 1616 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1 + idleangle) * angles(math.rad(90), math.rad(0), math.rad(-180)), 0.3 / animationspeed) | |
| 1617 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1618 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(-10), math.rad(120)) * RWC0, 0.3 / animationspeed) | |
| 1619 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-90), math.rad(0), math.rad(-120)) * LWC0, 0.3 / animationspeed) | |
| 1620 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.2) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3 / animationspeed) | |
| 1621 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-100), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3 / animationspeed) | |
| 1622 | end | |
| 1623 | for i = 0, 1, 0.15 / animationspeed do | |
| 1624 | hbwait() | |
| 1625 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5 + idleangle) * angles(math.rad(30), math.rad(0), math.rad(120)), 0.3 / animationspeed) | |
| 1626 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1627 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)) * RWC0, 0.3 / animationspeed) | |
| 1628 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(20)) * LWC0, 0.3 / animationspeed) | |
| 1629 | RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(70)), 0.3 / animationspeed) | |
| 1630 | LH.C0 = clerp(LH.C0, cf(-1, -0.25 - idleangle, -1) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(5), math.rad(0), math.rad(30)), 0.3 / animationspeed) | |
| 1631 | end | |
| 1632 | gyro.Parent = nil | |
| 1633 | attacktype = 1 | |
| 1634 | disablejump = false | |
| 1635 | attack = false | |
| 1636 | end | |
| 1637 | function Dance() | |
| 1638 | if Mode == "Sword" then | |
| 1639 | EAbility() | |
| 1640 | end | |
| 1641 | attack = true | |
| 1642 | dancing = true | |
| 1643 | disablejump = true | |
| 1644 | Rooted.Value = true | |
| 1645 | while dancing == true do | |
| 1646 | hbwait() | |
| 1647 | for i = 0, 1, 0.5 / animationspeed do | |
| 1648 | hbwait() | |
| 1649 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.5 / animationspeed) | |
| 1650 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.25 / animationspeed) | |
| 1651 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.25) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.25 / animationspeed) | |
| 1652 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.25) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.25 / animationspeed) | |
| 1653 | RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(22.5)), 0.5 / animationspeed) | |
| 1654 | LH.C0 = clerp(LH.C0, cf(-1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-22.5)), 0.5 / animationspeed) | |
| 1655 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true or dancing == false then | |
| 1656 | break | |
| 1657 | end | |
| 1658 | end | |
| 1659 | for i = 0, 1, 0.15 / animationspeed do | |
| 1660 | hbwait() | |
| 1661 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(-0.5, 0, 0 + idleangle) * angles(math.rad(0), math.rad(-20), math.rad(30)), 0.5 / animationspeed) | |
| 1662 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(-30)), 0.25 / animationspeed) | |
| 1663 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(60), math.rad(0), math.rad(-60)) * RWC0, 0.25 / animationspeed) | |
| 1664 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(60), math.rad(0), math.rad(-60)) * LWC0, 0.25 / animationspeed) | |
| 1665 | RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-22.5), math.rad(0), math.rad(-7.5)), 0.5 / animationspeed) | |
| 1666 | LH.C0 = clerp(LH.C0, cf(-1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.5 / animationspeed) | |
| 1667 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true or dancing == false then | |
| 1668 | break | |
| 1669 | end | |
| 1670 | end | |
| 1671 | for i = 0, 1, 0.5 / animationspeed do | |
| 1672 | hbwait() | |
| 1673 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.5 / animationspeed) | |
| 1674 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.25 / animationspeed) | |
| 1675 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.25) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.25 / animationspeed) | |
| 1676 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.25) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.25 / animationspeed) | |
| 1677 | RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(22.5)), 0.5 / animationspeed) | |
| 1678 | LH.C0 = clerp(LH.C0, cf(-1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-22.5)), 0.5 / animationspeed) | |
| 1679 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true or dancing == false then | |
| 1680 | break | |
| 1681 | end | |
| 1682 | end | |
| 1683 | for i = 0, 1, 0.15 / animationspeed do | |
| 1684 | hbwait() | |
| 1685 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0.5, 0, 0 + idleangle) * angles(math.rad(0), math.rad(20), math.rad(-30)), 0.5 / animationspeed) | |
| 1686 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(10), math.rad(30)), 0.25 / animationspeed) | |
| 1687 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(60), math.rad(0), math.rad(60)) * RWC0, 0.25 / animationspeed) | |
| 1688 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(60), math.rad(0), math.rad(60)) * LWC0, 0.25 / animationspeed) | |
| 1689 | RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.5 / animationspeed) | |
| 1690 | LH.C0 = clerp(LH.C0, cf(-1, -0.75 - idleangle, 0) * angles(math.rad(0), math.rad(-60), math.rad(0)) * angles(math.rad(-22.5), math.rad(0), math.rad(7.5)), 0.5 / animationspeed) | |
| 1691 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true or dancing == false then | |
| 1692 | break | |
| 1693 | end | |
| 1694 | end | |
| 1695 | end | |
| 1696 | disablejump = false | |
| 1697 | Rooted.Value = false | |
| 1698 | attack = false | |
| 1699 | end | |
| 1700 | function EAbility() | |
| 1701 | attack = true | |
| 1702 | if Mode == "Normal" then | |
| 1703 | Mode = "Sword" | |
| 1704 | for i = 0, 1, 0.08 / animationspeed do | |
| 1705 | hbwait() | |
| 1706 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.3 / animationspeed) | |
| 1707 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3 / animationspeed) | |
| 1708 | RW.C0 = clerp(RW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-110)) * angles(math.rad(50), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1709 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.75 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)) * angles(math.rad(40), math.rad(0), math.rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1710 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1711 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.3 / animationspeed) | |
| 1712 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1713 | break | |
| 1714 | end | |
| 1715 | end | |
| 1716 | Handleweld.Part0 = LeftArm | |
| 1717 | Handleweld.C0 = cf(0.2, -2.5, 0) * angles(math.rad(90), math.rad(20), math.rad(160)) | |
| 1718 | Defense.Value = Defense.Value + 0.2 | |
| 1719 | Damage.Value = Damage.Value + 0.5 | |
| 1720 | Movement.Value = Movement.Value - 0.4 | |
| 1721 | manawait = 30 | |
| 1722 | elseif Mode == "Sword" then | |
| 1723 | Mode = "Normal" | |
| 1724 | for i = 0, 1, 0.08 / animationspeed do | |
| 1725 | hbwait() | |
| 1726 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.3 / animationspeed) | |
| 1727 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3 / animationspeed) | |
| 1728 | RW.C0 = clerp(RW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-110)) * angles(math.rad(50), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1729 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.75 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)) * angles(math.rad(40), math.rad(0), math.rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1730 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1731 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.3 / animationspeed) | |
| 1732 | Handleweld.C0 = clerp(Handleweld.C0, cf(0.2, -2.5, 0) * angles(math.rad(90), math.rad(20), math.rad(160)), 0.3 / animationspeed) | |
| 1733 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1734 | break | |
| 1735 | end | |
| 1736 | end | |
| 1737 | Handleweld.Part0 = Torso | |
| 1738 | Handleweld.C0 = cf(-4, 2.5, 0.8) * angles(0, math.rad(-90), 0) * angles(math.rad(-30), 0, 0) | |
| 1739 | Defense.Value = Defense.Value - 0.2 | |
| 1740 | Damage.Value = Damage.Value - 0.5 | |
| 1741 | Movement.Value = Movement.Value + 0.4 | |
| 1742 | manawait = 20 | |
| 1743 | end | |
| 1744 | attack = false | |
| 1745 | end | |
| 1746 | function Attack1() | |
| 1747 | attack = true | |
| 1748 | if Mode == "Normal" then | |
| 1749 | for i = 0, 1, 0.15 / animationspeed do | |
| 1750 | hbwait() | |
| 1751 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.45 / animationspeed) | |
| 1752 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(2.5), math.rad(0), math.rad(-40)), 0.45 / animationspeed) | |
| 1753 | RW.C0 = clerp(RW.C0, cf(1.5, 0.25 + idleangle, 0) * angles(math.rad(110), math.rad(0), math.rad(-15)) * RWC0, 0.45 / animationspeed) | |
| 1754 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(10)) * LWC0, 0.45 / animationspeed) | |
| 1755 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2.5)), 0.45 / animationspeed) | |
| 1756 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.45 / animationspeed) | |
| 1757 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1758 | break | |
| 1759 | end | |
| 1760 | end | |
| 1761 | so("169445092", LeftArm, 1, 0.8)
| |
| 1762 | for i = 0, 1, 0.15 / animationspeed do | |
| 1763 | hbwait() | |
| 1764 | MagniDamage(LeftArm, 5, 5, 10, math.random(2, 4), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false) | |
| 1765 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.25, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.6 / animationspeed) | |
| 1766 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(50)), 0.6 / animationspeed) | |
| 1767 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(-20)) * RWC0, 0.6 / animationspeed) | |
| 1768 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.4 + idleangle, -0.25) * angles(math.rad(100), math.rad(0), math.rad(-20)) * LWC0, 0.6 / animationspeed) | |
| 1769 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-5)), 0.6 / animationspeed) | |
| 1770 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(-40), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(2.5)), 0.6 / animationspeed) | |
| 1771 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1772 | break | |
| 1773 | end | |
| 1774 | end | |
| 1775 | for i = 0, 1, 0.15 / animationspeed do | |
| 1776 | hbwait() | |
| 1777 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.45 / animationspeed) | |
| 1778 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.45 / animationspeed) | |
| 1779 | RW.C0 = clerp(RW.C0, cf(1.5, 0.25 + idleangle, 0) * angles(math.rad(110), math.rad(0), math.rad(-15)) * RWC0, 0.45 / animationspeed) | |
| 1780 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(10)) * LWC0, 0.45 / animationspeed) | |
| 1781 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-5)), 0.45 / animationspeed) | |
| 1782 | LH.C0 = clerp(LH.C0, cf(-0.85, -1 - idleangle, 0.4) * angles(math.rad(0), math.rad(-30), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-5)), 0.45 / animationspeed) | |
| 1783 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1784 | break | |
| 1785 | end | |
| 1786 | end | |
| 1787 | so("169445092", RightArm, 1, 0.9)
| |
| 1788 | for i = 0, 1, 0.15 / animationspeed do | |
| 1789 | hbwait() | |
| 1790 | MagniDamage(RightArm, 5, 5, 10, math.random(2, 4), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false) | |
| 1791 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.25, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.6 / animationspeed) | |
| 1792 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-2.5), math.rad(0), math.rad(-50)), 0.6 / animationspeed) | |
| 1793 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, -0.25) * angles(math.rad(90), math.rad(0), math.rad(30)) * RWC0, 0.6 / animationspeed) | |
| 1794 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(110), math.rad(0), math.rad(30)) * LWC0, 0.6 / animationspeed) | |
| 1795 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(40), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-5)), 0.6 / animationspeed) | |
| 1796 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.6 / animationspeed) | |
| 1797 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1798 | break | |
| 1799 | end | |
| 1800 | end | |
| 1801 | elseif Mode == "Sword" then | |
| 1802 | for i = 0, 1, 0.05 / animationspeed do | |
| 1803 | hbwait() | |
| 1804 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.3 / animationspeed) | |
| 1805 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(10)), 0.3 / animationspeed) | |
| 1806 | RW.C0 = clerp(RW.C0, cf(-0.25, 0.25 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-55)) * RWC0, 0.3 / animationspeed) | |
| 1807 | LW.C0 = clerp(LW.C0, cf(-1.25, 0.5 + idleangle, -0.25) * angles(math.rad(20), math.rad(0), math.rad(-80)) * angles(math.rad(0), math.rad(150), math.rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1808 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(2.5)), 0.3 / animationspeed) | |
| 1809 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.3 / animationspeed) | |
| 1810 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-50), math.rad(0), math.rad(-5)), 0.3 / animationspeed) | |
| 1811 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1812 | break | |
| 1813 | end | |
| 1814 | end | |
| 1815 | so("231917950", Hitbox, 1, 1.2)
| |
| 1816 | so("203691447", Hitbox, 1, 1.2)
| |
| 1817 | for i = 0, 1, 0.05 / animationspeed do | |
| 1818 | hbwait() | |
| 1819 | MagniDamage(Hitbox, 8, 5, 10, math.random(2, 4), "Normal2", RootPart, 0.75, 1, 0, nil, false, true, nil, 0, 0, false) | |
| 1820 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3 / animationspeed) | |
| 1821 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(30)), 0.3 / animationspeed) | |
| 1822 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(110), math.rad(0), math.rad(-50)) * RWC0, 0.3 / animationspeed) | |
| 1823 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(30)) * angles(math.rad(0), math.rad(85), math.rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1824 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-5)), 0.3 / animationspeed) | |
| 1825 | LH.C0 = clerp(LH.C0, cf(-0.75, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(-20), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-2.5)), 0.3 / animationspeed) | |
| 1826 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -0.5, -0.25) * angles(math.rad(-70), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1827 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1828 | break | |
| 1829 | end | |
| 1830 | end | |
| 1831 | end | |
| 1832 | attack = false | |
| 1833 | end | |
| 1834 | function Attack2() | |
| 1835 | attack = true | |
| 1836 | if Mode == "Normal" then | |
| 1837 | for i = 0, 1, 0.15 / animationspeed do | |
| 1838 | hbwait() | |
| 1839 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.45 / animationspeed) | |
| 1840 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10)) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 1841 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(60), math.rad(0), math.rad(-30)) * RWC0, 0.45 / animationspeed) | |
| 1842 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.45 / animationspeed) | |
| 1843 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-2.5)), 0.45 / animationspeed) | |
| 1844 | LH.C0 = clerp(LH.C0, cf(-1, -0.75 - idleangle, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(40)), 0.45 / animationspeed) | |
| 1845 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1846 | break | |
| 1847 | end | |
| 1848 | end | |
| 1849 | disablejump = true | |
| 1850 | Rooted.Value = true | |
| 1851 | so("169445092", LeftLeg, 1, 1)
| |
| 1852 | for i = 0, 1, 0.15 / animationspeed do | |
| 1853 | hbwait() | |
| 1854 | MagniDamage(LeftLeg, 5, 5, 10, 0, "Knockdown", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false) | |
| 1855 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.25, 0 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.6 / animationspeed) | |
| 1856 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.6 / animationspeed) | |
| 1857 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(10), math.rad(0), math.rad(10)) * RWC0, 0.6 / animationspeed) | |
| 1858 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)) * LWC0, 0.6 / animationspeed) | |
| 1859 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.6 / animationspeed) | |
| 1860 | LH.C0 = clerp(LH.C0, cf(-1, -0.5 - idleangle, -0.25) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-100)), 0.6 / animationspeed) | |
| 1861 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1862 | break | |
| 1863 | end | |
| 1864 | end | |
| 1865 | for i = 0, 1, 0.15 / animationspeed do | |
| 1866 | hbwait() | |
| 1867 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(-20), math.rad(0), math.rad(-70)), 0.45 / animationspeed) | |
| 1868 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(70)) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 1869 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(30), math.rad(0), math.rad(10)) * RWC0, 0.45 / animationspeed) | |
| 1870 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)) * LWC0, 0.45 / animationspeed) | |
| 1871 | RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-22.5), math.rad(0), math.rad(-2.5)), 0.45 / animationspeed) | |
| 1872 | LH.C0 = clerp(LH.C0, cf(-1.1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.45 / animationspeed) | |
| 1873 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1874 | break | |
| 1875 | end | |
| 1876 | end | |
| 1877 | so("169445092", LeftLeg, 1, 0.7)
| |
| 1878 | for i = 0, 1, 0.15 / animationspeed do | |
| 1879 | hbwait() | |
| 1880 | MagniDamage(LeftLeg, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false) | |
| 1881 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(-90)), 0.6 / animationspeed) | |
| 1882 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(90)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.6 / animationspeed) | |
| 1883 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(30), math.rad(0), math.rad(30)) * RWC0, 0.6 / animationspeed) | |
| 1884 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-50)) * LWC0, 0.6 / animationspeed) | |
| 1885 | RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-22.5), math.rad(0), math.rad(-2.5)), 0.6 / animationspeed) | |
| 1886 | LH.C0 = clerp(LH.C0, cf(-1.1, -0.35 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-12.5), math.rad(0), math.rad(-2.5)), 0.6 / animationspeed) | |
| 1887 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1888 | break | |
| 1889 | end | |
| 1890 | end | |
| 1891 | disablejump = false | |
| 1892 | Rooted.Value = false | |
| 1893 | elseif Mode == "Sword" then | |
| 1894 | for i = 0, 1, 0.05 / animationspeed do | |
| 1895 | hbwait() | |
| 1896 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3 / animationspeed) | |
| 1897 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(40)), 0.3 / animationspeed) | |
| 1898 | RW.C0 = clerp(RW.C0, cf(0.5, 0 + idleangle, -0.75) * angles(math.rad(90), math.rad(0), math.rad(-55)) * angles(math.rad(15), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1899 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(60)) * angles(math.rad(-10), math.rad(-90), math.rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1900 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-5)), 0.3 / animationspeed) | |
| 1901 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0.5) * angles(math.rad(0), math.rad(-30), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(5)), 0.3 / animationspeed) | |
| 1902 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-40), math.rad(0), math.rad(-5)), 0.3 / animationspeed) | |
| 1903 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1904 | break | |
| 1905 | end | |
| 1906 | end | |
| 1907 | so("231917950", Hitbox, 1, 1.2)
| |
| 1908 | so("203691467", Hitbox, 1, 1.2)
| |
| 1909 | for i = 0, 1, 0.05 / animationspeed do | |
| 1910 | hbwait() | |
| 1911 | MagniDamage(Hitbox, 8, 5, 10, math.random(2, 4), "Normal2", RootPart, 0.75, 1, 0, nil, false, true, nil, 0, 0, false) | |
| 1912 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3 / animationspeed) | |
| 1913 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-30)), 0.3 / animationspeed) | |
| 1914 | RW.C0 = clerp(RW.C0, cf(-0.5, 0 + idleangle, -0.75) * angles(math.rad(90), math.rad(0), math.rad(-100)) * angles(math.rad(20), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1915 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-50)) * angles(math.rad(-10), math.rad(-90), math.rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1916 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(40), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(2.5)), 0.3 / animationspeed) | |
| 1917 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-17.5), math.rad(0), math.rad(5)), 0.3 / animationspeed) | |
| 1918 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-50), math.rad(0), math.rad(-5)), 0.3 / animationspeed) | |
| 1919 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1920 | break | |
| 1921 | end | |
| 1922 | end | |
| 1923 | end | |
| 1924 | attack = false | |
| 1925 | end | |
| 1926 | function Attack3() | |
| 1927 | attack = true | |
| 1928 | if Mode == "Normal" then | |
| 1929 | disablejump = true | |
| 1930 | Rooted.Value = true | |
| 1931 | for i = 0, 1, 0.15 / animationspeed do | |
| 1932 | hbwait() | |
| 1933 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(-20), math.rad(0), math.rad(80)), 0.45 / animationspeed) | |
| 1934 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-70)) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 1935 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(30)) * RWC0, 0.45 / animationspeed) | |
| 1936 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-5), math.rad(0), math.rad(-20)) * LWC0, 0.45 / animationspeed) | |
| 1937 | RH.C0 = clerp(RH.C0, cf(0.75, -0.25 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-60), math.rad(0), math.rad(5)), 0.45 / animationspeed) | |
| 1938 | LH.C0 = clerp(LH.C0, cf(-1, -0.7 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-22.5), math.rad(0), math.rad(2.5)), 0.45 / animationspeed) | |
| 1939 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1940 | break | |
| 1941 | end | |
| 1942 | end | |
| 1943 | so("169445092", RightLeg, 1, 1.1)
| |
| 1944 | for i = 0, 1, 0.15 / animationspeed do | |
| 1945 | hbwait() | |
| 1946 | MagniDamage(RightLeg, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false) | |
| 1947 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0 + idleangle) * angles(math.rad(-15), math.rad(0), math.rad(90)), 0.6 / animationspeed) | |
| 1948 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-80)) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.6 / animationspeed) | |
| 1949 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(45)) * RWC0, 0.6 / animationspeed) | |
| 1950 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-5), math.rad(0), math.rad(-40)) * LWC0, 0.6 / animationspeed) | |
| 1951 | RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.25) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-70), math.rad(0), math.rad(0)), 0.6 / animationspeed) | |
| 1952 | LH.C0 = clerp(LH.C0, cf(-1, -0.7 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-27.5), math.rad(0), math.rad(2.5)), 0.6 / animationspeed) | |
| 1953 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1954 | break | |
| 1955 | end | |
| 1956 | end | |
| 1957 | for i = 0, 1, 0.15 / animationspeed do | |
| 1958 | hbwait() | |
| 1959 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, -0.25 + idleangle) * angles(math.rad(5), math.rad(0), math.rad(45)), 0.45 / animationspeed) | |
| 1960 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-45)), 0.45 / animationspeed) | |
| 1961 | RW.C0 = clerp(RW.C0, cf(1.5, 0.25 + idleangle, 0) * angles(math.rad(130), math.rad(0), math.rad(-10)) * RWC0, 0.45 / animationspeed) | |
| 1962 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(50), math.rad(0), math.rad(-15)) * LWC0, 0.45 / animationspeed) | |
| 1963 | RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, 0.25) * angles(math.rad(0), math.rad(45), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(10)), 0.45 / animationspeed) | |
| 1964 | LH.C0 = clerp(LH.C0, cf(-1, -0.75 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-2.5)), 0.45 / animationspeed) | |
| 1965 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1966 | break | |
| 1967 | end | |
| 1968 | end | |
| 1969 | so("169445092", LeftLeg, 1, 1.2)
| |
| 1970 | for i = 0, 1, 0.15 / animationspeed do | |
| 1971 | hbwait() | |
| 1972 | MagniDamage(LeftLeg, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false) | |
| 1973 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, 0 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(-80)), 0.6 / animationspeed) | |
| 1974 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(80)) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.6 / animationspeed) | |
| 1975 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(30), math.rad(0), math.rad(5)) * RWC0, 0.6 / animationspeed) | |
| 1976 | LW.C0 = clerp(LW.C0, cf(-1.25, 0.25 + idleangle, 0) * angles(math.rad(110), math.rad(0), math.rad(25)) * LWC0, 0.6 / animationspeed) | |
| 1977 | RH.C0 = clerp(RH.C0, cf(1, -0.8 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-17.5), math.rad(0), math.rad(-10)), 0.6 / animationspeed) | |
| 1978 | LH.C0 = clerp(LH.C0, cf(-0.75, -0.5 - idleangle, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-70), math.rad(0), math.rad(-30)), 0.6 / animationspeed) | |
| 1979 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1980 | break | |
| 1981 | end | |
| 1982 | end | |
| 1983 | disablejump = false | |
| 1984 | Rooted.Value = false | |
| 1985 | elseif Mode == "Sword" then | |
| 1986 | for i = 0, 1, 0.05 / animationspeed do | |
| 1987 | hbwait() | |
| 1988 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(50)), 0.3 / animationspeed) | |
| 1989 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-50)) * angles(math.rad(-7.5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1990 | RW.C0 = clerp(RW.C0, cf(-0.5, 0.25 + idleangle, -0.5) * angles(math.rad(120), math.rad(0), math.rad(-75)) * angles(math.rad(-40), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1991 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(110), math.rad(0), math.rad(-90)) * angles(math.rad(-70), math.rad(60), math.rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1992 | RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, 0) * angles(math.rad(0), math.rad(30), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(22.5)), 0.3 / animationspeed) | |
| 1993 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(5)), 0.3 / animationspeed) | |
| 1994 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 1995 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 1996 | break | |
| 1997 | end | |
| 1998 | end | |
| 1999 | so("231917950", Hitbox, 1, 0.8)
| |
| 2000 | so("203691447", Hitbox, 1, 0.8)
| |
| 2001 | for i = 0, 1, 0.05 / animationspeed do | |
| 2002 | hbwait() | |
| 2003 | MagniDamage(Hitbox, 8, 5, 10, math.random(2, 4), "Normal2", RootPart, 0.75, 1, 0, nil, false, true, nil, 0, 0, false) | |
| 2004 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, -0.1 + idleangle) * angles(math.rad(-5), math.rad(0), math.rad(-50)), 0.3 / animationspeed) | |
| 2005 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(50)) * angles(math.rad(7.5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2006 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)) * angles(math.rad(10), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed) | |
| 2007 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(50)) * angles(math.rad(10), math.rad(80), math.rad(0)) * LWC0, 0.3 / animationspeed) | |
| 2008 | RH.C0 = clerp(RH.C0, cf(1, -0.8 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-5)), 0.3 / animationspeed) | |
| 2009 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(-40), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(2.5)), 0.3 / animationspeed) | |
| 2010 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-50), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2011 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2012 | break | |
| 2013 | end | |
| 2014 | end | |
| 2015 | end | |
| 2016 | attack = false | |
| 2017 | end | |
| 2018 | function GroundSmash(Part, Range) | |
| 2019 | local hit, pos = rayCast(Part.Position, cf(Part.Position, Part.Position + vt(0, -1, 0)).lookVector, Range, Character) | |
| 2020 | if hit ~= nil then | |
| 2021 | local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2022 | refpart.Anchored = true | |
| 2023 | refpart.CFrame = cf(pos) | |
| 2024 | game:GetService("Debris"):AddItem(refpart, 5)
| |
| 2025 | for i = 1, math.random(10, 20) do | |
| 2026 | local flyingdebris = part(3, Effects, hit.Material, 0, 0, hit.BrickColor, "Effect", vt(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100)) | |
| 2027 | flyingdebris.TopSurface = hit.TopSurface | |
| 2028 | flyingdebris.BottomSurface = hit.BottomSurface | |
| 2029 | flyingdebris.LeftSurface = hit.LeftSurface | |
| 2030 | flyingdebris.RightSurface = hit.RightSurface | |
| 2031 | flyingdebris.FrontSurface = hit.FrontSurface | |
| 2032 | flyingdebris.BackSurface = hit.BackSurface | |
| 2033 | flyingdebris.Anchored = false | |
| 2034 | flyingdebris.CFrame = refpart.CFrame * cf(math.random(-100, 100) / 100, 0, math.random(-100, 100) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) | |
| 2035 | flyingdebris.Velocity = Vector3.new(math.random(-75, 75), math.random(50, 75), math.random(-75, 75)) | |
| 2036 | game:GetService("Debris"):AddItem(flyingdebris, 5)
| |
| 2037 | coroutine.resume(coroutine.create(function(TheDebris) | |
| 2038 | for i = 0, 1, 0.1 do | |
| 2039 | hbwait() | |
| 2040 | TheDebris.Transparency = i | |
| 2041 | end | |
| 2042 | TheDebris.Transparency = 1 | |
| 2043 | TheDebris.Parent = nil | |
| 2044 | end), flyingdebris) | |
| 2045 | end | |
| 2046 | for i = 1, math.random(10, 20) do | |
| 2047 | local grounddebris = part(3, Effects, hit.Material, 0, 0, hit.BrickColor, "Effect", vt(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100)) | |
| 2048 | grounddebris.TopSurface = hit.TopSurface | |
| 2049 | grounddebris.BottomSurface = hit.BottomSurface | |
| 2050 | grounddebris.LeftSurface = hit.LeftSurface | |
| 2051 | grounddebris.RightSurface = hit.RightSurface | |
| 2052 | grounddebris.FrontSurface = hit.FrontSurface | |
| 2053 | grounddebris.BackSurface = hit.BackSurface | |
| 2054 | grounddebris.Anchored = true | |
| 2055 | grounddebris.CFrame = refpart.CFrame * cf(math.random(-750, 750) / 100, 0, math.random(-750, 750) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) | |
| 2056 | game:GetService("Debris"):AddItem(grounddebris, 10)
| |
| 2057 | coroutine.resume(coroutine.create(function(TheDebris) | |
| 2058 | wait(5) | |
| 2059 | for i = 0, 1, 0.1 do | |
| 2060 | hbwait() | |
| 2061 | TheDebris.Transparency = i | |
| 2062 | end | |
| 2063 | TheDebris.Transparency = 1 | |
| 2064 | TheDebris.Parent = nil | |
| 2065 | end), grounddebris) | |
| 2066 | end | |
| 2067 | so("199145477", refpart, 1, 0.75)
| |
| 2068 | so("157878578", refpart, 1, 1)
| |
| 2069 | MagicRing(hit.BrickColor, hit.Material, refpart.CFrame * angles(math.rad(90), 0, 0), 5, 5, 1, 1, 1, 1, 0.05) | |
| 2070 | MagicWave(hit.BrickColor, hit.Material, refpart.CFrame, 2.5, 2.5, 2.5, 0.5, 0.5, 0.5, 0.05) | |
| 2071 | MagniDamage(refpart, 15, 5, 10, math.random(5, 10), "Normal2", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false) | |
| 2072 | end | |
| 2073 | end | |
| 2074 | function Attack4() | |
| 2075 | attack = true | |
| 2076 | if Mode == "Normal" then | |
| 2077 | for i = 0, 1, 0.15 / animationspeed do | |
| 2078 | hbwait() | |
| 2079 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(5), math.rad(0), math.rad(40)), 0.45 / animationspeed) | |
| 2080 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-40)), 0.45 / animationspeed) | |
| 2081 | RW.C0 = clerp(RW.C0, cf(1.5, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * angles(math.rad(30), math.rad(0), math.rad(0)) * RWC0, 0.45 / animationspeed) | |
| 2082 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * angles(math.rad(-10), math.rad(0), math.rad(0)) * LWC0, 0.45 / animationspeed) | |
| 2083 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(10)), 0.45 / animationspeed) | |
| 2084 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(10)), 0.45 / animationspeed) | |
| 2085 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2086 | break | |
| 2087 | end | |
| 2088 | end | |
| 2089 | so("169445092", LeftArm, 1, 1.3)
| |
| 2090 | for i = 0, 1, 0.15 / animationspeed do | |
| 2091 | hbwait() | |
| 2092 | MagniDamage(LeftArm, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false) | |
| 2093 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, 0 + idleangle) * angles(math.rad(5), math.rad(0), math.rad(-70)), 0.45 / animationspeed) | |
| 2094 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(2.5), math.rad(0), math.rad(70)), 0.45 / animationspeed) | |
| 2095 | RW.C0 = clerp(RW.C0, cf(1.25, 0.5 + idleangle, -0.25) * angles(math.rad(80), math.rad(0), math.rad(-30)) * RWC0, 0.45 / animationspeed) | |
| 2096 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)) * LWC0, 0.45 / animationspeed) | |
| 2097 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-2.5)), 0.45 / animationspeed) | |
| 2098 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0.5) * angles(math.rad(0), math.rad(-20), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-7.5)), 0.45 / animationspeed) | |
| 2099 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2100 | break | |
| 2101 | end | |
| 2102 | end | |
| 2103 | for i = 0, 1, 0.15 / animationspeed do | |
| 2104 | hbwait() | |
| 2105 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, -0.25 + idleangle) * angles(math.rad(5), math.rad(0), math.rad(-60)), 0.45 / animationspeed) | |
| 2106 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.45 / animationspeed) | |
| 2107 | RW.C0 = clerp(RW.C0, cf(1.25, 0.25 + idleangle, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-20)) * angles(math.rad(-30), math.rad(-30), math.rad(0)) * RWC0, 0.45 / animationspeed) | |
| 2108 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)) * angles(math.rad(30), math.rad(0), math.rad(0)) * LWC0, 0.45 / animationspeed) | |
| 2109 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-17.5), math.rad(0), math.rad(-2.5)), 0.45 / animationspeed) | |
| 2110 | LH.C0 = clerp(LH.C0, cf(-1, -0.75 - idleangle, 0) * angles(math.rad(0), math.rad(-30), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-7.5)), 0.45 / animationspeed) | |
| 2111 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2112 | break | |
| 2113 | end | |
| 2114 | end | |
| 2115 | so("169445092", RightArm, 1, 1)
| |
| 2116 | for i = 0, 1, 0.3 / animationspeed do | |
| 2117 | hbwait() | |
| 2118 | MagniDamage(RightArm, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false) | |
| 2119 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.45 / animationspeed) | |
| 2120 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-80)), 0.45 / animationspeed) | |
| 2121 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)) * angles(math.rad(60), math.rad(0), math.rad(20)) * RWC0, 0.45 / animationspeed) | |
| 2122 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)) * angles(math.rad(-10), math.rad(0), math.rad(0)) * LWC0, 0.45 / animationspeed) | |
| 2123 | RH.C0 = clerp(RH.C0, cf(0.75, -1 - idleangle, 0.5) * angles(math.rad(0), math.rad(10), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(2.5)), 0.45 / animationspeed) | |
| 2124 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-22.5), math.rad(0), math.rad(2.5)), 0.45 / animationspeed) | |
| 2125 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2126 | break | |
| 2127 | end | |
| 2128 | end | |
| 2129 | for i = 0, 1, 0.3 / animationspeed do | |
| 2130 | hbwait() | |
| 2131 | MagniDamage(RightArm, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false) | |
| 2132 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.45 / animationspeed) | |
| 2133 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-80)), 0.45 / animationspeed) | |
| 2134 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)) * angles(math.rad(80), math.rad(0), math.rad(20)) * RWC0, 0.45 / animationspeed) | |
| 2135 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)) * angles(math.rad(-10), math.rad(0), math.rad(0)) * LWC0, 0.45 / animationspeed) | |
| 2136 | RH.C0 = clerp(RH.C0, cf(0.75, -1 - idleangle, 0.5) * angles(math.rad(0), math.rad(10), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(2.5)), 0.45 / animationspeed) | |
| 2137 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-22.5), math.rad(0), math.rad(2.5)), 0.45 / animationspeed) | |
| 2138 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2139 | break | |
| 2140 | end | |
| 2141 | end | |
| 2142 | elseif Mode == "Sword" then | |
| 2143 | disablejump = true | |
| 2144 | Rooted.Value = true | |
| 2145 | for i = 0, 1, 0.05 / animationspeed do | |
| 2146 | hbwait() | |
| 2147 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3 / animationspeed) | |
| 2148 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-30)) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2149 | RW.C0 = clerp(RW.C0, cf(-0.25, 0.65 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-55)) * angles(math.rad(50), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed) | |
| 2150 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.35 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)) * angles(math.rad(100), math.rad(30), math.rad(0)) * LWC0, 0.3 / animationspeed) | |
| 2151 | RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(5)), 0.3 / animationspeed) | |
| 2152 | LH.C0 = clerp(LH.C0, cf(-1, -0.85 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(7.5)), 0.3 / animationspeed) | |
| 2153 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2154 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2155 | break | |
| 2156 | end | |
| 2157 | end | |
| 2158 | so("203691492", Hitbox, 1, 1.2)
| |
| 2159 | so("203691467", Hitbox, 1, 1.2)
| |
| 2160 | for i = 0, 1, 0.15 / animationspeed do | |
| 2161 | hbwait() | |
| 2162 | MagniDamage(Hitbox, 8, 5, 10, math.random(2, 4), "Normal2", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false) | |
| 2163 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.75 + idleangle) * angles(math.rad(5), math.rad(0), math.rad(10)), 0.45 / animationspeed) | |
| 2164 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-10)) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2165 | RW.C0 = clerp(RW.C0, cf(-0.35, 0.15 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-60)) * angles(math.rad(-45), math.rad(0), math.rad(0)) * RWC0, 0.45 / animationspeed) | |
| 2166 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-5)) * angles(math.rad(-65), math.rad(-20), math.rad(0)) * LWC0, 0.45 / animationspeed) | |
| 2167 | RH.C0 = clerp(RH.C0, cf(1, -0.25 - idleangle, -0.5) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(7.5)), 0.45 / animationspeed) | |
| 2168 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-100), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(55)), 0.45 / animationspeed) | |
| 2169 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-25), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2170 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2171 | break | |
| 2172 | end | |
| 2173 | end | |
| 2174 | GroundSmash(Hitbox, 4) | |
| 2175 | for i = 0, 1, 0.05 / animationspeed do | |
| 2176 | hbwait() | |
| 2177 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.75 + idleangle) * angles(math.rad(5), math.rad(0), math.rad(10)), 0.45 / animationspeed) | |
| 2178 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-10)) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2179 | RW.C0 = clerp(RW.C0, cf(-0.35, 0.15 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-60)) * angles(math.rad(-45), math.rad(0), math.rad(0)) * RWC0, 0.45 / animationspeed) | |
| 2180 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-5)) * angles(math.rad(-65), math.rad(-20), math.rad(0)) * LWC0, 0.45 / animationspeed) | |
| 2181 | RH.C0 = clerp(RH.C0, cf(1, -0.25 - idleangle, -0.5) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(7.5)), 0.45 / animationspeed) | |
| 2182 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-100), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(55)), 0.45 / animationspeed) | |
| 2183 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-25), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2184 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2185 | break | |
| 2186 | end | |
| 2187 | end | |
| 2188 | disablejump = false | |
| 2189 | Rooted.Value = false | |
| 2190 | end | |
| 2191 | attack = false | |
| 2192 | end | |
| 2193 | function Move1() | |
| 2194 | if Mode == "Sword" then | |
| 2195 | EAbility() | |
| 2196 | end | |
| 2197 | attack = true | |
| 2198 | disablejump = true | |
| 2199 | Rooted.Value = true | |
| 2200 | for i = 0, 1, 0.15 / animationspeed do | |
| 2201 | hbwait() | |
| 2202 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.25 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2203 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2204 | RW.C0 = clerp(RW.C0, cf(1.25, 0.5 + idleangle, -0.25) * angles(math.rad(80), math.rad(0), math.rad(-45)) * RWC0, 0.45 / animationspeed) | |
| 2205 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(15), math.rad(0), math.rad(-10)) * LWC0, 0.45 / animationspeed) | |
| 2206 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -1) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.45 / animationspeed) | |
| 2207 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.45 / animationspeed) | |
| 2208 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2209 | break | |
| 2210 | end | |
| 2211 | end | |
| 2212 | so("156190061", Torso, 0.75, 0.8)
| |
| 2213 | local aurathingy = 0 | |
| 2214 | local maxaurathingy = 30 | |
| 2215 | local TheColor1 = BrickColor.new("Bright yellow").r
| |
| 2216 | local TheColor2 = BrickColor.new("Bright yellow").g
| |
| 2217 | local TheColor3 = BrickColor.new("Bright yellow").b
| |
| 2218 | local auralight = Instance.new("PointLight", Torso)
| |
| 2219 | auralight.Color = Color3.new(TheColor1, TheColor2, TheColor3) | |
| 2220 | auralight.Brightness = 7.5 | |
| 2221 | auralight.Range = 7.5 | |
| 2222 | for i = 0, 1, 0.01 / animationspeed do | |
| 2223 | hbwait() | |
| 2224 | if aurathingy >= maxaurathingy then | |
| 2225 | local randomheal = math.floor(math.random(1, 2)) | |
| 2226 | so("234226639", Torso, 0.5, 1 / (maxaurathingy / 20))
| |
| 2227 | MagicCircle("Bright yellow", "Neon", Torso.CFrame * angles(math.rad(10), 0, 0), 50, 50, 50, -2.5, 1, -2.5, 0.05)
| |
| 2228 | DamageStatLabel(Head.CFrame, randomheal, Color3.new(0.29411764705882354, 0.788235294117647, 0.29411764705882354)) | |
| 2229 | Humanoid.Health = Humanoid.Health + randomheal | |
| 2230 | maxaurathingy = maxaurathingy - 2 | |
| 2231 | aurathingy = 0 | |
| 2232 | else | |
| 2233 | aurathingy = aurathingy + 1 | |
| 2234 | end | |
| 2235 | MagicCircle("Bright yellow", "Neon", RootPart.CFrame * cf(0, -3, 0), 1, 1, 1, 5, 0, 5, 0.1)
| |
| 2236 | MagicCircle("Bright yellow", "Neon", RootPart.CFrame * cf(0, -3, 0) * angles(math.rad(90), 0, math.rad(math.random(-90, 90))), 1, 1, 1, 0, 10, 0, 0.1)
| |
| 2237 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.25 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2238 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2239 | RW.C0 = clerp(RW.C0, cf(1.25, 0.5 + idleangle, -0.25) * angles(math.rad(80), math.rad(0), math.rad(-45)) * RWC0, 0.45 / animationspeed) | |
| 2240 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(15), math.rad(0), math.rad(-10)) * LWC0, 0.45 / animationspeed) | |
| 2241 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -1) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.45 / animationspeed) | |
| 2242 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.45 / animationspeed) | |
| 2243 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2244 | break | |
| 2245 | end | |
| 2246 | end | |
| 2247 | DecreaseStat(Character, "Defense", 0.1, 5, true) | |
| 2248 | DecreaseStat(Character, "Damage", 0.1, 5, true) | |
| 2249 | MagicCircle("Bright yellow", "Neon", Torso.CFrame * angles(math.rad(10), 0, 0), 50, 50, 50, 5, 5, 5, 0.1)
| |
| 2250 | auralight.Parent = nil | |
| 2251 | disablejump = false | |
| 2252 | Rooted.Value = false | |
| 2253 | attack = false | |
| 2254 | end | |
| 2255 | function GroundSmash2(Part, Range, Damage) | |
| 2256 | local hit, pos = rayCast(Part.Position, cf(Part.Position, Part.Position + vt(0, -1, 0)).lookVector, Range, Character) | |
| 2257 | if hit ~= nil then | |
| 2258 | local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
| |
| 2259 | refpart.Anchored = true | |
| 2260 | refpart.CFrame = cf(pos) | |
| 2261 | game:GetService("Debris"):AddItem(refpart, 5)
| |
| 2262 | for i = 1, math.random(15, 30) do | |
| 2263 | local flyingdebris = part(3, Effects, hit.Material, 0, 0, hit.BrickColor, "Effect", vt(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100)) | |
| 2264 | flyingdebris.TopSurface = hit.TopSurface | |
| 2265 | flyingdebris.BottomSurface = hit.BottomSurface | |
| 2266 | flyingdebris.LeftSurface = hit.LeftSurface | |
| 2267 | flyingdebris.RightSurface = hit.RightSurface | |
| 2268 | flyingdebris.FrontSurface = hit.FrontSurface | |
| 2269 | flyingdebris.BackSurface = hit.BackSurface | |
| 2270 | flyingdebris.Anchored = false | |
| 2271 | flyingdebris.CFrame = refpart.CFrame * cf(math.random(-100, 100) / 100, 0, math.random(-100, 100) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) | |
| 2272 | flyingdebris.Velocity = Vector3.new(math.random(-75, 75), math.random(50, 75), math.random(-75, 75)) | |
| 2273 | game:GetService("Debris"):AddItem(flyingdebris, 5)
| |
| 2274 | coroutine.resume(coroutine.create(function(TheDebris) | |
| 2275 | for i = 0, 1, 0.1 do | |
| 2276 | hbwait() | |
| 2277 | TheDebris.Transparency = i | |
| 2278 | end | |
| 2279 | TheDebris.Transparency = 1 | |
| 2280 | TheDebris.Parent = nil | |
| 2281 | end), flyingdebris) | |
| 2282 | end | |
| 2283 | for i = 1, math.random(15, 30) do | |
| 2284 | local grounddebris = part(3, Effects, hit.Material, 0, 0, hit.BrickColor, "Effect", vt(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100)) | |
| 2285 | grounddebris.TopSurface = hit.TopSurface | |
| 2286 | grounddebris.BottomSurface = hit.BottomSurface | |
| 2287 | grounddebris.LeftSurface = hit.LeftSurface | |
| 2288 | grounddebris.RightSurface = hit.RightSurface | |
| 2289 | grounddebris.FrontSurface = hit.FrontSurface | |
| 2290 | grounddebris.BackSurface = hit.BackSurface | |
| 2291 | grounddebris.Anchored = true | |
| 2292 | grounddebris.CFrame = refpart.CFrame * cf(math.random(-750, 750) / 100, 0, math.random(-750, 750) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) | |
| 2293 | game:GetService("Debris"):AddItem(grounddebris, 10)
| |
| 2294 | coroutine.resume(coroutine.create(function(TheDebris) | |
| 2295 | wait(5) | |
| 2296 | for i = 0, 1, 0.1 do | |
| 2297 | hbwait() | |
| 2298 | TheDebris.Transparency = i | |
| 2299 | end | |
| 2300 | TheDebris.Transparency = 1 | |
| 2301 | TheDebris.Parent = nil | |
| 2302 | end), grounddebris) | |
| 2303 | end | |
| 2304 | so("199145477", refpart, 1, 0.75)
| |
| 2305 | so("157878578", refpart, 1, 1)
| |
| 2306 | if Damage > 5 then | |
| 2307 | so("2760979", refpart, 1, 0.5)
| |
| 2308 | end | |
| 2309 | if Damage > 10 then | |
| 2310 | so("142070127", refpart, 1, 0.75)
| |
| 2311 | end | |
| 2312 | if Damage > 15 then | |
| 2313 | so("168586621", refpart, 1, 0.5)
| |
| 2314 | end | |
| 2315 | MagicRing(hit.BrickColor, hit.Material, refpart.CFrame * angles(math.rad(90), 0, 0), 5, 5, 1, 1, 1, 1, 0.025) | |
| 2316 | if Damage > 5 then | |
| 2317 | MagicWave(hit.BrickColor, hit.Material, refpart.CFrame, 2.5, 2.5, 2.5, 0.5, 0.5, 0.5, 0.025) | |
| 2318 | end | |
| 2319 | if Damage > 10 then | |
| 2320 | MagicCrown(hit.BrickColor, hit.Material, refpart.CFrame, 2.5, 2.5, 2.5, 0.5, 0.5, 0.5, 0.025) | |
| 2321 | end | |
| 2322 | if Damage > 15 then | |
| 2323 | MagicSpikedCrown(hit.BrickColor, hit.Material, refpart.CFrame, 2.5, 2.5, 2.5, 0.5, 0.5, 0.5, 0.025) | |
| 2324 | end | |
| 2325 | if Damage <= 10 then | |
| 2326 | MagniDamage(refpart, 20, 5, 10, math.random(5, 10), "SuperKnockup", refpart, 0.5, 1, 0, nil, false, true, "Movement", 0.2, 10, true) | |
| 2327 | else | |
| 2328 | MagniDamage(refpart, 20, Damage, Damage * 2, math.random(5, 10), "SuperKnockup", refpart, 0.5, 1, 0, nil, false, true, "Movement", 0.2, 10, true) | |
| 2329 | end | |
| 2330 | end | |
| 2331 | end | |
| 2332 | function Move2() | |
| 2333 | move2charging = true | |
| 2334 | if Mode == "Normal" then | |
| 2335 | EAbility() | |
| 2336 | end | |
| 2337 | attack = true | |
| 2338 | Movement.Value = Movement.Value - 0.2 | |
| 2339 | local chargingstate = 0 | |
| 2340 | local chargingeffectnum = 1 | |
| 2341 | local playsound1 = false | |
| 2342 | local playsound2 = false | |
| 2343 | local playsound3 = false | |
| 2344 | so("315746833", Torso, 1, 1)
| |
| 2345 | while move2charging == true and chargingstate < 155 do | |
| 2346 | hbwait() | |
| 2347 | chargingstate = chargingstate + 1 | |
| 2348 | if chargingeffectnum >= 10 then | |
| 2349 | chargingeffectnum = 0 | |
| 2350 | MagicWave("Institutional white", "Neon", RootPart.CFrame * cf(0, -3, 0), 2, 1, 2, 0.5, 0.2, 0.5, 0.1)
| |
| 2351 | if chargingstate >= 50 then | |
| 2352 | if playsound1 == false then | |
| 2353 | playsound1 = true | |
| 2354 | particleemitter2.Enabled = true | |
| 2355 | so("315743350", Torso, 1, 1)
| |
| 2356 | MagicCircle("Bright yellow", "Neon", Torso.CFrame, 1, 1, 1, 10, 10, 10, 0.15)
| |
| 2357 | end | |
| 2358 | MagicRing("Institutional white", "Neon", RootPart.CFrame * cf(0, -3, 0) * angles(math.rad(90), 0, 0), 2, 2, 1, 1, 1, 0.5, 0.1)
| |
| 2359 | end | |
| 2360 | if chargingstate >= 100 then | |
| 2361 | if playsound2 == false then | |
| 2362 | playsound2 = true | |
| 2363 | particleemitter.Enabled = true | |
| 2364 | so("315743331", Torso, 1, 1.5)
| |
| 2365 | MagicCircle("Bright yellow", "Neon", Torso.CFrame, 1, 1, 1, 10, 10, 10, 0.15)
| |
| 2366 | end | |
| 2367 | MagicCrown("Institutional white", "Neon", RootPart.CFrame * cf(0, -3, 0), 2, 1, 2, 0.5, 0.2, 0.5, 0.1)
| |
| 2368 | end | |
| 2369 | if chargingstate >= 150 and playsound3 == false then | |
| 2370 | playsound3 = true | |
| 2371 | so("315743298", Torso, 1, 0.75)
| |
| 2372 | so("315743350", Torso, 1, 0.75)
| |
| 2373 | MagicCircle("Bright yellow", "Neon", Torso.CFrame, 1, 1, 1, 10, 10, 10, 0.15)
| |
| 2374 | end | |
| 2375 | elseif chargingeffectnum <= 10 then | |
| 2376 | chargingeffectnum = chargingeffectnum + 1 | |
| 2377 | end | |
| 2378 | if playsound1 == false and playsound2 == false and playsound3 == false then | |
| 2379 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.25 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(40)), 0.3 / animationspeed) | |
| 2380 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2381 | RW.C0 = clerp(RW.C0, cf(-0.5, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-80)) * angles(math.rad(50), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed) | |
| 2382 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)) * angles(math.rad(85), math.rad(0), math.rad(10)) * LWC0, 0.3 / animationspeed) | |
| 2383 | RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, 0.25) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(12.5)), 0.3 / animationspeed) | |
| 2384 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-7.5), math.rad(0), math.rad(2.5)), 0.3 / animationspeed) | |
| 2385 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2386 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true or move2charging == false or chargingstate >= 155 then | |
| 2387 | break | |
| 2388 | end | |
| 2389 | elseif playsound1 == true and playsound2 == false and playsound3 == false then | |
| 2390 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.25 + idleangle) * angles(math.rad(15), math.rad(0), math.rad(40)), 0.3 / animationspeed) | |
| 2391 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2392 | RW.C0 = clerp(RW.C0, cf(-0.5, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-80)) * angles(math.rad(50), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed) | |
| 2393 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)) * angles(math.rad(85), math.rad(0), math.rad(10)) * LWC0, 0.3 / animationspeed) | |
| 2394 | RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, 0.25) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(17.5)), 0.3 / animationspeed) | |
| 2395 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(2.5)), 0.3 / animationspeed) | |
| 2396 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2397 | elseif playsound1 == true and playsound2 == true and playsound3 == false then | |
| 2398 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.25 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.3 / animationspeed) | |
| 2399 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2400 | RW.C0 = clerp(RW.C0, cf(-0.5, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-80)) * angles(math.rad(50), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed) | |
| 2401 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)) * angles(math.rad(85), math.rad(0), math.rad(10)) * LWC0, 0.3 / animationspeed) | |
| 2402 | RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, 0.25) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(22.5)), 0.3 / animationspeed) | |
| 2403 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(2.5), math.rad(0), math.rad(2.5)), 0.3 / animationspeed) | |
| 2404 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2405 | end | |
| 2406 | end | |
| 2407 | Movement.Value = Movement.Value + 0.2 | |
| 2408 | disablejump = true | |
| 2409 | Rooted.Value = true | |
| 2410 | particleemitter.Enabled = false | |
| 2411 | particleemitter2.Enabled = false | |
| 2412 | for i = 1, math.random(5, 10) do | |
| 2413 | MagicCircle("Bright yellow", "Neon", Torso.CFrame * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90))), 0.1, 0.1, 0.1, 0.1, 5, 0.1, 0.1)
| |
| 2414 | end | |
| 2415 | for i = 0, 1, 0.05 / animationspeed do | |
| 2416 | hbwait() | |
| 2417 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0.25, 0 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(70)), 0.3 / animationspeed) | |
| 2418 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-70)) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2419 | RW.C0 = clerp(RW.C0, cf(-0.5, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-80)) * angles(math.rad(70), math.rad(50), math.rad(-10)) * RWC0, 0.3 / animationspeed) | |
| 2420 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-40)) * angles(math.rad(50), math.rad(110), math.rad(35)) * LWC0, 0.3 / animationspeed) | |
| 2421 | RH.C0 = clerp(RH.C0, cf(0.75, -0.5 - idleangle, 0.25) * angles(math.rad(0), math.rad(20), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(25)), 0.3 / animationspeed) | |
| 2422 | LH.C0 = clerp(LH.C0, cf(-1, -0.9 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(2.5)), 0.3 / animationspeed) | |
| 2423 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2424 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2425 | break | |
| 2426 | end | |
| 2427 | end | |
| 2428 | so("203691492", Hitbox, 1, 1.2)
| |
| 2429 | so("203691467", Hitbox, 1, 1.2)
| |
| 2430 | for i = 0, 1, 0.15 / animationspeed do | |
| 2431 | hbwait() | |
| 2432 | if chargingstate / 10 <= 10 then | |
| 2433 | MagniDamage(Hitbox, 8, 5, 10, math.random(5, 10), "Normal2", RootPart, 0.5, 1, 0, nil, false, true, "Movement", 0.2, 10, true) | |
| 2434 | else | |
| 2435 | MagniDamage(Hitbox, 8, chargingstate / 10, chargingstate / 10 * 2, math.random(5, 10), "Normal2", RootPart, 0.5, 1, 0, nil, false, true, "Movement", 0.2, 10, true) | |
| 2436 | end | |
| 2437 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -1 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.45 / animationspeed) | |
| 2438 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2439 | RW.C0 = clerp(RW.C0, cf(-0.25, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-40)) * angles(math.rad(-40), math.rad(0), math.rad(0)) * RWC0, 0.45 / animationspeed) | |
| 2440 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(0)) * angles(math.rad(-45), math.rad(5), math.rad(0)) * LWC0, 0.45 / animationspeed) | |
| 2441 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(12.5)), 0.45 / animationspeed) | |
| 2442 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(50)), 0.45 / animationspeed) | |
| 2443 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2444 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2445 | break | |
| 2446 | end | |
| 2447 | end | |
| 2448 | GroundSmash2(Hitbox, 4, chargingstate / 10) | |
| 2449 | for i = 0, 1, 0.05 / animationspeed do | |
| 2450 | hbwait() | |
| 2451 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -1 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.45 / animationspeed) | |
| 2452 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2453 | RW.C0 = clerp(RW.C0, cf(-0.25, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-40)) * angles(math.rad(-40), math.rad(0), math.rad(0)) * RWC0, 0.45 / animationspeed) | |
| 2454 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(0)) * angles(math.rad(-45), math.rad(5), math.rad(0)) * LWC0, 0.45 / animationspeed) | |
| 2455 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(12.5)), 0.45 / animationspeed) | |
| 2456 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(50)), 0.45 / animationspeed) | |
| 2457 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2458 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2459 | break | |
| 2460 | end | |
| 2461 | end | |
| 2462 | disablejump = false | |
| 2463 | Rooted.Value = false | |
| 2464 | attack = false | |
| 2465 | end | |
| 2466 | function Move3() | |
| 2467 | if Mode == "Sword" then | |
| 2468 | EAbility() | |
| 2469 | end | |
| 2470 | Movement.Value = Movement.Value - 0.5 | |
| 2471 | attack = true | |
| 2472 | for i = 0, 1, 0.05 / animationspeed do | |
| 2473 | hbwait() | |
| 2474 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0.75, -1.5 + idleangle) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2475 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2476 | RW.C0 = clerp(RW.C0, cf(1.5, 0.25 + idleangle, -0.5) * angles(math.rad(35), math.rad(0), math.rad(10)) * RWC0, 0.3 / animationspeed) | |
| 2477 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, -0.5) * angles(math.rad(35), math.rad(0), math.rad(-10)) * LWC0, 0.3 / animationspeed) | |
| 2478 | RH.C0 = clerp(RH.C0, cf(1, 0.6 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(30)), 0.3 / animationspeed) | |
| 2479 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(35)), 0.3 / animationspeed) | |
| 2480 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2481 | break | |
| 2482 | end | |
| 2483 | end | |
| 2484 | local hit, pos = rayCast(Torso.Position, cf(Torso.Position, Torso.Position + vt(0, -1, 0)).lookVector, 2, Character) | |
| 2485 | if hit ~= nil then | |
| 2486 | subtractmana(skill3mana) | |
| 2487 | cooldown3 = 0 | |
| 2488 | do | |
| 2489 | local soundrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt()) | |
| 2490 | soundrefpart.Anchored = true | |
| 2491 | soundrefpart.CFrame = RootPart.CFrame * cf(0, -3, -3) | |
| 2492 | game:GetService("Debris"):AddItem(soundrefpart, 3)
| |
| 2493 | so("199145477", soundrefpart, 0.75, 1.2)
| |
| 2494 | MagicWave(hit.BrickColor, hit.Material, soundrefpart.CFrame, 7, 1, 7, 0.1, 0.1, 0.1, 0.05) | |
| 2495 | MagicRing(hit.BrickColor, hit.Material, soundrefpart.CFrame * angles(math.rad(90), 0, 0), 8, 8, 8, 0.1, 0.1, 0.1, 0.05) | |
| 2496 | local rockthing = part(3, Effects, "SmoothPlastic", 0, 0, "Medium stone grey", "Rock", vt()) | |
| 2497 | local rockthingmesh = mesh("SpecialMesh", rockthing, "FileMesh", "http://www.roblox.com/asset/?id=1290033", vt(0, 0, 0), vt(3.5, 3.5, 3.5))
| |
| 2498 | local rockthingweld = weld(LeftArm, rockthing, LeftArm, cf(-2, 3.5, 0), cf(0, 0, 0)) | |
| 2499 | for i = 0, 1, 0.5 / animationspeed do | |
| 2500 | hbwait() | |
| 2501 | local mouseposition = vt(Mouse.hit.p.x, RootPart.Position.y, Mouse.hit.p.z) | |
| 2502 | local torsoposition = RootPart.CFrame * angles(0, 0, 0) | |
| 2503 | local thecframe = cf(torsoposition.p, mouseposition) | |
| 2504 | local x, y, z = RootPart.CFrame:toObjectSpace(thecframe):toEulerAnglesXYZ() | |
| 2505 | RootJoint.C0 = clerp(RootJoint.C0, angles(x, y, z) * RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2506 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2507 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(190), math.rad(0), math.rad(10)) * RWC0, 0.3 / animationspeed) | |
| 2508 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(190), math.rad(0), math.rad(-10)) * LWC0, 0.3 / animationspeed) | |
| 2509 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2510 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2511 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2512 | break | |
| 2513 | end | |
| 2514 | end | |
| 2515 | Humanoid.AutoRotate = false | |
| 2516 | for i = 0, 1, 0.05 / animationspeed do | |
| 2517 | hbwait() | |
| 2518 | local mouseposition = vt(Mouse.hit.p.x, RootPart.Position.y, Mouse.hit.p.z) | |
| 2519 | local torsoposition = RootPart.CFrame * angles(0, 0, 0) | |
| 2520 | local thecframe = cf(torsoposition.p, mouseposition) | |
| 2521 | local x, y, z = RootPart.CFrame:toObjectSpace(thecframe):toEulerAnglesXYZ() | |
| 2522 | local randomarmcframe = math.random(-5, 5) | |
| 2523 | RootJoint.C0 = clerp(RootJoint.C0, angles(x, y, z) * RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2524 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2525 | RW.C0 = clerp(RW.C0, cf(1.5, 0.75 + idleangle, 0) * angles(math.rad(210 + randomarmcframe), math.rad(0), math.rad(10 + randomarmcframe)) * RWC0, 0.3 / animationspeed) | |
| 2526 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.75 + idleangle, 0) * angles(math.rad(210 + randomarmcframe), math.rad(0), math.rad(-10 + randomarmcframe)) * LWC0, 0.3 / animationspeed) | |
| 2527 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.3 / animationspeed) | |
| 2528 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(10)), 0.3 / animationspeed) | |
| 2529 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2530 | break | |
| 2531 | end | |
| 2532 | end | |
| 2533 | so("169445092", Torso, 1, 0.6)
| |
| 2534 | rockthingweld.Parent = nil | |
| 2535 | rockthing.Size = vt(3.5, 3.5, 3.5) | |
| 2536 | local canrocksmash = true | |
| 2537 | coroutine.resume(coroutine.create(function(rock) | |
| 2538 | wait(0.1) | |
| 2539 | rock.CanCollide = true | |
| 2540 | local rocktouching = false | |
| 2541 | while rock ~= nil and canrocksmash == true do | |
| 2542 | wait() | |
| 2543 | local rockhit, rockpos = rayCast(rock.Position, cf(rock.Position, rock.Position + vt(0, -1, 0)).lookVector, 3.5, Character) | |
| 2544 | if rockhit ~= nil and rocktouching == false then | |
| 2545 | rocktouching = true | |
| 2546 | rock.Parent = nil | |
| 2547 | canrocksmash = false | |
| 2548 | local rockhitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt()) | |
| 2549 | rockhitrefpart.Anchored = true | |
| 2550 | rockhitrefpart.CFrame = cf(rockpos) | |
| 2551 | game:GetService("Debris"):AddItem(rockhitrefpart, 3)
| |
| 2552 | for i = 1, math.random(10, 20) do | |
| 2553 | local randomsize = math.random(5, 10) / 10 | |
| 2554 | local flyingdebris = part(3, Effects, "SmoothPlastic", 0, 0, "Medium stone grey", "Effect", vt(randomsize, randomsize, randomsize)) | |
| 2555 | local flyingdebrismesh = mesh("SpecialMesh", flyingdebris, "FileMesh", "http://www.roblox.com/asset/?id=1290033", vt(0, 0, 0), vt(randomsize, randomsize, randomsize))
| |
| 2556 | flyingdebris.CanCollide = true | |
| 2557 | flyingdebris.CFrame = rockhitrefpart.CFrame * cf(math.random(-100, 100) / 100, 0, math.random(-100, 100) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) | |
| 2558 | flyingdebris.Velocity = Vector3.new(math.random(-50, 50), math.random(50, 75), math.random(-50, 50)) | |
| 2559 | game:GetService("Debris"):AddItem(flyingdebris, 5)
| |
| 2560 | coroutine.resume(coroutine.create(function(TheDebris) | |
| 2561 | wait(4) | |
| 2562 | for i = 0, 1, 0.08 do | |
| 2563 | hbwait() | |
| 2564 | TheDebris.Transparency = i | |
| 2565 | end | |
| 2566 | TheDebris.Transparency = 1 | |
| 2567 | TheDebris.Parent = nil | |
| 2568 | end), flyingdebris) | |
| 2569 | end | |
| 2570 | for i = 1, math.random(5, 10) do | |
| 2571 | local grounddebris = part(3, Effects, rockhit.Material, 0, 0, rockhit.BrickColor, "Effect", vt(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100)) | |
| 2572 | grounddebris.TopSurface = rockhit.TopSurface | |
| 2573 | grounddebris.BottomSurface = rockhit.BottomSurface | |
| 2574 | grounddebris.LeftSurface = rockhit.LeftSurface | |
| 2575 | grounddebris.RightSurface = rockhit.RightSurface | |
| 2576 | grounddebris.FrontSurface = rockhit.FrontSurface | |
| 2577 | grounddebris.BackSurface = rockhit.BackSurface | |
| 2578 | grounddebris.Anchored = true | |
| 2579 | grounddebris.CFrame = rockhitrefpart.CFrame * cf(math.random(-750, 750) / 100, 0, math.random(-750, 750) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) | |
| 2580 | game:GetService("Debris"):AddItem(grounddebris, 10)
| |
| 2581 | coroutine.resume(coroutine.create(function(TheDebris) | |
| 2582 | wait(5) | |
| 2583 | for i = 0, 1, 0.1 do | |
| 2584 | hbwait() | |
| 2585 | TheDebris.Transparency = i | |
| 2586 | end | |
| 2587 | TheDebris.Transparency = 1 | |
| 2588 | TheDebris.Parent = nil | |
| 2589 | end), grounddebris) | |
| 2590 | end | |
| 2591 | so("199145477", rockhitrefpart, 1, 0.8)
| |
| 2592 | so("199145477", rockhitrefpart, 1, 0.8)
| |
| 2593 | so("168586621", rockhitrefpart, 1, 0.8)
| |
| 2594 | MagicSpikedCrown(rockhit.BrickColor, rockhit.Material, rockhitrefpart.CFrame, 2.25, 2.25, 2.25, 0.5, 0.5, 0.5, 0.025) | |
| 2595 | MagicWave(rockhit.BrickColor, rockhit.Material, rockhitrefpart.CFrame, 2.25, 2.25, 2.25, 0.5, 0.5, 0.5, 0.025) | |
| 2596 | MagicRing(rockhit.BrickColor, rockhit.Material, rockhitrefpart.CFrame * angles(math.rad(90), 0, 0), 5.5, 5.5, 5.5, 0.5, 0.5, 0.5, 0.0125) | |
| 2597 | MagniDamage(rockhitrefpart, 15, 5, 10, 1.25, "RockHit", rock, 0, 1, 0, nil, false, true, "Movement", 0.2, 5, true) | |
| 2598 | end | |
| 2599 | end | |
| 2600 | end), rockthing) | |
| 2601 | local rockmagnitude = (Mouse.hit.p - RootPart.Position).magnitude | |
| 2602 | if rockmagnitude <= 25 then | |
| 2603 | rockthing.Velocity = (Mouse.hit.p - RootPart.Position).unit * (rockmagnitude * 1.25) + vt(0, 75, 0) | |
| 2604 | else | |
| 2605 | rockthing.Velocity = (Mouse.hit.p - RootPart.Position).unit * 50 + vt(0, 75, 0) | |
| 2606 | end | |
| 2607 | for i = 0, 1, 0.05 / animationspeed do | |
| 2608 | hbwait() | |
| 2609 | local mouseposition = vt(Mouse.hit.p.x, RootPart.Position.y, Mouse.hit.p.z) | |
| 2610 | local torsoposition = RootPart.CFrame * angles(0, 0, 0) | |
| 2611 | local thecframe = cf(torsoposition.p, mouseposition) | |
| 2612 | local x, y, z = RootPart.CFrame:toObjectSpace(thecframe):toEulerAnglesXYZ() | |
| 2613 | RootJoint.C0 = clerp(RootJoint.C0, angles(x, y, z) * RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2614 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2615 | RW.C0 = clerp(RW.C0, cf(1.25, 0.25 + idleangle, -0.25) * angles(math.rad(60), math.rad(0), math.rad(-20)) * RWC0, 0.45 / animationspeed) | |
| 2616 | LW.C0 = clerp(LW.C0, cf(-1.25, 0.25 + idleangle, -0.25) * angles(math.rad(60), math.rad(0), math.rad(20)) * LWC0, 0.45 / animationspeed) | |
| 2617 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.45 / animationspeed) | |
| 2618 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-5)), 0.45 / animationspeed) | |
| 2619 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2620 | break | |
| 2621 | end | |
| 2622 | end | |
| 2623 | end | |
| 2624 | end | |
| 2625 | Humanoid.AutoRotate = true | |
| 2626 | Movement.Value = Movement.Value + 0.5 | |
| 2627 | attack = false | |
| 2628 | end | |
| 2629 | function GroundSmash3(Origin1, Origin2) | |
| 2630 | local swordhitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt()) | |
| 2631 | swordhitrefpart.Anchored = true | |
| 2632 | swordhitrefpart.CFrame = cf(Origin2) | |
| 2633 | game:GetService("Debris"):AddItem(swordhitrefpart, 10)
| |
| 2634 | for i = 1, math.random(15, 30) do | |
| 2635 | local flyingdebris = part(3, Effects, Origin1.Material, 0, 0, Origin1.BrickColor, "Effect", vt(math.random(200, 400) / 100, math.random(200, 400) / 100, math.random(200, 400) / 100)) | |
| 2636 | flyingdebris.TopSurface = Origin1.TopSurface | |
| 2637 | flyingdebris.BottomSurface = Origin1.BottomSurface | |
| 2638 | flyingdebris.LeftSurface = Origin1.LeftSurface | |
| 2639 | flyingdebris.RightSurface = Origin1.RightSurface | |
| 2640 | flyingdebris.FrontSurface = Origin1.FrontSurface | |
| 2641 | flyingdebris.BackSurface = Origin1.BackSurface | |
| 2642 | flyingdebris.Anchored = false | |
| 2643 | flyingdebris.CFrame = swordhitrefpart.CFrame * cf(math.random(-100, 100) / 100, 0, math.random(-100, 100) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) | |
| 2644 | flyingdebris.Velocity = Vector3.new(math.random(-75, 75), math.random(75, 100), math.random(-75, 75)) | |
| 2645 | game:GetService("Debris"):AddItem(flyingdebris, 5)
| |
| 2646 | coroutine.resume(coroutine.create(function(TheDebris) | |
| 2647 | for i = 0, 1, 0.025 do | |
| 2648 | hbwait() | |
| 2649 | TheDebris.Transparency = i | |
| 2650 | end | |
| 2651 | TheDebris.Transparency = 1 | |
| 2652 | TheDebris.Parent = nil | |
| 2653 | end), flyingdebris) | |
| 2654 | end | |
| 2655 | for i = 1, math.random(20, 40) do | |
| 2656 | local grounddebris = part(3, Effects, Origin1.Material, 0, 0, Origin1.BrickColor, "Effect", vt(math.random(200, 400) / 100, math.random(200, 400) / 100, math.random(200, 400) / 100)) | |
| 2657 | grounddebris.TopSurface = Origin1.TopSurface | |
| 2658 | grounddebris.BottomSurface = Origin1.BottomSurface | |
| 2659 | grounddebris.LeftSurface = Origin1.LeftSurface | |
| 2660 | grounddebris.RightSurface = Origin1.RightSurface | |
| 2661 | grounddebris.FrontSurface = Origin1.FrontSurface | |
| 2662 | grounddebris.BackSurface = Origin1.BackSurface | |
| 2663 | grounddebris.Anchored = true | |
| 2664 | grounddebris.CFrame = swordhitrefpart.CFrame * cf(math.random(-1500, 1500) / 100, 0, math.random(-1500, 1500) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) | |
| 2665 | game:GetService("Debris"):AddItem(grounddebris, 10)
| |
| 2666 | coroutine.resume(coroutine.create(function(TheDebris) | |
| 2667 | wait(5) | |
| 2668 | for i = 0, 1, 0.1 do | |
| 2669 | hbwait() | |
| 2670 | TheDebris.Transparency = i | |
| 2671 | end | |
| 2672 | TheDebris.Transparency = 1 | |
| 2673 | TheDebris.Parent = nil | |
| 2674 | end), grounddebris) | |
| 2675 | end | |
| 2676 | for i = 1, math.random(3, 6) do | |
| 2677 | MagicBlock(Origin1.BrickColor, "SmoothPlastic", false, swordhitrefpart.CFrame, 40, 40, 40, 3, 3, 3, 0.0075) | |
| 2678 | end | |
| 2679 | MagicSpikedCrown(Origin1.BrickColor, Origin1.Material, swordhitrefpart.CFrame, 20, 20, 20, 1, 0.1, 1, 0.0075) | |
| 2680 | MagicRing(Origin1.BrickColor, Origin1.Material, swordhitrefpart.CFrame * angles(math.rad(90), 0, 0), 20, 20, 20, 1, 1, 1, 0.0075) | |
| 2681 | MagicWave(Origin1.BrickColor, Origin1.Material, swordhitrefpart.CFrame, 20, 20, 20, 0.5, 0.1, 0.5, 0.0075) | |
| 2682 | so("199145477", swordhitrefpart, 1.5, 0.6)
| |
| 2683 | so("157878578", swordhitrefpart, 1.5, 0.6)
| |
| 2684 | so("2760979", swordhitrefpart, 1.5, 0.6)
| |
| 2685 | so("168586621", swordhitrefpart, 1.5, 0.6)
| |
| 2686 | MagniDamage(swordhitrefpart, 20, 20, 30, math.random(1, 2), "RockHit", swordhitrefpart, 0.5, 1, 0, nil, false, true, "Damage", 0.2, 15, true) | |
| 2687 | end | |
| 2688 | function Move4() | |
| 2689 | if Mode == "Sword" then | |
| 2690 | EAbility() | |
| 2691 | end | |
| 2692 | attack = true | |
| 2693 | Rooted.Value = true | |
| 2694 | for i = 0, 1, 0.1 / animationspeed do | |
| 2695 | hbwait() | |
| 2696 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5 + idleangle) * angles(math.rad(15), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2697 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2698 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(15), math.rad(0), math.rad(20)) * RWC0, 0.45 / animationspeed) | |
| 2699 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(15), math.rad(0), math.rad(-20)) * LWC0, 0.45 / animationspeed) | |
| 2700 | RH.C0 = clerp(RH.C0, cf(1, 0.6 - idleangle, -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(17.5)), 0.45 / animationspeed) | |
| 2701 | LH.C0 = clerp(LH.C0, cf(-1, -0.75 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(55)), 0.45 / animationspeed) | |
| 2702 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2703 | break | |
| 2704 | end | |
| 2705 | end | |
| 2706 | Humanoid.Jump = true | |
| 2707 | Torso.Velocity = vt(0, 150, 0) | |
| 2708 | so("199145327", Torso, 1, 0.8)
| |
| 2709 | for i = 0, 1, 0.1 / animationspeed do | |
| 2710 | hbwait() | |
| 2711 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2.5 + idleangle) * angles(math.rad(0 - 360 * i), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2712 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2713 | RW.C0 = clerp(RW.C0, cf(0.75, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-70)) * RWC0, 0.45 / animationspeed) | |
| 2714 | LW.C0 = clerp(LW.C0, cf(-0.75, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(80)) * LWC0, 0.45 / animationspeed) | |
| 2715 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.45 / animationspeed) | |
| 2716 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(10)), 0.45 / animationspeed) | |
| 2717 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2718 | break | |
| 2719 | end | |
| 2720 | end | |
| 2721 | so("199145327", Torso, 1, 1)
| |
| 2722 | for i = 0, 1, 0.1 / animationspeed do | |
| 2723 | hbwait() | |
| 2724 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2.5 + idleangle) * angles(math.rad(0 - 360 * i), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2725 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.45 / animationspeed) | |
| 2726 | RW.C0 = clerp(RW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-110)) * angles(math.rad(50), math.rad(0), math.rad(0)) * RWC0, 0.45 / animationspeed) | |
| 2727 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.75 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)) * angles(math.rad(40), math.rad(0), math.rad(0)) * LWC0, 0.45 / animationspeed) | |
| 2728 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.45 / animationspeed) | |
| 2729 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(10)), 0.45 / animationspeed) | |
| 2730 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2731 | break | |
| 2732 | end | |
| 2733 | end | |
| 2734 | Mode = "Sword" | |
| 2735 | Handleweld.Part0 = LeftArm | |
| 2736 | Handleweld.C0 = cf(0.2, -2.5, 0) * angles(math.rad(90), math.rad(20), math.rad(160)) | |
| 2737 | Movement.Value = Movement.Value - 0.4 | |
| 2738 | Defense.Value = Defense.Value + 0.2 | |
| 2739 | Damage.Value = Damage.Value + 0.5 | |
| 2740 | for i = 0, 1, 0.1 / animationspeed do | |
| 2741 | hbwait() | |
| 2742 | Torso.Velocity = vt(0, 2.25, 0) | |
| 2743 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2.5 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2744 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2745 | RW.C0 = clerp(RW.C0, cf(1, 0.75 + idleangle, 0) * angles(math.rad(210), math.rad(0), math.rad(-45)) * RWC0, 0.45 / animationspeed) | |
| 2746 | LW.C0 = clerp(LW.C0, cf(-1, 0.75 + idleangle, 0) * angles(math.rad(210), math.rad(0), math.rad(45)) * LWC0, 0.45 / animationspeed) | |
| 2747 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.45 / animationspeed) | |
| 2748 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.45 / animationspeed) | |
| 2749 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(135)), 0.45 / animationspeed) | |
| 2750 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2751 | break | |
| 2752 | end | |
| 2753 | end | |
| 2754 | for i = 1, 1 do | |
| 2755 | so("199145327", Torso, 1, 1.2)
| |
| 2756 | for i = 0, 1, 0.1 / animationspeed do | |
| 2757 | hbwait() | |
| 2758 | Torso.Velocity = vt(0, 2.25, 0) | |
| 2759 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2.5 + idleangle) * angles(math.rad(10 + 360 * i), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2760 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2761 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(45), math.rad(0), math.rad(-45)) * RWC0, 0.45 / animationspeed) | |
| 2762 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(45), math.rad(0), math.rad(45)) * LWC0, 0.45 / animationspeed) | |
| 2763 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.45 / animationspeed) | |
| 2764 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(10)), 0.45 / animationspeed) | |
| 2765 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2766 | break | |
| 2767 | end | |
| 2768 | end | |
| 2769 | end | |
| 2770 | local swordhit | |
| 2771 | while swordhit == nil do | |
| 2772 | hbwait() | |
| 2773 | swordhit, swordpos = rayCast(Hitbox.Position, cf(Hitbox.Position, Hitbox.Position + vt(0, -1, 0)).lookVector, 3, Character) | |
| 2774 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2775 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2776 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-45)) * RWC0, 0.45 / animationspeed) | |
| 2777 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(45)) * angles(math.rad(0), math.rad(180), math.rad(0)) * LWC0, 0.45 / animationspeed) | |
| 2778 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(45)), 0.45 / animationspeed) | |
| 2779 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-45)), 0.45 / animationspeed) | |
| 2780 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.45 / animationspeed) | |
| 2781 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true or swordhit ~= nil then | |
| 2782 | break | |
| 2783 | end | |
| 2784 | end | |
| 2785 | GroundSmash3(swordhit, swordpos) | |
| 2786 | for i = 0, 1, 0.2 / animationspeed do | |
| 2787 | hbwait() | |
| 2788 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2789 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2790 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-45)) * RWC0, 0.45 / animationspeed) | |
| 2791 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(45)) * angles(math.rad(0), math.rad(180), math.rad(0)) * LWC0, 0.45 / animationspeed) | |
| 2792 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(45)), 0.45 / animationspeed) | |
| 2793 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-45)), 0.45 / animationspeed) | |
| 2794 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.45 / animationspeed) | |
| 2795 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2796 | break | |
| 2797 | end | |
| 2798 | end | |
| 2799 | for i = 0, 1, 0.05 / animationspeed do | |
| 2800 | hbwait() | |
| 2801 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3 / animationspeed) | |
| 2802 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed) | |
| 2803 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-45)) * RWC0, 0.45 / animationspeed) | |
| 2804 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(45)) * angles(math.rad(0), math.rad(180), math.rad(0)) * LWC0, 0.45 / animationspeed) | |
| 2805 | RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(12.5)), 0.45 / animationspeed) | |
| 2806 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(30)), 0.45 / animationspeed) | |
| 2807 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.45 / animationspeed) | |
| 2808 | if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then | |
| 2809 | break | |
| 2810 | end | |
| 2811 | end | |
| 2812 | Rooted.Value = false | |
| 2813 | attack = false | |
| 2814 | end | |
| 2815 | hold = false | |
| 2816 | Mouse.Button1Down:connect(function() | |
| 2817 | if attack == true or equipped == false then | |
| 2818 | return | |
| 2819 | end | |
| 2820 | hold = true | |
| 2821 | if attacktype == 1 then | |
| 2822 | attacktype = 2 | |
| 2823 | Attack1() | |
| 2824 | elseif attacktype == 2 then | |
| 2825 | attacktype = 3 | |
| 2826 | Attack2() | |
| 2827 | elseif attacktype == 3 then | |
| 2828 | attacktype = 4 | |
| 2829 | Attack3() | |
| 2830 | elseif attacktype == 4 then | |
| 2831 | attacktype = 1 | |
| 2832 | Attack4() | |
| 2833 | end | |
| 2834 | coroutine.resume(coroutine.create(function() | |
| 2835 | for i = 1, 50 do | |
| 2836 | if attack == false then | |
| 2837 | hbwait(1) | |
| 2838 | end | |
| 2839 | end | |
| 2840 | if attack == false then | |
| 2841 | attacktype = 1 | |
| 2842 | end | |
| 2843 | end)) | |
| 2844 | end) | |
| 2845 | if allowhopperbin == true then | |
| 2846 | function ob1u(Mouse) | |
| 2847 | hold = false | |
| 2848 | end | |
| 2849 | end | |
| 2850 | Mouse.KeyDown:connect(function(key) | |
| 2851 | if key == "f" and canunequiporequip == true and attack == false then | |
| 2852 | if equipped == false then | |
| 2853 | equipped = true | |
| 2854 | if disableanimate == true then | |
| 2855 | Animate.Disabled = true | |
| 2856 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 2857 | idleanimation:Play() | |
| 2858 | end | |
| 2859 | if disableanimator == true then | |
| 2860 | Animator.Parent = nil | |
| 2861 | end | |
| 2862 | if disablemovingarms == true then | |
| 2863 | RW.Parent = Torso | |
| 2864 | LW.Parent = Torso | |
| 2865 | RSH.Parent = nil | |
| 2866 | LSH.Parent = nil | |
| 2867 | end | |
| 2868 | equipanim() | |
| 2869 | elseif equipped == true then | |
| 2870 | equipped = false | |
| 2871 | unequipanim() | |
| 2872 | hbwait() | |
| 2873 | if disablemovingarms == true then | |
| 2874 | RW.Parent = nil | |
| 2875 | LW.Parent = nil | |
| 2876 | RSH.Parent = Torso | |
| 2877 | LSH.Parent = Torso | |
| 2878 | end | |
| 2879 | if disableanimator == true then | |
| 2880 | Animator.Parent = Humanoid | |
| 2881 | end | |
| 2882 | if disableanimate == true then | |
| 2883 | Animate.Disabled = false | |
| 2884 | end | |
| 2885 | end | |
| 2886 | end | |
| 2887 | if key == "g" and equipped == true then | |
| 2888 | if attack == false and dancing == false then | |
| 2889 | Dance() | |
| 2890 | elseif dancing == true then | |
| 2891 | dancing = false | |
| 2892 | end | |
| 2893 | end | |
| 2894 | if key == "e" and attack == false and equipped == true then | |
| 2895 | if Mana.Value >= 10 and Mode == "Normal" then | |
| 2896 | subtractmana(10) | |
| 2897 | EAbility() | |
| 2898 | elseif Mode == "Sword" then | |
| 2899 | subtractmana(10) | |
| 2900 | EAbility() | |
| 2901 | end | |
| 2902 | end | |
| 2903 | if key == "z" and attack == false and equipped == true and cooldown1 >= co1 and Mana.Value >= skill1mana then | |
| 2904 | subtractmana(skill1mana) | |
| 2905 | cooldown1 = 0 | |
| 2906 | Move1() | |
| 2907 | end | |
| 2908 | if key == "x" and attack == false and equipped == true and cooldown2 >= co2 and Mana.Value >= skill2mana then | |
| 2909 | subtractmana(skill2mana) | |
| 2910 | cooldown2 = 0 | |
| 2911 | Move2() | |
| 2912 | end | |
| 2913 | if key == "c" and attack == false and equipped == true and cooldown3 >= co3 and Mana.Value >= skill3mana then | |
| 2914 | Move3() | |
| 2915 | end | |
| 2916 | if key == "v" and attack == false and equipped == true and cooldown4 >= co4 and Mana.Value >= skill4mana then | |
| 2917 | subtractmana(skill4mana) | |
| 2918 | cooldown4 = 0 | |
| 2919 | Move4() | |
| 2920 | end | |
| 2921 | if key == "q" then | |
| 2922 | Mana.Value = 100 | |
| 2923 | cooldown1 = co1 | |
| 2924 | cooldown2 = co2 | |
| 2925 | cooldown3 = co3 | |
| 2926 | cooldown4 = co4 | |
| 2927 | end | |
| 2928 | if key == "p" then | |
| 2929 | StaggerHitAnim.Value = true | |
| 2930 | end | |
| 2931 | if key == "[" then | |
| 2932 | StaggerAnim.Value = true | |
| 2933 | end | |
| 2934 | if key == "]" then | |
| 2935 | StunAnim.Value = true | |
| 2936 | end | |
| 2937 | end) | |
| 2938 | Mouse.KeyUp:connect(function(key2) | |
| 2939 | if key2 == "x" and move2charging == true then | |
| 2940 | move2charging = false | |
| 2941 | end | |
| 2942 | end) | |
| 2943 | if allowhopperbin == true then | |
| 2944 | function s(Mouse) | |
| 2945 | Mouse.Button1Down:connect(function() | |
| 2946 | ob1d(Mouse) | |
| 2947 | end) | |
| 2948 | Mouse.Button1Up:connect(function() | |
| 2949 | ob1u(Mouse) | |
| 2950 | end) | |
| 2951 | Mouse.KeyDown:connect(key) | |
| 2952 | Mouse.KeyUp:connect(key2) | |
| 2953 | end | |
| 2954 | end | |
| 2955 | if allowhopperbin == true then | |
| 2956 | function ds(Mouse) | |
| 2957 | end | |
| 2958 | end | |
| 2959 | if allowhopperbin == true then | |
| 2960 | Bin.Selected:connect(s) | |
| 2961 | Bin.Deselected:connect(ds) | |
| 2962 | end | |
| 2963 | function updateskills() | |
| 2964 | if allowabilitiestofunction == true then | |
| 2965 | if cooldown1 <= co1 then | |
| 2966 | cooldown1 = cooldown1 + 0.03333333333333333 | |
| 2967 | if cooldown1 >= co1 then | |
| 2968 | cooldown1 = co1 | |
| 2969 | end | |
| 2970 | end | |
| 2971 | if cooldown2 <= co2 then | |
| 2972 | cooldown2 = cooldown2 + 0.03333333333333333 | |
| 2973 | if cooldown2 >= co2 then | |
| 2974 | cooldown2 = co2 | |
| 2975 | end | |
| 2976 | end | |
| 2977 | if cooldown3 <= co3 then | |
| 2978 | cooldown3 = cooldown3 + 0.03333333333333333 | |
| 2979 | if cooldown3 >= co3 then | |
| 2980 | cooldown3 = co3 | |
| 2981 | end | |
| 2982 | end | |
| 2983 | if cooldown4 <= co4 then | |
| 2984 | cooldown4 = cooldown4 + 0.03333333333333333 | |
| 2985 | if cooldown4 >= co4 then | |
| 2986 | cooldown4 = co4 | |
| 2987 | end | |
| 2988 | end | |
| 2989 | if changebarcolorsifnotenoughmana == true then | |
| 2990 | if Mana.Value <= skill1mana then | |
| 2991 | bar4.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
| 2992 | else | |
| 2993 | bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 2994 | end | |
| 2995 | if Mana.Value <= skill2mana then | |
| 2996 | bar3.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
| 2997 | else | |
| 2998 | bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 2999 | end | |
| 3000 | if Mana.Value <= skill3mana then | |
| 3001 | bar1.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
| 3002 | else | |
| 3003 | bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 3004 | end | |
| 3005 | if Mana.Value <= skill4mana then | |
| 3006 | bar2.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
| 3007 | else | |
| 3008 | bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 3009 | end | |
| 3010 | elseif changebarcolorsifnotenoughmana == false then | |
| 3011 | bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 3012 | bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 3013 | bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 3014 | bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 3015 | end | |
| 3016 | end | |
| 3017 | if alternatemanaregensystem == false then | |
| 3018 | if Mana.Value <= maxmana then | |
| 3019 | Mana.Value = Mana.Value + recovermana / 30 | |
| 3020 | elseif Mana.Value >= maxmana then | |
| 3021 | Mana.Value = maxmana | |
| 3022 | end | |
| 3023 | elseif alternatemanaregensystem == true then | |
| 3024 | if Mode == "Normal" then | |
| 3025 | if Mana.Value >= maxmana then | |
| 3026 | Mana.Value = maxmana | |
| 3027 | elseif manadelay <= manawait then | |
| 3028 | manadelay = manadelay + 1 | |
| 3029 | else | |
| 3030 | manadelay = 0 | |
| 3031 | Mana.Value = Mana.Value + 1 | |
| 3032 | end | |
| 3033 | elseif Mode == "Sword" then | |
| 3034 | if Mana.Value <= 0 then | |
| 3035 | Mana.Value = 0 | |
| 3036 | elseif manadelay <= manawait then | |
| 3037 | manadelay = manadelay + 1 | |
| 3038 | else | |
| 3039 | manadelay = 0 | |
| 3040 | Mana.Value = Mana.Value - 1 | |
| 3041 | end | |
| 3042 | end | |
| 3043 | end | |
| 3044 | if allowstunbar == true then | |
| 3045 | if StunValue.Value <= 0 then | |
| 3046 | StunValue.Value = 0 | |
| 3047 | elseif stundelay <= stunwait then | |
| 3048 | stundelay = stundelay + 1 | |
| 3049 | else | |
| 3050 | stundelay = 0 | |
| 3051 | StunValue.Value = StunValue.Value - 1 | |
| 3052 | end | |
| 3053 | elseif allowstunbar == false then | |
| 3054 | StunValue.Value = 0 | |
| 3055 | end | |
| 3056 | end | |
| 3057 | if allowmenutofunction == true then | |
| 3058 | ArtificialHB.Event:connect(function() | |
| 3059 | updateskills() | |
| 3060 | if allowabilitiestofunction == true then | |
| 3061 | framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3062 | framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3063 | framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3064 | framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3065 | bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3066 | bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3067 | bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3068 | bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3069 | end | |
| 3070 | manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3071 | manacover:TweenSize(ud(1 * (Mana.Value / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3072 | healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3073 | healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3074 | if allowstunbar == true and showstunbar == true and stunframe ~= nil then | |
| 3075 | stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3076 | stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3077 | end | |
| 3078 | if showhealthmanaandstunnumbers == true then | |
| 3079 | manatext.Text = "Mana [" .. math.floor(Mana.Value) .. "]" | |
| 3080 | healthtext.Text = "Health [" .. math.floor(Humanoid.Health) .. "]" | |
| 3081 | if allowstunbar == true and showstunbar == true then | |
| 3082 | stuntext.Text = "Stun [" .. math.floor(StunValue.Value) .. "]" | |
| 3083 | end | |
| 3084 | end | |
| 3085 | if showstats == true then | |
| 3086 | defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3087 | damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3088 | movementframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 3089 | if 0 < Defense.Value then | |
| 3090 | defensetext.Text = "Defense: " .. Defense.Value | |
| 3091 | elseif 0 >= Defense.Value then | |
| 3092 | defensetext.Text = "Defense: 0" | |
| 3093 | end | |
| 3094 | if 0 < Damage.Value then | |
| 3095 | damagetext.Text = "Damage: " .. Damage.Value | |
| 3096 | elseif 0 >= Damage.Value then | |
| 3097 | damagetext.Text = "Damage: 0" | |
| 3098 | end | |
| 3099 | if Rooted.Value == false then | |
| 3100 | movementtext.Text = "Movement: " .. Movement.Value | |
| 3101 | elseif Rooted.Value == true or 0 >= Movement.Value then | |
| 3102 | movementtext.Text = "Movement: 0" | |
| 3103 | end | |
| 3104 | end | |
| 3105 | end) | |
| 3106 | end | |
| 3107 | function positiveangle(thingy) | |
| 3108 | if thingy > 0 then | |
| 3109 | thingy = 0 | |
| 3110 | end | |
| 3111 | return thingy | |
| 3112 | end | |
| 3113 | function negativeangle(thingy) | |
| 3114 | if thingy < 0 then | |
| 3115 | thingy = 0 | |
| 3116 | end | |
| 3117 | return thingy | |
| 3118 | end | |
| 3119 | while true do | |
| 3120 | hbwait() | |
| 3121 | if Hitbox ~= nil then | |
| 3122 | if attack == true then | |
| 3123 | Hitbox.Name = "Hitbox" | |
| 3124 | elseif attack == false then | |
| 3125 | Hitbox.Name = "NilHitbox" | |
| 3126 | end | |
| 3127 | end | |
| 3128 | if Humanoid.Health > 0 then | |
| 3129 | if walkspeeddependsonmovementvalue == true then | |
| 3130 | if Movement.Value < 0 or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true or Rooted.Value == true then | |
| 3131 | Humanoid.WalkSpeed = 0 | |
| 3132 | else | |
| 3133 | Humanoid.WalkSpeed = 16 * Movement.Value | |
| 3134 | end | |
| 3135 | end | |
| 3136 | if maxstun <= StunValue.Value then | |
| 3137 | StunValue.Value = 0 | |
| 3138 | StunAnim.Value = true | |
| 3139 | end | |
| 3140 | if StaggerAnim.Value == true and staggeranim == false then | |
| 3141 | coroutine.resume(coroutine.create(function() | |
| 3142 | staggeranim = true | |
| 3143 | while attack == true do | |
| 3144 | hbwait() | |
| 3145 | end | |
| 3146 | Stagger() | |
| 3147 | StaggerAnim.Value = false | |
| 3148 | staggeranim = false | |
| 3149 | end)) | |
| 3150 | end | |
| 3151 | if StaggerHitAnim.Value == true and staggerhitanim == false then | |
| 3152 | coroutine.resume(coroutine.create(function() | |
| 3153 | staggerhitanim = true | |
| 3154 | while attack == true do | |
| 3155 | hbwait() | |
| 3156 | end | |
| 3157 | StaggerHit() | |
| 3158 | StaggerHitAnim.Value = false | |
| 3159 | staggerhitanim = false | |
| 3160 | end)) | |
| 3161 | end | |
| 3162 | if StunAnim.Value == true and stunanim == false or StunValue.Value >= 100 then | |
| 3163 | coroutine.resume(coroutine.create(function() | |
| 3164 | StunValue.Value = 0 | |
| 3165 | stunanim = true | |
| 3166 | while attack == true do | |
| 3167 | hbwait() | |
| 3168 | end | |
| 3169 | Stun() | |
| 3170 | StunAnim.Value = false | |
| 3171 | stunanim = false | |
| 3172 | end)) | |
| 3173 | end | |
| 3174 | if Mode == "Sword" and Mana.Value <= 0 and changeanim == false then | |
| 3175 | coroutine.resume(coroutine.create(function() | |
| 3176 | changeanim = true | |
| 3177 | while attack == true do | |
| 3178 | hbwait() | |
| 3179 | end | |
| 3180 | EAbility() | |
| 3181 | changeanim = false | |
| 3182 | end)) | |
| 3183 | end | |
| 3184 | Head.Running.Pitch = 1.85 * (Humanoid.WalkSpeed / 16) | |
| 3185 | sine = sine + change | |
| 3186 | someangle = someangle % 100 + change2 / 10 | |
| 3187 | local walkspeedthingy = 7 - 1 * (Humanoid.WalkSpeed / 16) | |
| 3188 | local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude | |
| 3189 | local velderp = RootPart.Velocity.y | |
| 3190 | local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position) | |
| 3191 | hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character) | |
| 3192 | if donum >= 0.5 then | |
| 3193 | handidle = true | |
| 3194 | elseif donum <= 0 then | |
| 3195 | handidle = false | |
| 3196 | end | |
| 3197 | if handidle == false then | |
| 3198 | donum = donum + 0.003 / animationspeed | |
| 3199 | else | |
| 3200 | donum = donum - 0.003 / animationspeed | |
| 3201 | end | |
| 3202 | if equipped == true or equipped == false then | |
| 3203 | if attack == false then | |
| 3204 | idle = idle + 1 | |
| 3205 | else | |
| 3206 | idle = 0 | |
| 3207 | end | |
| 3208 | if leftarm == true then | |
| 3209 | if Anim == "Walk" and equipped == true and attack == false then | |
| 3210 | if alternatewalk == false then | |
| 3211 | if walkinganim == true then | |
| 3212 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3213 | else | |
| 3214 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3215 | end | |
| 3216 | elseif walkinganim == true then | |
| 3217 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3218 | else | |
| 3219 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3220 | end | |
| 3221 | elseif Anim ~= "Walk" and equipped == true or attack == true or leftarm == false then | |
| 3222 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3223 | end | |
| 3224 | end | |
| 3225 | if rightarm == true then | |
| 3226 | if Anim == "Walk" and equipped == true and attack == false then | |
| 3227 | if alternatewalk == false then | |
| 3228 | if walkinganim == true then | |
| 3229 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3230 | else | |
| 3231 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3232 | end | |
| 3233 | elseif walkinganim == true then | |
| 3234 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3235 | else | |
| 3236 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3237 | end | |
| 3238 | elseif Anim ~= "Walk" and equipped == true or attack == true or rightarm == false then | |
| 3239 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3240 | end | |
| 3241 | end | |
| 3242 | if allowwalking == true then | |
| 3243 | if Anim == "Walk" and equipped == true then | |
| 3244 | if alternatewalk == false then | |
| 3245 | if walkinganim == true then | |
| 3246 | RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3247 | LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3248 | else | |
| 3249 | RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3250 | LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3251 | end | |
| 3252 | elseif walkinganim == true then | |
| 3253 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3254 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3255 | else | |
| 3256 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3257 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 3258 | end | |
| 3259 | elseif Anim ~= "Walk" and equipped == true then | |
| 3260 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3261 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3262 | end | |
| 3263 | end | |
| 3264 | if Anim == "Walk" and equipped == true then | |
| 3265 | RH.C1 = clerp(RH.C1, RHC1 * cf(0.25 * math.cos(sine / walkspeedthingy), -0.15 - 0.25 * math.sin(sine / walkspeedthingy), 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10 + 60 * math.cos(sine / walkspeedthingy))), 0.2 / animationspeed * (Humanoid.WalkSpeed / 16)) | |
| 3266 | LH.C1 = clerp(LH.C1, LHC1 * cf(0.25 * math.cos(sine / walkspeedthingy), -0.15 + 0.25 * math.sin(sine / walkspeedthingy), 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10 + 60 * math.cos(sine / walkspeedthingy))), 0.2 / animationspeed * (Humanoid.WalkSpeed / 16)) | |
| 3267 | elseif Anim ~= "Walk" or equipped == false then | |
| 3268 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3269 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3270 | end | |
| 3271 | if velderp > 1 and hitfloor == nil then | |
| 3272 | Anim = "Jump" | |
| 3273 | if Mode == "Normal" then | |
| 3274 | if attack == false and equipped == true then | |
| 3275 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3276 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3277 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-40), math.rad(0), math.rad(20)) * RWC0, 0.2 / animationspeed) | |
| 3278 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40), math.rad(0), math.rad(-20)) * LWC0, 0.2 / animationspeed) | |
| 3279 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.2 / animationspeed) | |
| 3280 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.2 / animationspeed) | |
| 3281 | end | |
| 3282 | elseif Mode == "Sword" and attack == false and equipped == true then | |
| 3283 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3284 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3285 | RW.C0 = clerp(RW.C0, cf(-0.25, 0.25 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-55)) * angles(math.rad(-40), math.rad(-50), math.rad(0)) * RWC0, 0.2 / animationspeed) | |
| 3286 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(20), math.rad(0), math.rad(-5)) * angles(math.rad(0), math.rad(160), math.rad(0)) * LWC0, 0.2 / animationspeed) | |
| 3287 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.2 / animationspeed) | |
| 3288 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.2 / animationspeed) | |
| 3289 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(5), math.rad(0), math.rad(-5)), 0.2 / animationspeed) | |
| 3290 | end | |
| 3291 | elseif velderp < -1 and hitfloor == nil then | |
| 3292 | Anim = "Fall" | |
| 3293 | if Mode == "Normal" then | |
| 3294 | if attack == false and equipped == true then | |
| 3295 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3296 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3297 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(60)) * RWC0, 0.2 / animationspeed) | |
| 3298 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)) * LWC0, 0.2 / animationspeed) | |
| 3299 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2 / animationspeed) | |
| 3300 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.2 / animationspeed) | |
| 3301 | end | |
| 3302 | elseif Mode == "Sword" and attack == false and equipped == true then | |
| 3303 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3304 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3305 | RW.C0 = clerp(RW.C0, cf(-0.25, 0.25 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-55)) * angles(math.rad(-40), math.rad(-50), math.rad(0)) * RWC0, 0.2 / animationspeed) | |
| 3306 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(20), math.rad(0), math.rad(-5)) * angles(math.rad(0), math.rad(160), math.rad(0)) * LWC0, 0.2 / animationspeed) | |
| 3307 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2 / animationspeed) | |
| 3308 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.2 / animationspeed) | |
| 3309 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(5), math.rad(0), math.rad(-5)), 0.2 / animationspeed) | |
| 3310 | end | |
| 3311 | elseif torvel < 1 and hitfloor ~= nil then | |
| 3312 | Anim = "Idle" | |
| 3313 | if Mode == "Normal" then | |
| 3314 | if attack == false and equipped == true then | |
| 3315 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0.02 * math.cos(sine / 30), -0.1 + idleangle) * angles(math.rad(2.5 - 1.25 * math.cos(sine / 30)), math.rad(0), math.rad(20)), 0.15 / animationspeed) | |
| 3316 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * angles(math.rad(2.5 - 1.25 * math.sin(sine / 30)), math.rad(0), math.rad(0)), 0.15 / animationspeed) | |
| 3317 | RW.C0 = clerp(RW.C0, cf(1.5, 0.25 + idleangle, 0 - 0.05 * math.sin(sine / 30)) * angles(math.rad(110 + 5 * math.sin(sine / 30)), math.rad(0), math.rad(-10 + 2.5 * math.cos(sine / 30))) * RWC0, 0.15 / animationspeed) | |
| 3318 | LW.C0 = clerp(LW.C0, cf(-1.25, 0.25 + idleangle, -0.25 + 0.05 * math.sin(sine / 30)) * angles(math.rad(120 - 5 * math.cos(sine / 30)), math.rad(0), math.rad(20 - 2.5 * math.sin(sine / 30))) * LWC0, 0.15 / animationspeed) | |
| 3319 | RH.C0 = clerp(RH.C0, cf(1, -0.9 - idleangle, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(5 - 1.25 * math.cos(sine / 30))), 0.15 / animationspeed) | |
| 3320 | LH.C0 = clerp(LH.C0, cf(-1, -0.875 + 0.025 * math.cos(sine / 30) - idleangle, 0.25) * angles(math.rad(0), math.rad(-60), math.rad(0)) * angles(math.rad(-5 - 1.25 * math.cos(sine / 30)), math.rad(0), math.rad(1.25 + 1.25 * math.cos(sine / 30))), 0.15 / animationspeed) | |
| 3321 | end | |
| 3322 | elseif Mode == "Sword" and attack == false and equipped == true then | |
| 3323 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0.02 * math.cos(sine / 30), -0.1 + idleangle) * angles(math.rad(2.5 - 1.25 * math.cos(sine / 30)), math.rad(0), math.rad(20)), 0.15 / animationspeed) | |
| 3324 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * angles(math.rad(2.5 - 1.25 * math.sin(sine / 30)), math.rad(0), math.rad(0)), 0.15 / animationspeed) | |
| 3325 | RW.C0 = clerp(RW.C0, cf(-0.25, 0.25 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-55)) * angles(math.rad(-40 - 1.25 * math.cos(sine / 30)), math.rad(-50), math.rad(0)) * RWC0, 0.15 / animationspeed) | |
| 3326 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(20 - 1.25 * math.cos(sine / 30)), math.rad(0), math.rad(-5)) * angles(math.rad(0), math.rad(160), math.rad(0)) * LWC0, 0.15 / animationspeed) | |
| 3327 | RH.C0 = clerp(RH.C0, cf(1, -0.9 - idleangle, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(5 - 1.25 * math.cos(sine / 30))), 0.15 / animationspeed) | |
| 3328 | LH.C0 = clerp(LH.C0, cf(-1, -0.875 + 0.025 * math.cos(sine / 30) - idleangle, 0.25) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-5 - 1.25 * math.cos(sine / 30)), math.rad(0), math.rad(1.25 + 1.25 * math.cos(sine / 30))), 0.15 / animationspeed) | |
| 3329 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(5), math.rad(0), math.rad(-5)), 0.15 / animationspeed) | |
| 3330 | end | |
| 3331 | elseif torvel > 1 and hitfloor ~= nil then | |
| 3332 | Anim = "Walk" | |
| 3333 | walk = walk + 1 / animationspeed | |
| 3334 | if walk >= 15 - 5 * (Humanoid.WalkSpeed / 16) then | |
| 3335 | walk = 0 | |
| 3336 | if walkinganim == true then | |
| 3337 | walkinganim = false | |
| 3338 | elseif walkinganim == false then | |
| 3339 | walkinganim = true | |
| 3340 | end | |
| 3341 | end | |
| 3342 | if Mode == "Normal" then | |
| 3343 | if attack == false and equipped == true then | |
| 3344 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.05 * math.cos(sine / (walkspeedthingy / 2)) + idleangle) * angles(math.rad(2.5), math.rad(0) + RootPart.RotVelocity.Y / 100, math.rad(10 + 2.5 * math.cos(sine / walkspeedthingy))), 0.2 / animationspeed) | |
| 3345 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10 - 2.5 * math.cos(sine / walkspeedthingy)) + Head.RotVelocity.Y / 20) * angles(math.rad(2.5 - 1 * math.sin(sine / (walkspeedthingy / 2))), math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3346 | RW.C0 = clerp(RW.C0, cf(1.5, 0.25 + idleangle, 0) * angles(math.rad(100 - 1 * math.sin(sine / (walkspeedthingy / 2))), math.rad(0), math.rad(-20)) * RWC0, 0.2 / animationspeed) | |
| 3347 | LW.C0 = clerp(LW.C0, cf(-1.25, 0.25 + idleangle, -0.25) * angles(math.rad(120 - 1 * math.sin(sine / (walkspeedthingy / 2))), math.rad(0), math.rad(30)) * LWC0, 0.2 / animationspeed) | |
| 3348 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(0) + RightLeg.RotVelocity.Y / 100, math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3349 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-100), math.rad(0)) * angles(math.rad(0) - LeftLeg.RotVelocity.Y / 100, math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3350 | end | |
| 3351 | elseif Mode == "Sword" and attack == false and equipped == true then | |
| 3352 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.05 * math.cos(sine / (walkspeedthingy / 2)) + idleangle) * angles(math.rad(0), math.rad(0) + RootPart.RotVelocity.Y / 100, math.rad(30 + 2.5 * math.cos(sine / walkspeedthingy))), 0.2 / animationspeed) | |
| 3353 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)) * angles(math.rad(2.5 - 1 * math.sin(sine / (walkspeedthingy / 2))), math.rad(0), math.rad(0 - 2.5 * math.cos(sine / walkspeedthingy)) + Head.RotVelocity.Y / 20), 0.2 / animationspeed) | |
| 3354 | RW.C0 = clerp(RW.C0, cf(-0.25, 0.25 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-55)) * angles(math.rad(-40), math.rad(-50), math.rad(0)) * RWC0, 0.2 / animationspeed) | |
| 3355 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(20), math.rad(0), math.rad(-5)) * angles(math.rad(0), math.rad(150 - 2.5 * math.cos(sine / walkspeedthingy)), math.rad(0)) * LWC0, 0.2 / animationspeed) | |
| 3356 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(60 - 2.5 * math.cos(sine / walkspeedthingy)), math.rad(0)) * angles(math.rad(0) + RightLeg.RotVelocity.Y / 100, math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3357 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.25) * angles(math.rad(0), math.rad(-120 - 2.5 * math.cos(sine / walkspeedthingy)), math.rad(0)) * angles(math.rad(0) - LeftLeg.RotVelocity.Y / 100, math.rad(0), math.rad(0)), 0.2 / animationspeed) | |
| 3358 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(5 - 0.5 * math.cos(sine / walkspeedthingy)), math.rad(0), math.rad(-5)), 0.2 / animationspeed) | |
| 3359 | end | |
| 3360 | end | |
| 3361 | end | |
| 3362 | end | |
| 3363 | end |