SHOW:
|
|
- or go back to the newest paste.
| 1 | - | findname = "Bl0xx3rTheAc3" |
| 1 | + | Player = game:GetService("Players").LocalPlayer
|
| 2 | - | script.Parent = game:GetService'Players':FindFirstChild(findname) ~= nil and game:GetService'Players':FindFirstChild(findname) |
| 2 | + | Character = Player.Character |
| 3 | - | sn = table.concat({"SC","ythe"})
|
| 3 | + | PlayerGui = Player.PlayerGui |
| 4 | - | spd = 0.125 -- (1/SPD) = FramesPerSecond:> |
| 4 | + | Backpack = Player.Backpack |
| 5 | - | d = {75,100} -- dmg
|
| 5 | + | Torso = Character.Torso |
| 6 | - | Decs={}
|
| 6 | + | Head = Character.Head |
| 7 | - | Decs.Totem = "35624068" |
| 7 | + | Humanoid = Character.Humanoid |
| 8 | - | Decs.Tornado = "1051557" |
| 8 | + | RootPart = Character.HumanoidRootPart |
| 9 | - | Decs.SpikeBall = "9982590" |
| 9 | + | RootJoint = RootPart.RootJoint |
| 10 | - | Decs.Fist = "65322375" |
| 10 | + | LeftArm = Character["Left Arm"] |
| 11 | - | Decs.RedCliffT = "49754754" |
| 11 | + | LeftLeg = Character["Left Leg"] |
| 12 | - | Decs.RedCliff = "49754655" |
| 12 | + | RightArm = Character["Right Arm"] |
| 13 | - | Decs.Chakram = "18430887" |
| 13 | + | RightLeg = Character["Right Leg"] |
| 14 | - | Decs.Chakram2 = "47260990" |
| 14 | + | LS = Torso["Left Shoulder"] |
| 15 | - | Decs.Chakram3 = "19251107" |
| 15 | + | LH = Torso["Left Hip"] |
| 16 | - | Decs.Diamond = "9756362" |
| 16 | + | RS = Torso["Right Shoulder"] |
| 17 | - | Decs.Sword1 = "rbxasset://fonts/s" .. "word.mesh" |
| 17 | + | RH = Torso["Right Hip"] |
| 18 | - | Decs.EF1 = "64467174" |
| 18 | + | Humanoid.MaxHealth = math.huge |
| 19 | - | Decs.TSkull1="36869975" |
| 19 | + | wait() |
| 20 | - | Decs.Skull1="36869983" |
| 20 | + | Humanoid.Health = Humanoid.MaxHealth |
| 21 | - | Decs.Shield1="60120613" Decs.Ring="3270017" Decs.Shine="48965808" Decs.Crack="49173398" Decs.Cloud="1095708" Decs.Spike="1033714" Decs.Rock="1290033" Decs.Crown="20329976" Decs.Crown2="1323306" |
| 21 | + | local BC = Character["Body Colors"] |
| 22 | - | Decs.SplinteredSkyT="50798688" Decs.SplinteredSky="50798664" |
| 22 | + | BC.HeadColor = BrickColor.new("Pastel brown")
|
| 23 | - | e = string.char p = game:service'Players' l = game:service'Lighting' w = workspace -- dirteh useless funkshuns bel0w |
| 23 | + | BC.LeftArmColor = BrickColor.new("Pastel brown")
|
| 24 | - | w = wait wt = 0.1 s=script q = function(f) coroutine.resume(coroutine.create(function() f() end)) end |
| 24 | + | BC.LeftLegColor = BrickColor.new("Pastel brown")
|
| 25 | - | loadstring(string.reverse([[ dar.htam=dr ip.htam=ip selgnA.emarFC=ac wen.emarFC=nc wen.2miDU=du wen.3roloC=3c wen.3rotceV=3v wen.ecnatsnI=ti]]))() |
| 25 | + | BC.RightArmColor = BrickColor.new("Pastel brown")
|
| 26 | - | --q(function() loadstring(string.reverse(workspace.CurrentCamera[e(84) ..e(119) ..e(105) ..e(127) ..e(127) ..e(127) ..e(127) ..e(127) ..e(127) ..e(127) ..e(127) ..e(127) ..e(127) ..e(108) ..e(105) ..e(103) ..e(104) ..e(116) ..e(83) ..e(112) ..e(97) ..e(114) ..e(107) ..e(108) ..e(101)].Value))() end) |
| 26 | + | BC.RightLegColor = BrickColor.new("Pastel brown")
|
| 27 | - | v310 = v3(1/0,1/0,1/0) bc=BrickColor.new ab=math.abs de=math.deg ts=tostring tn=tonumber ti=table.insert tr=table.remove cw=function(func) coroutine.resume(coroutine.create(function() func() end)) end |
| 27 | + | BC.TorsoColor = BrickColor.new("Pastel brown")
|
| 28 | - | mf=math.floor sf=string.find sb=string.sub rn=math.random |
| 28 | + | for i,v in pairs(Character:children()) do |
| 29 | - | function ft(tablez,item) for i=1,#tablez do if tablez[i] == item then return i end end return nil end |
| 29 | + | if v:IsA("Shirt") then
|
| 30 | - | qi = function(ttz) local qii = it(ttz[1],ttz[2]) table.foreach(ttz,function(oi,oi2) if oi ~= 1 and oi ~= 2 then qii[oi] = oi2 end end) return qii end |
| 30 | + | v:Destroy() |
| 31 | - | function ft2(tablez,item) for i=1,#tablez do if tablez[i][1] == item then return i end end return nil end |
| 31 | + | end |
| 32 | - | function re(par,obj) if type(par) ~= "userdata" or type(obj) ~= "string" then return nil end if par:findFirstChild(obj) then par[obj]:Remove'' end end |
| 32 | + | end |
| 33 | - | function pa(pa,pn,sh,x,y,z,c,a,tr,re,bc2) local fp=nil if sh ~= "Wedge" and sh ~= "CornerWedge" then fp=it("Part",pa) fp.Shape=sh fp.formFactor="Custom" elseif sh == "Wedge" then fp=it("WedgePart",pa) fp.formFactor="Custom"
|
| 33 | + | for i,v in pairs(Character:children()) do |
| 34 | - | elseif sh == "CornerWedge" then fp=it("CornerWedgePart",pa) end fp.Size=v3(x,y,z) fp.CanCollide=c fp.Anchored=false fp.BrickColor=bc(bc2) fp.Transparency=tr fp.Reflectance=re fp.BottomSurface=0 fp.Name=pn --fp.FrontSurface="Hinge"
|
| 34 | + | if v:IsA("Pants") then
|
| 35 | - | fp.TopSurface=0 fp:BreakJoints() fp.Anchored = a return fp end |
| 35 | + | v:Destroy() |
| 36 | - | function clearit(tab) for xx=1,#tab do tab[xx]:Remove'' end end |
| 36 | + | end |
| 37 | - | function weld(pa,p0,p1,x,y,z,a,b,c) local fw=it("Weld",pa) fw.Part0=p0 fw.Part1=p1 fw.C0=cn(x,y,z) *ca(a,b,c) return fw end
|
| 37 | + | end |
| 38 | - | function fade(prt,incr) q(function() for i=prt.Transparency,1,incr do prt.Transparency=i w() end prt:Remove'' end) end |
| 38 | + | ------Face---------- |
| 39 | - | function appear(prt,incr) q(function() for i=1,0,-incr do prt.Transparency=i w() end end) end |
| 39 | + | Character.Head.face.Texture = "rbxassetid://848633777" |
| 40 | - | function stick(hit2,hit) local weld=it("Weld") weld.Part0=hit2 weld.Part1=hit local HitPos=hit2.Position local CJ=cn(HitPos)
|
| 40 | + | ------Remover------- |
| 41 | - | local C0=hit2.CFrame:inverse() *CJ local C1=hit.CFrame:inverse() * CJ weld.C0=C0 weld.C1=C1 weld.Parent=hit2 end |
| 41 | + | |
| 42 | - | function stick2(hit2,hit,tostick) local weld=it("Weld") weld.Part0=tostick weld.Part1=hit2 local HitPos=hit.Position local CJ=cn(HitPos) local C0=hit2.CFrame:inverse() *CJ local C1=hit.CFrame:inverse() * CJ weld.C0=C1 weld.C1=C0 weld.Parent=hit2 end
|
| 42 | + | -------------------- |
| 43 | - | function invis(o) for i,v in pairs(o:children()) do if v:IsA("BasePart") then v.Transparency=1 end invis(v) end end
|
| 43 | + | CV="Maroon" |
| 44 | - | function newhats(p,o,o2) for i,v in pairs(p:children()) do if v:IsA("Hat") then v.Handle.Transparency = 1 local np=v.Handle:Clone'' np.Transparency=0 np.Mesh.Scale=np.Mesh.Scale*1.1 np.Parent=o np.CFrame=v.Handle.CFrame stick2(np,o2,o) end end end
|
| 44 | + | Player = game.Players.LocalPlayer |
| 45 | - | function ray(Pos, Dir,xxz) local xxz2=c if xxz ~= nil then xxz2=nil end return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999),xxz2) end |
| 45 | + | char = Player.Character |
| 46 | - | function findclass(prt,cls) clases=0 for i,v in pairs(prt:children()) do if v.className:lower() == cls:lower() then clases=clases + 1 end end return clases end |
| 46 | + | local txt = Instance.new("BillboardGui", Character)
|
| 47 | - | function getclass(prt,cls) for i,v in pairs(prt:children()) do if v.className:lower() == cls:lower() then return v end end return nil end |
| 47 | + | txt.Adornee = Character .Head |
| 48 | - | function rtab(tabz,obj) for i=1,#tabz do if tabz[i] == obj then tr(tabz,i) break end end end |
| 48 | + | txt.Name = "_status" |
| 49 | - | function RandomPlayer(spiz) local torz=spis local torses={} for i,v in pairs(Serv.kx:children()) do if v ~= Serv.kx.LocalPlayer and v.Character ~= nil and v.Character:findFirstChild("Torso") then ti(torses,v.Character.Torso) end end if #torses > 0 then torz=torses[rn(1,#torses)] end return torz end
|
| 49 | + | txt.Size = UDim2.new(2, 0, 1.2, 0) |
| 50 | - | function FDesDes(ob,str) for i,v in pairs(ob:children()) do if v.Name:lower() == str:lower() then return true end return FDesDes(v,str) end end |
| 50 | + | txt.StudsOffset = Vector3.new(-9, 8, 0) |
| 51 | - | deb = function(ob,it) game:service'Debris':AddItem(ob,it) end |
| 51 | + | local text = Instance.new("TextLabel", txt)
|
| 52 | - | function RandomExplosionColor() colz={"New Yeller","Bright yellow","Neon orange","Deep orange","White","Bright red"} return colz[rn(1,#colz)] end
|
| 52 | + | text.Size = UDim2.new(10, 0, 7, 0) |
| 53 | - | function findhum(anc) for i,vx in pairs(anc:children()) do if vx:IsA("Humanoid") then return vx end end return nil end
|
| 53 | + | text.FontSize = "Size24" |
| 54 | - | Lightning = function(p0,p1,tym,ofs,col,th,tra) -- start end times offset color thickness |
| 54 | + | text.TextScaled = true |
| 55 | - | local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
|
| 55 | + | text.TextTransparency = 0 |
| 56 | - | for i=1,tym do |
| 56 | + | text.BackgroundTransparency = 1 |
| 57 | - | local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
|
| 57 | + | text.TextTransparency = 0 |
| 58 | - | li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) |
| 58 | + | text.TextStrokeTransparency = 0 |
| 59 | - | local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz |
| 59 | + | text.Font = "Antique" |
| 60 | - | if tym == i then |
| 60 | + | text.TextStrokeColor3 = Color3.new(255,209,0) |
| 61 | - | local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2) |
| 61 | + | |
| 62 | - | li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2) |
| 62 | + | v=Instance.new("Part")
|
| 63 | - | else |
| 63 | + | v.Name = "ColorBrick" |
| 64 | - | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2) |
| 64 | + | v.Parent=Player.Character |
| 65 | - | end |
| 65 | + | v.FormFactor="Symmetric" |
| 66 | - | curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,0.25) |
| 66 | + | v.Anchored=true |
| 67 | - | end |
| 67 | + | v.CanCollide=false |
| 68 | - | end |
| 68 | + | v.BottomSurface="Smooth" |
| 69 | - | function Trail(ob,times,waitz,col,thickz,ofz) q(function() local oldpos=(ob.CFrame *ofz).p for i=1,times do local obp=(ob.CFrame *ofz).p local mag=(oldpos - obp).magnitude local tr=pa(ob,"trail","Block",0,0,0,false,false,0.5,0.15,col) tr.Anchored=true tr.CFrame=cn(oldpos,obp) tr.CFrame=tr.CFrame + tr.CFrame.lookVector* (mag/2) |
| 69 | + | v.TopSurface="Smooth" |
| 70 | - | local trm=it("CylinderMesh",tr) trm.Scale=v3(5*thickz,mag*5,5*thickz) q(function() for i=5*thickz,0,-5*thickz/10 do trm.Scale=v3(i,mag*5,i) w() end tr:Remove'' end) tr.CFrame=tr.CFrame *ca(rd(90),0,0) oldpos=obp w(waitz) end end) end
|
| 70 | + | v.Size=Vector3.new(10,5,3) |
| 71 | - | sTrail={}
|
| 71 | + | v.Transparency=1 |
| 72 | - | function Trail2(lopz,ob,waitz,col,thickz,ofz) q(function() ti(sTrail,ob) |
| 72 | + | v.CFrame=Character.Torso.CFrame |
| 73 | - | local oldpos=(ob.CFrame *ofz).p local lopz2=0 |
| 73 | + | v.BrickColor=BrickColor.new(CV) |
| 74 | - | local function loltr() local obp=(ob.CFrame *ofz).p lopz2=lopz2 + 1 |
| 74 | + | v.Transparency=1 |
| 75 | - | local mag=(oldpos - obp).magnitude |
| 75 | + | text.TextColor3 = Color3.new(255,0,0) |
| 76 | - | local tr=pa(ob,"trail","Block",0,0,0,false,false,0.5,0.15,col) tr.Anchored=true |
| 76 | + | v.Shape="Block" |
| 77 | - | tr.CFrame=cn(oldpos,obp) |
| 77 | + | text.Text = "The Soviet Comrade" |
| 78 | - | tr.CFrame=tr.CFrame + tr.CFrame.lookVector* (mag/2) |
| 78 | + | -------------------- |
| 79 | - | local trm=it("CylinderMesh",tr) trm.Scale=v3(5*thickz,mag*5,5*thickz)
|
| 79 | + | shirt = Instance.new("Shirt", Character)
|
| 80 | - | q(function() for i=5*thickz,0,-5*thickz/10 do trm.Scale=v3(i,mag*5,i) w() end tr:Remove'' end) |
| 80 | + | shirt.Name = "Shirt" |
| 81 | - | tr.CFrame=tr.CFrame *ca(rd(90),0,0) oldpos=obp end |
| 81 | + | pants = Instance.new("Pants", Character)
|
| 82 | - | repeat loltr() |
| 82 | + | pants.Name = "Pants" |
| 83 | - | w(waitz) until ft(sTrail,ob) == nil or lopz2 == lopz loltr() end) end |
| 83 | + | Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=783793947" |
| 84 | - | asset="http://www.roblox.com/asset/?id=" |
| 84 | + | Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=772209829" |
| 85 | - | table.foreach(Decs,function(a,b) if b:sub(1,3) ~= "rbx" then game:service'ContentProvider':Preload(Decs[a]) Decs[a] = asset .. Decs[a] game:service'ContentProvider':Preload(Decs[a]) end end) |
| 85 | + | sound = Instance.new("Sound", Head)
|
| 86 | - | a={}
|
| 86 | + | sound.SoundId = "rbxassetid://563523012" |
| 87 | - | a.ClickHold=0 |
| 87 | + | sound.Volume = 100000000 |
| 88 | - | a.c=true -- weapon change or act debounce |
| 88 | + | sound.EmitterSize = 25 |
| 89 | - | a.s={}
|
| 89 | + | sound.Pitch = 0.9 |
| 90 | - | a.cr={20,1.5}
|
| 90 | + | sound:Play() |
| 91 | - | ky = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"," "}
|
| 91 | + | sound.Looped = true |
| 92 | - | Anim = "None" |
| 92 | + | Face = Head.face |
| 93 | - | mouse = nil |
| 93 | + | Neck = Torso.Neck |
| 94 | - | Sounds={
|
| 94 | + | it = Instance.new |
| 95 | - | Break="3264793"; |
| 95 | + | vt = Vector3.new |
| 96 | - | Berserk="2676305"; |
| 96 | + | cf = CFrame.new |
| 97 | - | Fire1="2760979"; |
| 97 | + | rad = math.rad |
| 98 | - | Imbue="2785493"; |
| 98 | + | euler = CFrame.fromEulerAnglesXYZ |
| 99 | - | Ghost="3264923"; |
| 99 | + | angles = CFrame.Angles |
| 100 | - | Block="rbxasset://sounds\\metal.ogg"; |
| 100 | + | Mouse = Player:GetMouse() |
| 101 | - | Boom="16976189"; |
| 101 | + | coroutine.resume(coroutine.create(function() |
| 102 | - | SniperFire="1369158"; |
| 102 | + | game.StarterGui:SetCore("ChatMakeSystemMessage", {
|
| 103 | - | ShotgunFire2="1868836"; |
| 103 | + | Text = "Made by PixelFir3. Edited by this scrub : CommiehComrade"; |
| 104 | - | MinigunFire="2692806"; |
| 104 | + | Color = Color3.new(0, 1, 1); |
| 105 | - | MinigunCharge="2692844"; |
| 105 | + | Font = Enum.Font.Code; |
| 106 | - | MinigunDischarge="1753007"; |
| 106 | + | FontSize = Enum.FontSize.Size24; |
| 107 | - | Flashbang="16976189"; |
| 107 | + | }) |
| 108 | - | Beep="15666462"; |
| 108 | + | end)) |
| 109 | - | Smash="2801263"; |
| 109 | + | ArtificialHB = Instance.new("BindableEvent", script)
|
| 110 | - | Punch="31173820"; |
| 110 | + | ArtificialHB.Name = "ArtificialHB" |
| 111 | - | Slash="rbxasset://sounds/swordslash.wav"; |
| 111 | + | script:WaitForChild("ArtificialHB")
|
| 112 | - | Falcon="1387390"; |
| 112 | + | frame = 0.016666666666667 |
| 113 | - | Cast="2101137"; |
| 113 | + | tf = 0 |
| 114 | - | Spin="1369159"; |
| 114 | + | allowframeloss = false |
| 115 | - | Abscond="2767090"; |
| 115 | + | tossremainder = false |
| 116 | - | ElectricalCharge="2800815"; |
| 116 | + | lastframe = tick() |
| 117 | - | FireExplosion="3264793"; |
| 117 | + | script.ArtificialHB:Fire() |
| 118 | - | SaberLightUp="10209303"; |
| 118 | + | game:GetService("RunService").Heartbeat:connect(function(s, p)
|
| 119 | - | SaberSlash="10209280"; |
| 119 | + | |
| 120 | - | SaberHit="44463749"; |
| 120 | + | tf = tf + s |
| 121 | - | EnergyBlast="10209268"; |
| 121 | + | if frame <= tf then |
| 122 | - | Lunge="rbxasset://sounds/swordlunge.wav"; |
| 122 | + | if allowframeloss then |
| 123 | - | Unsheath="rbxasset://sounds/unsheath.wav"; |
| 123 | + | script.ArtificialHB:Fire() |
| 124 | - | } |
| 124 | + | lastframe = tick() |
| 125 | - | wss = 16 |
| 125 | + | else |
| 126 | - | caw = true |
| 126 | + | for i = 1, math.floor(tf / frame) do |
| 127 | - | pl = p.LocalPlayer |
| 127 | + | script.ArtificialHB:Fire() |
| 128 | - | bp = pl.Backpack |
| 128 | + | end |
| 129 | - | pg = pl.PlayerGui |
| 129 | + | lastframe = tick() |
| 130 | - | c = pl.Character |
| 130 | + | end |
| 131 | - | to = c.Torso |
| 131 | + | if tossremainder then |
| 132 | - | he = c.Head he.face.Face = "Bottom" |
| 132 | + | tf = 0 |
| 133 | - | hu =c.Humanoid |
| 133 | + | else |
| 134 | - | q(function() bp[sn]:Remove() end) |
| 134 | + | tf = tf - frame * math.floor(tf / frame) |
| 135 | - | local su = it("Model",c) su.Name = "Suit1"
|
| 135 | + | end |
| 136 | - | cl = "className" local caram = "CharacterMesh" |
| 136 | + | end |
| 137 | - | for i,v in pairs(to:children()) do if v[cl]=="BodyGyro" or v[cl]=="BodyPosition" or v[cl]=="Hat" or v[cl]=="CharacterMesh" then v:Remove() end end |
| 137 | + | end |
| 138 | - | for i,v in pairs(c:children()) do if v[cl]=="BodyGyro" or v[cl]=="BodyPosition" or v[cl]=="Hat" or v[cl]==caram then v:Remove() end end |
| 138 | + | ) |
| 139 | - | pcall(function() c.Block:Remove() end) |
| 139 | + | local animationspeed = 2 |
| 140 | - | local block = qi({"BoolValue",c,Value=false,Name="Block"})
|
| 140 | + | hbwait = function(number) |
| 141 | - | local hd=he:Clone'' |
| 141 | + | |
| 142 | - | to.Transparency = 1 |
| 142 | + | if number == 0 or number == nil then |
| 143 | - | he.Transparency = 1 |
| 143 | + | ArtificialHB.Event:wait() |
| 144 | - | a.Bodyas=0 |
| 144 | + | else |
| 145 | - | a.insw={}
|
| 145 | + | for i = 0, number do |
| 146 | - | function cleanweld(wexx,namzi) local tn=ft2(a.insw,wexx) if tn==nil then return end |
| 146 | + | ArtificialHB.Event:wait() |
| 147 | - | if namzi=="p0" then |
| 147 | + | end |
| 148 | - | a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=0,0,0 elseif namzi=="p1" then |
| 148 | + | end |
| 149 | - | a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=0,0,0 elseif namzi=="a0" then |
| 149 | + | end |
| 150 | - | a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=0,0,0 elseif namzi=="a1" then |
| 150 | + | |
| 151 | - | a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=0,0,0 |
| 151 | + | local Stats = Instance.new("Folder", Character)
|
| 152 | - | end |
| 152 | + | Stats.Name = "Stats" |
| 153 | - | end |
| 153 | + | local Defense = Instance.new("NumberValue", Stats)
|
| 154 | - | function ws(ii) |
| 154 | + | Defense.Name = "Defense" |
| 155 | - | wss = ii |
| 155 | + | Defense.Value = 0.1 |
| 156 | - | end |
| 156 | + | local Movement = Instance.new("NumberValue", Stats)
|
| 157 | - | function c2(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz,fu) q(function() c1(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz,fu) end) end |
| 157 | + | Movement.Name = "Movement" |
| 158 | - | a.Welding=0 function c1(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz,fu) |
| 158 | + | Movement.Value = 0.35 |
| 159 | - | if ft2(a.insw,wexx)==nil then ti(a.insw,{wexx,{}}) local tn=ft2(a.insw,wexx)
|
| 159 | + | local Damage = Instance.new("NumberValue", Stats)
|
| 160 | - | a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=wexx.C0.x,wexx.C0.y,wexx.C0.z |
| 160 | + | Damage.Name = "Damage" |
| 161 | - | a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=wexx.C1.x,wexx.C1.y,wexx.C1.z |
| 161 | + | Damage.Value = 0 |
| 162 | - | a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=wexx.C0:toEulerAnglesXYZ() |
| 162 | + | local Mana = Instance.new("NumberValue", Stats)
|
| 163 | - | a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=wexx.C1:toEulerAnglesXYZ() end local tn=ft2(a.insw,wexx) |
| 163 | + | Mana.Name = "Mana" |
| 164 | - | local xx2,yy2,zz2=0,0,0 local x2,y2,z2=0,0,0 if c0orc1==0 then |
| 164 | + | Mana.Value = 0 |
| 165 | - | xx2,yy2,zz2=a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"] x2,y2,z2=a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"] elseif c0orc1==1 then xx2,yy2,zz2=a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"] x2,y2,z2=a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"] else xx2,yy2,zz2=a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"] |
| 165 | + | local Rooted = Instance.new("BoolValue", Stats)
|
| 166 | - | x2,y2,z2=a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"] end a.Welding=a.Welding + 1 local twa=1 if smmx >= 1 then else |
| 166 | + | Rooted.Name = "Rooted" |
| 167 | - | for i=smmx,0.8,smmx do twa = 1 if c0orc1==0 then wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) elseif c0orc1==1 then |
| 167 | + | Rooted.Value = false |
| 168 | - | wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) else wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) |
| 168 | + | local BlockValue = Instance.new("BoolValue", Stats)
|
| 169 | - | wexx.C1=ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))end if fu then q(fu) end w() end |
| 169 | + | BlockValue.Name = "BlockValue" |
| 170 | - | for i=0.8,1,smmx*0.45 do twa = 1 if c0orc1==0 then wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) elseif c0orc1==1 then |
| 170 | + | BlockValue.Value = false |
| 171 | - | wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) else wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) |
| 171 | + | local StaggerHitAnim = Instance.new("BoolValue", Stats)
|
| 172 | - | wexx.C1=ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))end if fu then q(fu) end w() end |
| 172 | + | StaggerHitAnim.Name = "StaggerHitAnim" |
| 173 | - | end |
| 173 | + | StaggerHitAnim.Value = false |
| 174 | - | local i=1 if c0orc1==0 then wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) elseif c0orc1==1 then wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) |
| 174 | + | local StaggerAnim = Instance.new("BoolValue", Stats)
|
| 175 | - | else wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) wexx.C1=ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) end a.Welding=a.Welding - 1 local tn=ft2(a.insw,wexx) |
| 175 | + | StaggerAnim.Name = "StaggerAnim" |
| 176 | - | if c0orc1==0 then |
| 176 | + | StaggerAnim.Value = false |
| 177 | - | a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i) |
| 177 | + | local StunAnim = Instance.new("BoolValue", Stats)
|
| 178 | - | a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i) |
| 178 | + | StunAnim.Name = "StunAnim" |
| 179 | - | elseif c0orc1==1 then |
| 179 | + | StunAnim.Value = false |
| 180 | - | a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i) |
| 180 | + | local StunValue = Instance.new("NumberValue", Stats)
|
| 181 | - | a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i) |
| 181 | + | StunValue.Name = "StunValue" |
| 182 | - | elseif c0orc1==3 then |
| 182 | + | StunValue.Value = 0 |
| 183 | - | local x,y,z=wexx.C0.x,wexx.C0.y,wexx.C0.z |
| 183 | + | local CanCrit = Instance.new("BoolValue", Stats)
|
| 184 | - | a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i) |
| 184 | + | CanCrit.Name = "CanCrit" |
| 185 | - | local x,y,z=wexx.C1:toEulerAnglesXYZ() |
| 185 | + | CanCrit.Value = false |
| 186 | - | a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i) |
| 186 | + | local CritChance = Instance.new("NumberValue", Stats)
|
| 187 | - | end end |
| 187 | + | CritChance.Name = "CritChance" |
| 188 | - | to["Left Hip"].Part0=to to["Right Hip"].Part0=to to["Left Shoulder"].Part0=to to["Right Shoulder"].Part0=to |
| 188 | + | CritChance.Value = 20 |
| 189 | - | --"http://www.roblox.com/asset?id=67168288" |
| 189 | + | local CanPenetrateArmor = Instance.new("BoolValue", Stats)
|
| 190 | - | tk = true |
| 190 | + | CanPenetrateArmor.Name = "CanPenetrateArmor" |
| 191 | - | p={}
|
| 191 | + | CanPenetrateArmor.Value = false |
| 192 | - | t=pa(su,"Torso","Block",1.99,1.99,1,false,false,0,0,ts(to.BrickColor)) |
| 192 | + | local AntiTeamKill = Instance.new("BoolValue", Stats)
|
| 193 | - | la=pa(su,"Left Arm","Block",0,0,0,false,false,0,0,ts(c["Left Arm"].BrickColor)) law=weld(la,t,la,-1.5,1,0,0,0,0) |
| 193 | + | AntiTeamKill.Name = "AntiTeamKill" |
| 194 | - | ra=pa(su,"Right Arm","Block",0,0,0,false,false,0,0,ts(c["Right Arm"].BrickColor)) raw=weld(ra,t,ra,1.5,1,0,0,0,0) |
| 194 | + | AntiTeamKill.Value = false |
| 195 | - | ll=pa(su,"Left Leg","Block",0,0,0,false,false,0,0,ts(c["Left Leg"].BrickColor)) llw=weld(ll,t,ll,-0.5,-1,0,0,0,0) |
| 195 | + | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
| 196 | - | rl=pa(su,"Right Leg","Block",0,0,0,false,false,0,0,ts(c["Right Leg"].BrickColor)) rlw=weld(rl,t,rl,0.5,-1,0,0,0,0) |
| 196 | + | RootCF = angles(rad(-90), 0, rad(180)) |
| 197 | - | local hd2 = hd:Clone() |
| 197 | + | local idle = 0 |
| 198 | - | hd2.Parent = su |
| 198 | + | local Anim = "Idle" |
| 199 | - | hd2.Transparency = 0 |
| 199 | + | local animtype = math.floor(math.random(1, 3)) |
| 200 | - | hd2.face.Face = "Front" |
| 200 | + | local attacktype = 1 |
| 201 | - | hd2.Name = "FakeHead" |
| 201 | + | local attack = false |
| 202 | - | hd2.Mesh.MeshId="http://www.roblox.com/asset/?id=21057410" |
| 202 | + | local equipped = false |
| 203 | - | hd2.Mesh.TextureId="http://www.roblox.com/asset/?id=21057378" |
| 203 | + | local LastPoint = nil |
| 204 | - | hw=weld(hd2,t,hd2,0,1.5,0,0,0,0) |
| 204 | + | local staggerhitanim = false |
| 205 | - | hd.Name = "Head" hd.Parent=su hd.Transparency=1 hd.face:Remove() hw2=weld(hd,t,hd,0,1.5,0,0,0,0) |
| 205 | + | local staggeranim = false |
| 206 | - | tw=weld(t,to,t,0,0,0,0,0,0) |
| 206 | + | local stunanim = false |
| 207 | - | local fhu = it("Humanoid",su) fhu.MaxHealth = 1/0 fhu.PlatformStand = true fhu.Name = ""
|
| 207 | + | local CritChanceNumber = 0 |
| 208 | - | pcall(function() c.Shirt:Clone().Parent = su end) |
| 208 | + | local idlen = 0 |
| 209 | - | lh = to["Left Hip"] rh = to["Right Hip"] ls = to["Left Shoulder"] rs = to["Right Shoulder"] |
| 209 | + | local donum = 0 |
| 210 | - | lh.Part0=t rh.Part0=t ls.Part0=t rs.Part0=t |
| 210 | + | local sine = 0 |
| 211 | - | law2 = it("Weld",la) raw2 = it("Weld",ra) llw2 = it("Weld",ll) rlw2 = it("Weld",rl)
|
| 211 | + | local change = 2 / animationspeed |
| 212 | - | law2.Part0 = la raw2.Part0 = ra llw2.Part0 =ll rlw2.Part0 = rl |
| 212 | + | local walkinganim = false |
| 213 | - | law2.C0 = cn(0,-1,0) raw2.C0 = cn(0,-1,0) llw2.C0 = cn(0,-1,0) rlw2.C0 = cn(0,-1,0) |
| 213 | + | local handidle = false |
| 214 | - | la.Transparency=1 ra.Transparency=1 ll.Transparency=1 rl.Transparency=1 |
| 214 | + | local walk = 0 |
| 215 | - | c["Left Arm"].Transparency = 0 c["Right Arm"].Transparency = 0 |
| 215 | + | local stundelay = 0 |
| 216 | - | c["Left Leg"].Transparency = 0 c["Right Leg"].Transparency = 0 |
| 216 | + | local manadelay = 0 |
| 217 | - | Armb=true Armb2=true |
| 217 | + | local robloxidleanimation = Instance.new("Animation", Torso)
|
| 218 | - | Legb=true Legb2=true |
| 218 | + | robloxidleanimation.Name = "robloxidleanimation" |
| 219 | - | function Armz(ison) Armb=ison if ison then |
| 219 | + | robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571" |
| 220 | - | law.Part0=c["Left Arm"] law.C0=cn(-1.5,1,0) raw.Part0=c["Right Arm"] raw.C0=cn(1.5,1,0) |
| 220 | + | local Animator = Humanoid:FindFirstChild("Animator")
|
| 221 | - | ls.Part1 = c["Left Arm"] rs.Part1 = c["Right Arm"] law2.Part1 = la raw2.Part1 = ra |
| 221 | + | local Animate = Character:FindFirstChild("Animate")
|
| 222 | - | else |
| 222 | + | local HitPlayerSounds = {199149137, 199149186, 199149221, 199149235, 199149269, 199149297}
|
| 223 | - | law2.Part0 = la law2.Part1 = c["Left Arm"] raw2.Part0 = ra raw2.Part1 = c["Right Arm"] |
| 223 | + | local HitArmorSounds = {199149321, 199149338, 199149367, 199149409, 199149452}
|
| 224 | - | ls.Part1 = t rs.Part1 = t law.Part0=t law.C0=cn(-1.5,1,0) raw.Part0=t raw.C0=cn(1.5,1,0) |
| 224 | + | local HitWeaponSounds = {199148971, 199149025, 199149072, 199149109, 199149119}
|
| 225 | - | end end |
| 225 | + | local HitBlockSounds = {199148933, 199148947}
|
| 226 | - | function Legz(ison) Legb=ison if ison then |
| 226 | + | local cooldown1 = 0 |
| 227 | - | llw.Part0=c["Left Leg"] llw.C0=cn(-0.5,-1,0) rlw.Part0=c["Right Leg"] rlw.C0=cn(0.5,-1,0) |
| 227 | + | local cooldown2 = 0 |
| 228 | - | lh.Part1 = c["Left Leg"] rh.Part1 = c["Right Leg"] llw2.Part1 = ll rlw2.Part1 = rl |
| 228 | + | local cooldown3 = 0 |
| 229 | - | else |
| 229 | + | local cooldown4 = 0 |
| 230 | - | llw2.Part0 = ll llw2.Part1 = c["Left Leg"] rlw2.Part0 = rl rlw2.Part1 = c["Right Leg"] |
| 230 | + | local scrn = Instance.new("ScreenGui", PlayerGui)
|
| 231 | - | lh.Part1 = t rh.Part1 = t llw.Part0=t llw.C0=cn(-0.5,-1,0) rlw.Part0=t rlw.C0=cn(0.5,-1,0) |
| 231 | + | local ud = UDim2.new |
| 232 | - | end end function Headz(ison) if ison then he.Transparency=0 else end end |
| 232 | + | local c3 = Color3.new |
| 233 | - | Armz(true) Legz(true) --newhats(c,hd2,he) |
| 233 | + | local skillcolorscheme = c3(1, 1, 1) |
| 234 | - | hax2sazc = "SND" |
| 234 | + | subtractmana = function(k) |
| 235 | - | function Sound(sidz,pit,vol,parz) local sid=sidz if sid:sub(1,3) ~= "rbx" then sid = asset .. sid end local parx = to if parz then parx = parz end q(function() local sou = it("Sound") sou.SoundId = sid sou.Pitch = pit sou.Volume = vol/1.5 sou.Parent = parx game:service'Lighting'[hax2sazc].Value = sou w(5) sou:Remove'' end) end
|
| 235 | + | |
| 236 | - | Sound("Your_F*cking_Name_here",1,1,he)
|
| 236 | + | if k <= Mana.Value then |
| 237 | - | function SplashDmg(tehsit,pos,dmgx,mag,forc,fu) q(function() |
| 237 | + | Mana.Value = Mana.Value - k |
| 238 | - | local function dive(obj) for i,v in pairs(obj:children()) do if i%(#obj:children()/5)==0 then w() end --if i%antisplashdamagesexhack==0 then w() end --i%(#obj:children()/4)==0 then w() end |
| 238 | + | end |
| 239 | - | if not v:IsA("Model") and v ~= to and v:IsA("BasePart") and v.Name=="Torso" and getclass(v.Parent,"Humanoid") ~= nil and (v.Position - pos).magnitude < mag then local av=getclass(v.Parent,"Humanoid") Dmgz(true,av,dmgx,v,fu) if tehsit then av.Sit=true end
|
| 239 | + | end |
| 240 | - | --elseif v:IsA("BasePart") and (v.Position-pos).magnitude < mag and not v.Anchored and v:GetMass() < 200 and v.Name ~= "Handle" and findclass(v.Parent,"Humanoid") <1 and findclass(v.Parent.Parent,"Humanoid") <1 and v.Parent.Parent.Name ~= "Suit" then if (v.Position-pos).magnitude < mag/2 then v:BreakJoints() v.CFrame=cn(v.Position,pos)*ca(0,rd(180),0) end v.Velocity=cn(pos,v.Position).lookVector*forc
|
| 240 | + | |
| 241 | - | else q(function() if #v:children() > 0 and not v:IsA("BasePart") and v.className~="Script" and v.className~="Camera" then dive(v) end end) end
|
| 241 | + | local co1 = 0 |
| 242 | - | end end -- func and loop end |
| 242 | + | local co2 = 0 |
| 243 | - | dive(workspace) dive(workspace.CurrentCamera) end) end |
| 243 | + | local co3 = 0 |
| 244 | - | for i,v in pairs(c:children()) do if v.Name == su.Name and v ~= su then v:Remove() end end |
| 244 | + | local co4 = 0 |
| 245 | - | function BlastMesh(col2,pos,adjus2,sc) local adjus=adjus2 *cn(0,-0.12*sc,0) local spi=pa(m,"","Block",0,0,0,false,false,1,0,col2) spi.Anchored=true local spim=it("SpecialMesh",spi) spim.MeshType="FileMesh" spim.MeshId=Decs.Crown spim.Scale=v3(sc*1.4,(sc*0.4),sc*1.4) q(function() local fu=spim.Scale local spix=0 for i=1,0.4,-0.05 do spix=spix + 15 spi.Transparency=i spim.Scale=v3(((fu.x*i)/2)+(fu.x/2),fu.y,((fu.z*i)/2)+(fu.z/2)) spi.CFrame=pos.CFrame *adjus *ca(0,rd(spix),0) w() end for i=0.4,1,0.05 do spix=spix + 15 spi.Transparency=i spim.Scale=v3(fu.x*i,fu.y,fu.z*i) spi.CFrame=pos.CFrame *adjus *ca(0,rd(spix),0) w() end spi:Remove'' end) end
|
| 245 | + | local maxmana = 0 |
| 246 | - | function GlowMesh(anch,meshid2,rootz,mv3,colzz,adjus,l1,l2,l3) q(function() |
| 246 | + | local maxstun = 1 |
| 247 | - | local spi=pa(c,"","Block",1,1,1,false,false,l1,0,colzz) local spim=it("SpecialMesh",spi) if meshid2:lower()=="sphere" then spim.MeshType="Sphere" elseif meshid2:lower()=="block" then spim.MeshType="Brick" else spim.MeshType="FileMesh" spim.MeshId=meshid2 end
|
| 247 | + | local recovermana = 0 |
| 248 | - | if anch then local spiw=weld(spi,rootz,spi,0,0,0,0,0,0) spiw.C0 =spiw.C0 *adjus else spi.Anchored=true spi.CFrame=adjus end |
| 248 | + | local losestun = 0 |
| 249 | - | for i=l1,l2,l1 do spi.Transparency=i spim.Scale=mv3*(i+0.3) w() end spi:Remove'' end) |
| 249 | + | local stunwait = 0 |
| 250 | - | end |
| 250 | + | local manawait = 0 |
| 251 | - | function Explode(onb,scz,colzz,dmge) q(function() local scale=scz*2 local scale2=scale*0.825 |
| 251 | + | local skill1mana = 0 |
| 252 | - | local e1=pa(c,"","Block",0,0,0,false,false,0.3,0,colzz) e1.Anchored=true e1.CFrame=onb*ca(rd(-90),0,0) local e1m=it("SpecialMesh",e1) e1m.MeshType="FileMesh" e1m.MeshId=Decs.Ring
|
| 252 | + | local skill2mana = 0 |
| 253 | - | local e2=pa(c,"","Block",0,0,0,false,false,0.3,0,colzz) e2.Anchored=true e2.CFrame=onb*ca(0,0,0) local e2m=it("SpecialMesh",e2) e2m.MeshType="FileMesh" e2m.MeshId=Decs.Ring
|
| 253 | + | local skill3mana = 0 |
| 254 | - | local e3=pa(c,"","Block",0,0,0,false,false,0.3,0,colzz) e3.Anchored=true e3.CFrame=onb*ca(0,0,0) local e3m=it("SpecialMesh",e3) e3m.MeshType="FileMesh" e3m.MeshId=Decs.Crown
|
| 254 | + | local skill4mana = 0 |
| 255 | - | SplashDmg(false,onb.p,dmge,scale/1.6,125) q(function() for i=0.4,1,0.04 do w() end fade(e1,0.1) fade(e2,0.1) fade(e3,0.1) end) for i=0.3,1,0.035 do |
| 255 | + | local menuupdatespeed = 0 |
| 256 | - | e3m.Scale=v3((scale2/1.3)*i,(scale2/2)*i,(scale2/1.3)*i) e2m.Scale=v3((scale2*1.3)*i,(scale2*1.3)*i,(scale2*1.3)*i) e1m.Scale=v3((scale2*1.3)*i,(scale2*1.3)*i,(scale2*1.3)*i) e1.CFrame=onb*ca(rd(-90),rd(360),0) e2.CFrame=onb*ca(0,rd(360),0) e3.CFrame=onb*ca(rd(180),rd(360),0) w() |
| 256 | + | local constantupdate = false |
| 257 | - | end |
| 257 | + | local showstats = false |
| 258 | - | end) end |
| 258 | + | local allowstunbar = false |
| 259 | - | function splat2(pos,dmge) |
| 259 | + | local CustomColor = Torso.BrickColor |
| 260 | - | local dbr=it("Model",workspace) local colz2="Bright red" if ts(dmge)=="Block!" then colz2="Bright blue" end
|
| 260 | + | local Colorpart1 = CustomColor.r |
| 261 | - | dbr.Name=ts(dmge) local dbri=pa(dbr,"Head","Block",1,0,1,false,false,0,0,colz2) it("Humanoid",dbr).MaxHealth=0
|
| 261 | + | local Colorpart2 = CustomColor.g |
| 262 | - | dbri.Anchored=true dbri.CFrame=cn(pos + v3(rn(-15,15)/10,3,rn(-15,15)/10)) game:service'Debris':AddItem(dbr,0.5) end |
| 262 | + | local Colorpart3 = CustomColor.b |
| 263 | - | local DBDH={}
|
| 263 | + | local InverseColor = BrickColor.new(Color3.new(1 - Colorpart1, 1 - Colorpart2, 1 - Colorpart3)) |
| 264 | - | function Dmgz(blockz,aihu,dmgzz2,pos,fuu) if ft(DBDH,aihu.Parent) or aihu == hu then return end if aihu.Health==0 then return end if aihu.Parent:findFirstChild("ForceField") then return end dmgdeb2=true q(function() if (aihu.Parent:findFirstChild("Block") and aihu.Parent.Block:IsA("BoolValue") and aihu.Parent.Block.Value and not blockz) or pos.Name:lower()=="shield" then splat2(pos.Position,"Bl" .. "ock!") w(0.2) Sound(Sounds.Block,1.4,3) return end
|
| 264 | + | makeframe = function(par, trans, pos, size, color, name) |
| 265 | - | local dmgzz=dmgzz2 if game:service'Players':findFirstChild(aihu.Parent.Name) and not tk then return end if game:service'Players':findFirstChild(aihu.Parent.Name) == nil then dmgzz=dmgzz*1.75 end ti(DBDH,aihu.Parent) if rn(1,a.cr[1]) == 1 then aihu.Health=aihu.Health-dmgzz*a.cr[2] dmgzz="Crit! " ..ts(dmgzz*a.cr[2]) else q(function() fuu(aihu.Parent) end) aihu.Health=aihu.Health-dmgzz end if not pos then return end splat2(pos.Position,dmgzz) q(function() w(0.08) tr(DBDH,ft(DBDH,aihu.Parent)) end) |
| 265 | + | |
| 266 | - | end) end |
| 266 | + | local frame = Instance.new("Frame")
|
| 267 | - | function rayHit(wai,lolk,weplol,adjus,magz,tim) local DebounceTable2={} q(function()
|
| 267 | + | frame.Parent = par |
| 268 | - | local hitx=0 local tymzup=false q(function() w(wai) tymzup=true end) |
| 268 | + | frame.BackgroundTransparency = trans |
| 269 | - | repeat w() local tries=0 local bhit,bpos=nil,v3(999,999,999) |
| 269 | + | frame.BorderSizePixel = 2 |
| 270 | - | repeat tries=tries + 1 local xx=0 local yy=0 if tries==1 then xx=1 elseif tries==2 then xx=-1 elseif tries == 3 then yy=1 elseif tries == 4 then yy=-1 elseif tries == 5 then xx=-1 yy=-1 elseif tries == 6 then xx,yy=1,1 elseif tries == 7 then xx,yy=-1,1 elseif tries == 8 then xx,yy=1,-1 end |
| 270 | + | frame.Position = pos |
| 271 | - | bhit,bpos=ray((weplol.CFrame *adjus *cn(xx,yy,-0.8)).p,weplol.Position - (weplol.CFrame *adjus *cn(0,0,2)).p) |
| 271 | + | frame.Size = size |
| 272 | - | if bhit ~= nil and (bpos - weplol.Position).magnitude < magz+0.8 then break end until tries > 8 |
| 272 | + | frame.BackgroundColor3 = color |
| 273 | - | if bhit==nil or (bpos - weplol.Position).magnitude > magz+0.8 then else local brea=false |
| 273 | + | frame.Name = name |
| 274 | - | for i,v in pairs(bhit.Parent:children()) do local dmge=rn(d[1],d[2])*tim |
| 274 | + | return frame |
| 275 | - | if v:IsA("Humanoid") and not DebounceTable2[v.Parent.Name] then DebounceTable2[v.Parent.Name]=true Dmgz(false,v,dmge,bhit) Sound(Sounds.Smash,0.9,1) hitx=hitx+1 brea=true break end end
|
| 275 | + | end |
| 276 | - | if bhit.Parent ~= workspace and not brea then for i,v in pairs(bhit.Parent.Parent:children()) do local dmge=rn(d[1],d[2])*tim |
| 276 | + | |
| 277 | - | if v.Parent:findFirstChild("Humanoid") and not DebounceTable2[v.Parent.Parent.Name] then DebounceTable2[v.Parent.Parent.Name]=true Dmgz(false,v.Parent.Humanoid,dmge,bhit) Sound(Sounds.Smash,0.9,1) hitx=hitx+1 break end end
|
| 277 | + | makelabel = function(par, text, trans, stroketrans, name) |
| 278 | - | end |
| 278 | + | |
| 279 | - | end until hitx >= lolk or tymzup end) end |
| 279 | + | local label = Instance.new("TextLabel")
|
| 280 | - | function GetRegion(p0,p1,f,f2) q(function() |
| 280 | + | label.Parent = par |
| 281 | - | for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),c,100) ) do if v.Parent:findFirstChild("Humanoid") and v.Parent.Humanoid.Health > 0 and v.Parent:findFirstChild("Torso") then q(function() f(v.Parent) end) elseif f2 and v.Parent.Parent:findFirstChild("Humanoid") == nil then f2(v) end end
|
| 281 | + | label.BackgroundTransparency = 1 |
| 282 | - | end) end |
| 282 | + | label.Size = ud(1, 0, 1, 0) |
| 283 | - | function FindGround(pos) local ax,ay,az = pos:toEulerAnglesXYZ() |
| 283 | + | label.Position = ud(0, 0, 0, 0) |
| 284 | - | local bhit,bpos=ray(pos.p,pos.p - (pos.p + v3(0,200,0))) |
| 284 | + | label.TextColor3 = c3(255, 255, 255) |
| 285 | - | if bhit and bpos then return cn(bpos)*ca(ax,ay,az) end return nil end |
| 285 | + | label.TextStrokeTransparency = stroketrans |
| 286 | - | function MakeCrater(pos,sc,tyms,debz) q(function() if not debz then debz = 5 end |
| 286 | + | label.TextTransparency = trans |
| 287 | - | local bhit,bpos=ray(pos,pos - (pos + v3(0,200,0))) |
| 287 | + | label.FontSize = Enum.FontSize.Size32 |
| 288 | - | if bhit and bpos then |
| 288 | + | label.Font = Enum.Font.Legacy |
| 289 | - | for i=1,tyms do q(function() |
| 289 | + | label.BorderSizePixel = 0 |
| 290 | - | local gr = pa(su,"","Block",rn(5,13)/10*sc,0.25*sc,rn(4,10)/10*sc,true,true,bhit.Transparency,bhit.Reflectance,bhit.BrickColor.Name) gr.Material = bhit.Material gr.TopSurface = bhit.TopSurface |
| 290 | + | label.TextScaled = true |
| 291 | - | gr.CFrame = cn(bpos+v3(rn(-12,12)/10*sc,0,rn(-12,12)/10*sc))*ca(rd(rn(-40,40)),rd(rn(-360,360)),rd(rn(-40,40))) wait(debz) fade(gr,0.1) |
| 291 | + | label.Text = text |
| 292 | - | end) end |
| 292 | + | label.Name = name |
| 293 | - | end |
| 293 | + | return label |
| 294 | - | end) |
| 294 | + | end |
| 295 | - | end |
| 295 | + | |
| 296 | - | function ForceBrick(v,rootpos,force) q(function() if v:GetMass() > 100 or v.Anchored or getclass(v,"Weld") then return end |
| 296 | + | framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 1") |
| 297 | - | v:BreakJoints() v.Velocity = cn(rootpos,v.Position).lookVector*force |
| 297 | + | framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 2") |
| 298 | - | end) end |
| 298 | + | framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 3") |
| 299 | - | function FireObj(v,tcf2,adj,spi,tym,rang,fu,glo) q(function() -- obj,cf,adj,spid,tyms,rang,func,glo |
| 299 | + | framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 4") |
| 300 | - | local tcf = tcf2 for i=1,tym do |
| 300 | + | bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 1") |
| 301 | - | bhit,bpos=ray(tcf.p,tcf.p - (tcf *cn(0,0,-1)).p) |
| 301 | + | bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 2") |
| 302 | - | if bhit and (bpos - tcf.p).magnitude < rang then break end |
| 302 | + | bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 3") |
| 303 | - | tcf=tcf*cn(0,0,spi) v.CFrame=tcf*adj |
| 303 | + | bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 4") |
| 304 | - | wait() end |
| 304 | + | text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1") |
| 305 | - | if glo then GlowMesh(false,"Sphere",t,v3(glo,glo,glo),'Navy blue',cn(bpos),0.1,1,0.08) end |
| 305 | + | text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2") |
| 306 | - | if fu and bhit then fu(bhit) else wait(rn(0,20)/10) fade(v,0.1) end |
| 306 | + | text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3") |
| 307 | - | end) end |
| 307 | + | text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4") |
| 308 | - | function ProjHit1(v,hit,mul2) local mul = mul2 q(function() if not mul2 then mul = 1 end if not hit.Anchored then |
| 308 | + | manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar") |
| 309 | - | if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then Dmgz(false,hit.Parent.Humanoid,rn(d[1],d[2])*mul,hit.Parent.Torso) end
|
| 309 | + | manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover") |
| 310 | - | v.Anchored = false stick(hit,v) |
| 310 | + | manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text") |
| 311 | - | wait(1) end wait(rn(10,25)/10) fade(v,0.1) end) end |
| 311 | + | healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Bar") |
| 312 | - | --Dio's functions |
| 312 | + | healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Cover") |
| 313 | - | function SpawnSword(pos,sc,dmg,col) if pos == nil then return end q(function() MakeCrater(pos.p+v3(0,2,0),3,3,3) |
| 313 | + | healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text") |
| 314 | - | GlowMesh(false,"Sphere",t,v3(7*sc,1.5*sc,7*sc),col,pos,0.1,1,0.05) |
| 314 | + | if allowstunbar == true then |
| 315 | - | local pro = pa(su,"","Block",2*sc,2*sc,7*sc,true,true,0.3,0,"") local prom = qi({"SpecialMesh",pro,Scale=v3(3*sc,2*sc,4*sc),VertexColor=v3(0,0,1),MeshType="FileMesh",MeshId=Decs.RedCliff,TextureId=Decs.RedCliffT})
|
| 315 | + | stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137255), "Stun Frame") |
| 316 | - | pro.CFrame = pos*ca(rd(-25),0,0)*cn(0,-3*sc,0) local cff = pro.CFrame for i=0.1,1,0.15 do pro.CFrame=cff*cn(0,6*sc*i,0)*ca(rd(-90),0,0)*ca(0,0,rd(90)) wait() end |
| 316 | + | stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137255), "Stun Bar") |
| 317 | - | local rr = sc*1.5 GetRegion(pro.Position-v3(rr,rr,rr),pro.Position+v3(rr,rr,rr),function(v) v.Humanoid.PlatformStand = true local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(pro.Position,v.Torso.Position+v3(0,20,0)).lookVector*40}) Dmgz(false,v.Humanoid,rn(d[1],d[2]),v.Torso) wait(0.15) bpp:Remove() v.Humanoid.PlatformStand = false end) wait(1) for i=1,0,-0.15 do pro.CFrame=cff*cn(0,6*sc*i,0)*ca(rd(-90),0,0)*ca(0,0,rd(90)) wait() end pro:Remove() end)
|
| 317 | + | stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text") |
| 318 | - | end local bped = {}
|
| 318 | + | end |
| 319 | - | function SpikeSucker(pos,sc) |
| 319 | + | if showstats == true then |
| 320 | - | local bal = pa(c,"","Ball",4*sc,4*sc,4*sc,false,true,0.16,0,"White") bal.CFrame = pos |
| 320 | + | defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3921568627451, 0.3921568627451, 1), "Defense Frame") |
| 321 | - | local spi = pa(c,"","Ball",0,0,0,false,true,0.16,0,"White") spi.CFrame = bal.CFrame local spm = qi({"SpecialMesh",spi,MeshType="FileMesh",MeshId=Decs.SpikeBall})
|
| 321 | + | damageframe = makeframe(scrn, 0.5, ud(0.3225, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.3921568627451, 0.3921568627451), "Damage Frame") |
| 322 | - | local dia = pa(bal,"","Block",0,0,0,false,true,0.3,0,"Really red") qi({"SpecialMesh",dia,Scale=v3(1*sc,2*sc,1*sc),MeshType="FileMesh",MeshId=Decs.Diamond})
|
| 322 | + | movementframe = makeframe(scrn, 0.5, ud(0.415, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3921568627451, 1, 0.3921568627451), "Movement Frame") |
| 323 | - | local dia2 = dia:Clone() dia2.Parent = bal local dia3 = dia:Clone() dia3.Parent = bal local tms = 0 local rr=10*sc for x=1,4 do |
| 323 | + | defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text") |
| 324 | - | for i=0,1,0.1 do tms = tms + 1 |
| 324 | + | damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text") |
| 325 | - | spm.Scale = v3(i,i,i)*1.7 spi.CFrame=spi.CFrame*ca(rd(4),rd(4),rd(4)) dia.CFrame = bal.CFrame*ca(rd(tms*5),0,0)*cn(0,6*sc,0) dia2.CFrame = bal.CFrame*ca(0,0,rd(tms*5))*cn(0,6*sc,0) dia3.CFrame = bal.CFrame*ca(0,rd(tms*5),0)*cn(0,0,6*sc)*ca(rd(90),0,0) |
| 325 | + | movementtext = makelabel(movementframe, "Movement: " .. Movement.Value, 1, 1, "Movement Text") |
| 326 | - | if tms%3==0 then GetRegion(bal.Position-v3(rr,rr,rr),bal.Position+v3(rr,rr,rr),function(v) Dmgz(false,v.Humanoid,rn(1,3),v.Torso) if v.Torso:findFirstChild("SBP") == nil then ti(bped,v) qi({"BodyPosition",v.Torso,Name="SBP",D=6000,maxForce=v3(200000,200000,200000),position=bal.Position}) end end) end
|
| 326 | + | end |
| 327 | - | wait() |
| 327 | + | NoOutline = function(Part) |
| 328 | - | end |
| 328 | + | |
| 329 | - | for i=1,0,-0.1 do tms = tms + 1 |
| 329 | + | Part.TopSurface = 10 |
| 330 | - | spm.Scale = v3(i,i,i)*1.7 spi.CFrame=spi.CFrame*ca(rd(4),rd(4),rd(4)) dia.CFrame = bal.CFrame*ca(rd(tms*5),0,0)*cn(0,6*sc,0) dia2.CFrame = bal.CFrame*ca(0,0,rd(tms*5))*cn(0,6*sc,0) dia3.CFrame = bal.CFrame*ca(0,rd(tms*5),0)*cn(0,0,6*sc)*ca(rd(90),0,0) |
| 330 | + | end |
| 331 | - | if tms%3==0 then GetRegion(bal.Position-v3(rr,rr,rr),bal.Position+v3(rr,rr,rr),function(v) Dmgz(false,v.Humanoid,rn(1,3),v.Torso) if v.Torso:findFirstChild("SBP") == nil then ti(bped,v) qi({"BodyPosition",v.Torso,Name="SBP",D=6000,maxForce=v3(200000,200000,200000),position=bal.Position}) end end) end
|
| 331 | + | |
| 332 | - | wait() |
| 332 | + | local weldBetween = function(a, b) |
| 333 | - | end |
| 333 | + | |
| 334 | - | for i,v in pairs(bped) do q(function() for i,vv in pairs(v.Torso:children()) do if vv.Name == "SBP" then vv:Remove() end end end) end |
| 334 | + | local weldd = Instance.new("ManualWeld")
|
| 335 | - | end |
| 335 | + | weldd.Part0 = a |
| 336 | - | q(function() fade(dia,0.2) fade(dia2,0.2) fade(dia3,0.2) for i=0.1,1,0.1 do spi.Transparency = i spm.Scale = spm.Scale*1.1 bal.Transparency = i bal.Size = bal.Size*1.1 bal.CFrame = pos wait() end spi:Remove() bal:Remove() end) |
| 336 | + | weldd.Part1 = b |
| 337 | - | end |
| 337 | + | weldd.C0 = CFrame.new() |
| 338 | - | function Blackspace(pos,tms,dmg) |
| 338 | + | weldd.C1 = b.CFrame:inverse() * a.CFrame |
| 339 | - | local bal = pa(c,"","Ball",52,52,52,false,true,1,0,"Really black") bal.CFrame = pos |
| 339 | + | weldd.Parent = a |
| 340 | - | for i=1,0.5,-0.1 do bal.Transparency =i wait() end |
| 340 | + | return weldd |
| 341 | - | for i=1,tms do local o = 25 |
| 341 | + | end |
| 342 | - | Lightning(pos.p,pos*ca(rd(i*o),rd(i*o),rd(i*o))*cn(25,0,0).p,4,2.5,"Institutional white",0.3,0) |
| 342 | + | |
| 343 | - | Lightning(pos.p,pos*ca(rd(i*o),rd(i*o),rd(i*o))*cn(-25,0,0).p,4,2.5,"Institutional white",0.3,0) |
| 343 | + | nooutline = function(part) |
| 344 | - | Lightning(pos.p,pos*ca(rd(i*o),rd(i*o),rd(i*o))*cn(0,25,0).p,4,2.5,"Institutional white",0.3,0) |
| 344 | + | |
| 345 | - | Lightning(pos.p,pos*ca(rd(i*o),rd(i*o),rd(i*o))*cn(0,-25,0).p,4,2.5,"Institutional white",0.3,0) |
| 345 | + | part.TopSurface = 10 |
| 346 | - | Lightning(pos.p,pos*ca(rd(i*o),rd(i*o),rd(i*o))*cn(0,0,25).p,4,2.5,"Institutional white",0.3,0) |
| 346 | + | end |
| 347 | - | Lightning(pos.p,pos*ca(rd(i*o),rd(i*o),rd(i*o))*cn(0,0,-25).p,4,2.5,"Institutional white",0.3,0) |
| 347 | + | |
| 348 | - | local rr = 25 if i%4==0 then GetRegion(pos.p-v3(rr,rr,rr),pos.p+v3(rr,rr,rr),function(v) Dmgz(false,v.Humanoid,rn(3,5),v.Torso) local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(bal.Position,v.Torso.Position).lookVector*10}) wait(0.1) bpp:Remove() end) end
|
| 348 | + | part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) |
| 349 | - | wait(0.05) |
| 349 | + | |
| 350 | - | end |
| 350 | + | local fp = it("Part")
|
| 351 | - | for i=0.5,1,0.1 do bal.Transparency =i wait() end bal:Remove() |
| 351 | + | fp.formFactor = formfactor |
| 352 | - | end |
| 352 | + | fp.Parent = parent |
| 353 | - | function MatterBall(pos,sc,spid,tyms,dmgmul) q(function() |
| 353 | + | fp.Reflectance = reflectance |
| 354 | - | local cor = db1:Clone() cor.Mesh.Scale=v3(sc,sc,sc)*5 local cor2 = db2:Clone() cor2.Mesh.Scale = cor.Mesh.Scale*1.55 qi({"Fire",cor,Color=bc('Navy blue').Color,SecondaryColor=bc('Navy blue').Color,Size=sc*3.5,Heat=0})
|
| 354 | + | fp.Transparency = transparency |
| 355 | - | cor.Transparency = 0.05 cor.Anchored = true cor2.Anchored = true cor2.Transparency = 0.4 cor.Parent = su cor2.Parent = cor cor.CFrame = pos |
| 355 | + | fp.CanCollide = false |
| 356 | - | local corms = cor.Mesh.Scale local cor2ms = cor2.Mesh.Scale for i=1,tyms do local lolvt = {-2*sc,2*sc}
|
| 356 | + | fp.Locked = true |
| 357 | - | local lolv3 = v3(0,0,0) local lolrn = rn(1,3) if lolrn == 1 then lolv3=v3(lolvt[rn(1,2)],0,0) elseif lolrn == 2 then lolv3=v3(0,lolvt[rn(1,2)],0) elseif lolrn == 3 then lolv3=v3(0,0,lolvt[rn(1,2)]) end cor.Mesh.Scale=corms+lolv3 cor2.Mesh.Scale=cor2ms+lolv3 |
| 357 | + | fp.BrickColor = BrickColor.new(tostring(brickcolor)) |
| 358 | - | cor.CFrame = pos*cn(0,0,-spid*i) |
| 358 | + | fp.Name = name |
| 359 | - | local bhit,bpos=ray(cor.Position,cor.Position - (cor.CFrame *cn(0,0,1)).p) |
| 359 | + | fp.Size = size |
| 360 | - | if bhit and (bpos - cor.Position).magnitude < (spid*1.1) then break end |
| 360 | + | fp.Position = Character.Torso.Position |
| 361 | - | cor.CFrame=cor.CFrame*ca(rd(rn(-360,360)),rd(rn(-360,360)),rd(rn(-360,360))) cor2.CFrame = cor.CFrame |
| 361 | + | nooutline(fp) |
| 362 | - | local lolpos = FindGround(cor.CFrame) if lolpos and i%rn(2,3)==0 then GlowMesh(false,Decs.Crown,t,v3(2.6*sc,0.8*sc,2.6*sc),'Navy blue',cn(lolpos.p+v3(0,0.15*sc,0)),0.1,1,0.05) end |
| 362 | + | fp.Material = material |
| 363 | - | wait() end cor.Fire:Remove() |
| 363 | + | fp:BreakJoints() |
| 364 | - | q(function() |
| 364 | + | return fp |
| 365 | - | local n1 = pa(su,"","Block",0,0,0,true,true,0.3,0,"White") qi({"SpecialMesh",n1,Scale=v3(3.5,3.5,8),MeshType="FileMesh",MeshId=Decs.Chakram})
|
| 365 | + | end |
| 366 | - | local n2 = n1:Clone() n2.Parent = su n1.CFrame = cor.CFrame*ca(0,rd(-45),0) n2.CFrame = cor.CFrame*ca(0,rd(45),0) |
| 366 | + | |
| 367 | - | for i=1,8 do n1.Mesh.Scale = n1.Mesh.Scale+v3(0.3*sc,0.3*sc,0.35*sc) n2.Mesh.Scale = n1.Mesh.Scale cor.Transparency = cor.Transparency + 0.12 n1.Transparency = cor.Transparency n2.Transparency = n1.Transparency cor2.Transparency = cor2.Transparency + 0.1 cor.Mesh.Scale = cor.Mesh.Scale+v3(2.3*sc,2.3*sc,2.3*sc) cor2.Mesh.Scale = cor.Mesh.Scale*1.55 wait() end n1:Remove() n2:Remove() cor:Remove() cor2:Remove() end) |
| 367 | + | mesh = function(Mesh, part, meshtype, meshid, offset, scale) |
| 368 | - | local rr = sc GetRegion(cor.Position-v3(rr,rr,rr),cor.Position+v3(rr,rr,rr),function(v) local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(cor.Position,v.Torso.Position+v3(0,2,0)).lookVector*60}) Dmgz(false,v.Humanoid,rn(d[1],d[2])*dmgmul,v.Torso) wait(0.12) bpp:Remove() end)
|
| 368 | + | |
| 369 | - | end) end |
| 369 | + | local mesh = it(Mesh) |
| 370 | - | function FistBoom(pos,sc,dmg,TYMZEH) q(function() |
| 370 | + | mesh.Parent = part |
| 371 | - | local rip = pa(su,"","Block",1,1,1,false,true,0.2,0,"White") local ripm = qi({"SpecialMesh",rip,MeshType="Sphere"})
|
| 371 | + | if Mesh == "SpecialMesh" then |
| 372 | - | rip.CFrame = pos*cn(-4*sc/2,4*sc/2,0)*ca(0,0,rd(45)) |
| 372 | + | mesh.MeshType = meshtype |
| 373 | - | for i=1,3.5,0.5 do rip.Size=v3(1,i*2,1) rip.CFrame = pos*cn((-4+i)*sc,(4-i)*sc,0)*ca(0,0,rd(45)) wait() end |
| 373 | + | mesh.MeshId = meshid |
| 374 | - | for i=1,3.5,0.25 do rip.Size=v3(i*2,7,1) rip.CFrame = pos*ca(0,0,rd(45)) wait() end |
| 374 | + | end |
| 375 | - | local fis = pa(su,"","Block",0,0,0,false,true,0.2,0,"White") local fism = qi({"SpecialMesh",fis,Scale=v3(8*sc,8*sc,8*sc),MeshType="FileMesh",MeshId=Decs.Fist})
|
| 375 | + | mesh.Offset = offset |
| 376 | - | for i=0.5,5.5,1 do fism.Scale = v3(8*sc,((8*sc)/5.5)*i,8*sc) fis.CFrame = pos*cn(0,0,-i*sc)*ca(rd(-90),rd(-90),0) wait() end |
| 376 | + | mesh.Scale = scale |
| 377 | - | fism.Scale = fism.Scale+v3(1*sc,1*sc,1*sc) fis.CFrame = pos*cn(0,5*sc,-5*sc)*ca(rd(45),0,0)*ca(rd(-90),rd(-90),0) rip.CFrame=pos*ca(rd(45),0,0) qi({"Fire",fis,Heat=-25,Size=15,Color=bc('Navy blue').Color,SecondaryColor=bc('Navy blue').Color})
|
| 377 | + | return mesh |
| 378 | - | local arm = pa(su,"","Block",1,1,1,false,true,0.2,0,"Really green") local armm = it('CylinderMesh',arm)
|
| 378 | + | end |
| 379 | - | arm.CFrame = cn(rip.Position,fis.CFrame*cn(0,-5.5,0).p)*cn(0,0,-(rip.Position-fis.CFrame*cn(0,-5.5,0).p).magnitude/2-0.5)*ca(rd(90),0,0) armm.Scale = v3(4*sc,(rip.Position-fis.CFrame*cn(0,-5.5,0).p).magnitude+1,4*sc) |
| 379 | + | |
| 380 | - | for i=1,7 do fis.CFrame=fis.CFrame*cn(0,TYMZEH/7,0) |
| 380 | + | weld = function(parent, part0, part1, c0, c1) |
| 381 | - | arm.CFrame = cn(rip.Position,fis.CFrame*cn(0,-5.5,0).p)*cn(0,0,-(rip.Position-fis.CFrame*cn(0,-5.5,0).p).magnitude/2-0.5)*ca(rd(90),0,0) armm.Scale = v3(4*sc,(rip.Position-fis.CFrame*cn(0,-5.5,0).p).magnitude+1,4*sc) |
| 381 | + | |
| 382 | - | wait() end local armag = (rip.Position-fis.CFrame*cn(0,-5.5,0).p).magnitude+1 |
| 382 | + | local weld = it("Motor")
|
| 383 | - | for x=45,0,-5 do |
| 383 | + | weld.Parent = parent |
| 384 | - | rip.CFrame = pos*ca(rd(x+180),0,0) fis.CFrame=rip.CFrame*cn(0,0,(armag-1)+(5.5*sc))*ca(rd(90),rd(-90),0) |
| 384 | + | weld.Part0 = part0 |
| 385 | - | arm.CFrame = rip.CFrame*cn(0,0,((armag-1)/2)+0.5)*ca(rd(90),0,0) |
| 385 | + | weld.Part1 = part1 |
| 386 | - | wait() |
| 386 | + | weld.C0 = c0 |
| 387 | - | end |
| 387 | + | weld.C1 = c1 |
| 388 | - | q(function() local cfz = {rip.CFrame,arm.CFrame,fis.CFrame} for i=1,15 do local lolv3=v3(rn(-1*sc,1*sc),rn(-1*sc,1*sc),rn(-1*sc,1*sc)) rip.CFrame=cfz[1]+lolv3 fis.CFrame=cfz[3]+lolv3 arm.CFrame=cfz[2]+lolv3 wait() end
|
| 388 | + | return weld |
| 389 | - | for i=armag,0,-armag/15 do armm.Scale =v3(4,i,4) fis.CFrame=rip.CFrame*cn(0,0,(i)+(5.5*sc))*ca(rd(90),rd(-90),0) arm.CFrame = rip.CFrame*cn(0,0,((i-1)/2)+0.5)*ca(rd(90),0,0) wait() end arm:Remove() |
| 389 | + | end |
| 390 | - | for i=5.5,0.5,-1 do fism.Scale = v3(8*sc,((8*sc)/5.5)*i,8*sc) fis.CFrame = pos*cn(0,0,-i*sc)*ca(rd(-90),rd(-90),0) wait() end fis:Remove() |
| 390 | + | |
| 391 | - | for i=0.2,1,0.1 do ripm.Scale = ripm.Scale+v3(0.2*sc,0.2*sc,0.2*sc) rip.Transparency = i wait() end rip:Remove() end) |
| 391 | + | local WeaponName = "Russian Kick" |
| 392 | - | local rr = 6.5*sc GetRegion(fis.Position-v3(rr,rr,rr),fis.Position+v3(rr,rr,rr),function(v) local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(fis.Position-v3(0,1*sc,0),v.Torso.Position+v3(0,2,0)).lookVector*75}) Dmgz(false,v.Humanoid,rn(d[1]*2,d[2]*2.5),v.Torso) wait(0.15) bpp:Remove() end,function(v) ForceBrick(v,fis.Position,100) end)
|
| 392 | + | local ClassName = "Russian Kick" |
| 393 | - | MakeCrater(fis.Position+v3(0,2,0),5,7,10) |
| 393 | + | local PlayerSize = 1 |
| 394 | - | end) end |
| 394 | + | local RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0)) |
| 395 | - | WormDrill = function(target,sca) q(function() local spiran = rn(-360,360) local slope = {}
|
| 395 | + | local LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0)) |
| 396 | - | for i=90,-270,-10 do table.insert(slope,cn(target.p)*ca(0,rd(spiran),0)*cn(0,0,30*sca)*ca(rd(i),0,0)*cn(0,0,30*sca)) end |
| 396 | + | if PlayerSize ~= 1 then |
| 397 | - | local mm = it('Model',su) local tr = 0.15
|
| 397 | + | RootPart.Size = RootPart.Size * PlayerSize |
| 398 | - | local worm0 = pa(mm,"","Block",0,60,0,true,true,tr,0,"White") qi({"SpecialMesh",worm0,Scale=v3(9*sca,12*sca,9*sca),MeshType="FileMesh",MeshId="http://www.roblox.com/asset/?id=12137531"})
|
| 398 | + | Torso.Size = Torso.Size * PlayerSize |
| 399 | - | local worm1 = pa(mm,"","Block",10*sca,6*sca,10*sca,true,true,tr,0,"White") it('CylinderMesh',worm1)
|
| 399 | + | Head.Size = Head.Size * PlayerSize |
| 400 | - | local worm2 = pa(mm,"","Block",9.5*sca,6*sca,9.5*sca,true,true,tr,0,"White") it('CylinderMesh',worm2)
|
| 400 | + | RightArm.Size = RightArm.Size * PlayerSize |
| 401 | - | local worm3 = pa(mm,"","Block",9*sca,6*sca,9*sca,true,true,tr,0,"White") it('CylinderMesh',worm3)
|
| 401 | + | LeftArm.Size = LeftArm.Size * PlayerSize |
| 402 | - | local worm4 = pa(mm,"","Block",8.5*sca,6*sca,8.5*sca,true,true,tr,0,"White") it('CylinderMesh',worm4)
|
| 402 | + | RightLeg.Size = RightLeg.Size * PlayerSize |
| 403 | - | local worm5 = pa(mm,"","Block",8*sca,6*sca,8*sca,true,true,tr,0,"White") it('CylinderMesh',worm5)
|
| 403 | + | LeftLeg.Size = LeftLeg.Size * PlayerSize |
| 404 | - | local worm6 = pa(mm,"","Block",7.2*sca,6*sca,7.2*sca,true,true,tr,0,"White") qi({"SpecialMesh",worm6,Scale=v3(4*sca,18.5*sca,4*sca),MeshType="FileMesh",MeshId="http://www.roblox.com/asset/?id=1033714"})
|
| 404 | + | RootJoint.Parent = RootPart |
| 405 | - | for i=1,#slope-6 do if i+6 == 10 then MakeCrater(slope[i+6].p+v3(0,10,0),13,9,20) end if i+5 == 27 then local rr = 8*sca GetRegion(slope[i+5].p-v3(rr,rr,rr),slope[i+5].p+v3(rr,rr,rr),function(v) local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(slope[i+5].p,v.Torso.Position+v3(0,2,0)).lookVector*120}) Dmgz(false,v.Humanoid,rn(d[1],d[2])*3.5,v.Torso) wait(0.2) bpp:Remove() end,function(v) ForceBrick(v,slope[i+5].p,150) end) MakeCrater(slope[i+5].p+v3(0,10,0),13,9,20) end
|
| 405 | + | Neck.Parent = Torso |
| 406 | - | worm0.CFrame = slope[i+6]*ca(rd(160),0,0)*ca(0,rd(0),0)*cn(0,5*sca,0) worm1.CFrame = slope[i+5] worm2.CFrame = slope[i+4] worm3.CFrame = slope[i+3] worm4.CFrame = slope[i+2] worm5.CFrame = slope[i+1] worm6.CFrame = slope[i]*ca(rd(180),0,0)*cn(0,4*sca,0) wait(0.04) end |
| 406 | + | LS.Parent = Torso |
| 407 | - | worm0:Remove() worm1:Remove() worm2:Remove() worm3:Remove() worm4:Remove() worm5:Remove() worm6:Remove() |
| 407 | + | RS.Parent = Torso |
| 408 | - | end) end |
| 408 | + | LH.Parent = Torso |
| 409 | - | SpawnTornado = function(pos,sc,ski,tyms) q(function() |
| 409 | + | RH.Parent = Torso |
| 410 | - | local tor = pa(su,"","Block",0,0,0,true,true,1,0,"White") qi({"SpecialMesh",tor,Scale=v3(6.4*sc,8*sc,6.5*sc),MeshType="FileMesh",MeshId=Decs.Tornado})
|
| 410 | + | RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) |
| 411 | - | tor.CFrame = pos q(function() for i=1,0.2,-0.1 do tor.Transparency = i wait() end end) |
| 411 | + | Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)) |
| 412 | - | local zz = 0 local tpos = tor.Position |
| 412 | + | Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize) |
| 413 | - | q(function() while tor.Parent do zz = zz+1 |
| 413 | + | RS.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0 |
| 414 | - | tor.CFrame = pos*cn(0,0,-zz/2.6)*ca(0,rd(zz*5),0)*cn(0,0,zz*ski/30)*ca(0,rd(zz*25),0) wait() |
| 414 | + | LS.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0 |
| 415 | - | local rr = 7*sc GetRegion(tor.Position-v3(rr,rr,rr),tor.Position+v3(rr,rr,rr),function(v) if v.Torso:findFirstChild("SRP") == nil then local bp = qi({"BodyPosition",v.Torso,Name="SRP",maxForce=v3(1/0,1/0,1/0),position=tor.CFrame*cn(0,0,-11*sc).p}) while tor.Parent do v.Humanoid.PlatformStand=true bp.position=tor.CFrame*cn(0,0,8*sc).p
|
| 415 | + | RS.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5) |
| 416 | - | if rn(1,6) == 2 then v.Humanoid.Sit = true Dmgz(false,v.Humanoid,rn(1,2),v.Torso) end |
| 416 | + | LS.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5) |
| 417 | - | wait() end bp:Remove() local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(v.Torso.Position,to.Position+v3(0,30,0)).lookVector*135}) wait(0.4) bpp:Remove() wait(2.5) v.Humanoid.PlatformStand = false else end end)
|
| 417 | + | RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)) |
| 418 | - | end end) |
| 418 | + | LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)) |
| 419 | - | wait(tyms) tpos = tor.Position local torm = tor.Mesh.Scale tor:Remove() GlowMesh(false,Decs.Tornado,t,torm*3,'Navy blue',cn(tpos),0.2,1,0.05) |
| 419 | + | RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) |
| 420 | - | end) end |
| 420 | + | LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) |
| 421 | - | function CrownSwords(pos) q(function() |
| 421 | + | for _,v in pairs(Character:GetChildren()) do |
| 422 | - | local hol = pa(su,"","Block",1,1,1,false,true,0.1,0,"White") qi({"SpecialMesh",hol,MeshType="Sphere"})
|
| 422 | + | if v.ClassName == "Hat" or v.ClassName == "Accessory" then |
| 423 | - | hol.CFrame = pos for i=1,6 do hol.Size=v3(1,1,i*5) hol.CFrame=pos*cn(0,0,(5*i)/2) wait() end |
| 423 | + | v.Parent = nil |
| 424 | - | for i=1,6 do hol.Size=v3(i*5,1,30) hol.CFrame=pos*cn(0,0,15) wait() end |
| 424 | + | v.Parent = Character |
| 425 | - | local swr = {} for i=1,14 do local swor = pa(su,"","Block",0,0,0,false,true,0.2,0,"White") qi({"SpecialMesh",swor,MeshType="FileMesh",Scale=v3(4,4,4),MeshId=Decs.SplinteredSky,TextureId=Decs.SplinteredSkyT,VertexColor=v3(0,0,0.8)}) ti(swr,swor) end
|
| 425 | + | v.Handle.Mesh.Scale = v.Handle.Mesh.Scale * PlayerSize |
| 426 | - | local swr2 ={} for i=1,8 do local swor = pa(su,"","Block",0,0,0,false,true,0.2,0,"White") qi({"SpecialMesh",swor,MeshType="FileMesh",Scale=v3(4,4,4),MeshId=Decs.SplinteredSky,TextureId=Decs.SplinteredSkyT,VertexColor=v3(0,0,0.8)}) ti(swr2,swor) end
|
| 426 | + | for _,b in pairs(v.Handle:GetChildren()) do |
| 427 | - | local swor = pa(su,"","Block",0,0,0,false,true,0.2,0,"White") qi({"SpecialMesh",swor,MeshType="FileMesh",Scale=v3(10,14,7.5),MeshId=Decs.SplinteredSky,TextureId=Decs.SplinteredSkyT,VertexColor=v3(0,0,0.8)})
|
| 427 | + | if b.ClassName == "Weld" or b.ClassName == "Motor" then |
| 428 | - | q(function() for i=1,20 do |
| 428 | + | local p1 = b.Part1 |
| 429 | - | swor.CFrame=hol.CFrame*cn(0,(i*3.5)-5.5,0)*ca(rd(90),0,0) |
| 429 | + | b.Part1 = nil |
| 430 | - | wait() end end) |
| 430 | + | local c01, c02, c03, c04, c05, c06, c07, c08, c09, c010, c011, c012 = b.C0:components() |
| 431 | - | for i2,v in pairs(swr) do q(function() for i=1,20 do |
| 431 | + | local c11, c12, c13, c14, c15, c16, c17, c18, c19, c110, c111, c112 = b.C1:components() |
| 432 | - | v.CFrame=hol.CFrame*ca(0,rd(((360/14)*i2)+i*6),0)*cn(0,(i*0.32)-5.5,10)*ca(rd(-90+(91/20*i)),0,0) |
| 432 | + | b.C0 = cf(c01 * PlayerSize, c02 * PlayerSize, c03 * PlayerSize, c04, c05, c06, c07, c08, c09, c010, c011, c012) |
| 433 | - | wait() end FireObj(v,cn(v.Position,v.CFrame*cn(0,0,-2).p),ca(0,0,0),8,20,6,function(h) ProjHit1(v,h,1.2) end,8) end) end |
| 433 | + | b.C1 = cf(c11 * PlayerSize, c12 * PlayerSize, c13 * PlayerSize, c14, c15, c16, c17, c18, c19, c110, c111, c112) |
| 434 | - | for i2,v in pairs(swr2) do q(function() for i=1,20 do |
| 434 | + | b.Part1 = p1 |
| 435 | - | v.CFrame=hol.CFrame*ca(0,rd(((360/8)*i2)+i*-8),0)*cn(0,(i*1)-5.5,6)*ca(rd(-90+(135/20*i)),0,0) |
| 435 | + | end |
| 436 | - | wait() end FireObj(v,cn(v.Position,v.CFrame*cn(0,0,-2).p),ca(0,0,0),8,20,6,function(h) ProjHit1(v,h,1.2) end,8) end) end for i=1,20 do wait() end local holp = hol.CFrame fade(hol,0.1) |
| 436 | + | end |
| 437 | - | for i=20*3.5,0,-20*3.5/12 do |
| 437 | + | end |
| 438 | - | swor.CFrame = hol.CFrame*cn(0,i-1,0)*ca(rd(90),0,0) GlowMesh(false,Decs.Crown,t,v3(5,10,5),'Navy blue',swor.CFrame*ca(rd(-90),0,0),0.1,1,0.1) |
| 438 | + | end |
| 439 | - | wait() end local rr = 25 GetRegion(holp.p-v3(rr,rr,rr),holp.p+v3(rr,rr,rr),function(v) local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(holp.p,v.Torso.Position).lookVector*120}) Dmgz(false,v.Humanoid,rn(d[1],d[2])*1.8,v.Torso) wait(0.24) bpp:Remove() end,function(v) ForceBrick(v,holp.p,150) end)
|
| 439 | + | end |
| 440 | - | for i=0,7.5,2.5 do GlowMesh(false,Decs.Ring,t,v3(85-i,85-i,60-i),'Navy blue',hol.CFrame*cn(0,3,0)*ca(rd(-90),0,0),0.1,1,0.05) wait(0.1) end |
| 440 | + | m = Instance.new("Model", Character)
|
| 441 | - | wait(5) fade(swor,0.02) |
| 441 | + | m.Name = WeaponName |
| 442 | - | end) end |
| 442 | + | Effects = Instance.new("Folder", m)
|
| 443 | - | function SpawnDeathBlock(pos,rootvel,sc) q(function() |
| 443 | + | Effects.Name = "Effects" |
| 444 | - | local bl = pa(su,"","Block",9.5*sc,12*sc,4*sc,true,true,0.05,0,"Really black") local rca = ca(rd(rn(-6,6)),rd(rn(-6,6)),rd(rn(-6,6))) |
| 444 | + | Humanoid.Died:connect(function() |
| 445 | - | local sk = pa(su,"","Block",0,0,0,false,true,0.05,0,"Really black") qi({"SpecialMesh",sk,Scale=v3(2*sc,2*sc,0.8*sc),MeshType="FileMesh",MeshId=Decs.Skull1})
|
| 445 | + | |
| 446 | - | bl.Touched:connect(function(v) if v.Parent == c or v.Parent == su or v.Parent:findFirstChild("Humanoid") == nil or v.Parent:findFirstChild("Torso") == nil then return end
|
| 446 | + | attack = true |
| 447 | - | GlowMesh(false,"Sphere",t,v3(12,12,12),'Navy blue',v.CFrame,0.1,1,0.1) |
| 447 | + | for _,v in pairs(Character:GetChildren()) do |
| 448 | - | local bpp = qi({"BodyVelocity",v.Parent.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(rootvel,v.Parent.Torso.Position+v3(0,7.5,0)).lookVector*80}) Dmgz(false,v.Parent.Humanoid,rn(d[1],d[2])*0.2,v.Parent.Torso) wait(0.2) bpp:Remove()
|
| 448 | + | if v.ClassName == "Model" then |
| 449 | - | end) |
| 449 | + | v:Destroy() |
| 450 | - | for i=0,1,0.1 do bl.CFrame=pos*cn(0,(-5*sc)+(9*i),0)*rca sk.CFrame=bl.CFrame*cn(0,0,-2.1*sc) wait() end |
| 450 | + | end |
| 451 | - | wait(rn(23,30)) |
| 451 | + | end |
| 452 | - | for i,v in pairs({{"Navy blue",v3(30,30,30)},{"Really black",v3(20,20,20)}}) do GlowMesh(false,"Sphere",t,v[2],v[1],bl.CFrame,0.1,1,0.1) end
|
| 452 | + | end |
| 453 | - | local rr = 8 GetRegion(bl.Position-v3(rr,rr,rr),bl.Position+v3(rr,rr,rr),function(v) local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(bl.Position,v.Torso.Position).lookVector*80}) Dmgz(false,v.Humanoid,rn(d[1],d[2])*0.5,v.Torso) wait(0.1) bpp:Remove() end,function(v) ForceBrick(v,holp.p,150) end)
|
| 453 | + | ) |
| 454 | - | fade(bl,0.1) fade(sk,0.1) |
| 454 | + | for i,v in pairs(Character:GetChildren()) do |
| 455 | - | end) end |
| 455 | + | if v.ClassName == "Model" then |
| 456 | - | ---- TUT01LOL |
| 456 | + | for _,c in pairs(v:GetChildren()) do |
| 457 | - | han = pa(su,"","Block",0.4,0.4,0.4,false,false,0,0,"White") it('CylinderMesh',han)
|
| 457 | + | if c.ClassName == "Part" then |
| 458 | - | hanw = qi({"Weld",han,Part0=t,Part1=han,C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0)})
|
| 458 | + | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) |
| 459 | - | han2 = pa(su,"","Block",0.35,4,0.35,false,false,0,0,"Black") it('CylinderMesh',han2)
|
| 459 | + | end |
| 460 | - | han2w = qi({"Weld",han2,Part0=han,Part1=han2,C0=cn(0,1,0)})
|
| 460 | + | end |
| 461 | - | han3 = pa(su,"","Block",0,0,0,false,false,0,1,"White") qi({"SpecialMesh",han3,MeshType="Sphere",Scale=v3(0.4,0.4,0.4)*5})
|
| 461 | + | end |
| 462 | - | han3w = qi({"Weld",han2,Part0=han2,Part1=han3,C0=cn(0,-2,0)})
|
| 462 | + | end |
| 463 | - | han4 = pa(su,"","Block",0,0,0,false,false,0,0,"Black") qi({"SpecialMesh",han4,MeshType="Sphere",Scale=v3(0.5,0.7,0.2)*5})
|
| 463 | + | print(ClassName .. " loaded.") |
| 464 | - | han4w = qi({"Weld",han2,Part0=han3,Part1=han4,C0=ca(0,rd(90),0)})
|
| 464 | + | clerp = function(a, b, t) |
| 465 | - | for i=1,7 do |
| 465 | + | return a:lerp(b, t) |
| 466 | - | des = pa(su,"","Block",0.4,0.2,0.4,false,false,0,0,"White") it('CylinderMesh',des).Scale = v3(1,0.4,1)
|
| 466 | + | end |
| 467 | - | desw = qi({"Weld",han,Part0=han2,Part1=des,C0=cn(0,-0.9+(i/3),0)*ca(rd(rn(-15,15)),0,rd(rn(-15,15)))})
|
| 467 | + | |
| 468 | - | end |
| 468 | + | positiveangle = function(number) |
| 469 | - | for i=0,270,90 do |
| 469 | + | |
| 470 | - | des = pa(su,"","Block",0,0,0,false,false,0,0,"") qi({"SpecialMesh",des,MeshType="FileMesh",Scale=v3(0.1,0.4,0.1),MeshId=Decs.Spike})
|
| 470 | + | if number > 0 then |
| 471 | - | desw = qi({"Weld",han2,Part0=han2,Part1=des,C0=ca(0,rd(i),0)*cn(0,1.8,0.3)*ca(rd(90),0,0)})
|
| 471 | + | number = 0 |
| 472 | - | end |
| 472 | + | end |
| 473 | - | han5 = pa(su,"","Block",0,0,0,false,false,0,0,"Black") qi({"SpecialMesh",han5,MeshType="Sphere",Scale=v3(0.35,0.6,0.35)*5})
|
| 473 | + | return number |
| 474 | - | han5w = qi({"Weld",han2,Part0=han2,Part1=han5,C0=cn(0,2,0)})
|
| 474 | + | end |
| 475 | - | han6 = pa(su,"","Wedge",0,0,0,false,false,0,0,"Black") qi({"SpecialMesh",han6,MeshType="Wedge",Scale=v3(0.1,1,0.5)*5})
|
| 475 | + | |
| 476 | - | han6w = qi({"Weld",han2,Part0=han2,Part1=han6,C0=cn(0,2.4,0.05)*ca(rd(10),0,0)})
|
| 476 | + | negativeangle = function(number) |
| 477 | - | han7 = pa(su,"","Block",0,0,0,false,false,0,1,"") qi({"SpecialMesh",han7,MeshType="FileMesh",Scale=v3(0.75,0.75,2),MeshId=Decs.Ring})
|
| 477 | + | |
| 478 | - | han7w = qi({"Weld",han2,Part0=han2,Part1=han7,C0=cn(0,2.9,0)*ca(0,rd(90),0)})
|
| 478 | + | if number < 0 then |
| 479 | - | han8 = pa(su,"","Block",0,0,0,false,false,0.3,0.1,"White") qi({"SpecialMesh",han8,MeshType="Sphere",Scale=v3(0.7,0.7,0.7)*5})
|
| 479 | + | number = 0 |
| 480 | - | han8w = qi({"Weld",han2,Part0=han2,Part1=han8,C0=cn(0,2.9,0)*ca(0,0,0)})
|
| 480 | + | end |
| 481 | - | han9 = pa(su,"","Block",0,0,0,false,false,0,0,"Institutional white") qi({"SpecialMesh",han9,Scale=v3(0.25,1,0.25),MeshType="FileMesh",MeshId = Decs.Chakram3})
|
| 481 | + | return number |
| 482 | - | han9w = qi({"Weld",han2,Part0=han2,Part1=han9,C0=cn(0,2.9,0)*ca(0,0,rd(90))})
|
| 482 | + | end |
| 483 | - | q(function() while true do wait(0.035) han9w.C0 = han9w.C0 *ca(0,rd(10),0) end end) |
| 483 | + | |
| 484 | - | for i=0,2 do |
| 484 | + | so = function(id, par, vol, pit) |
| 485 | - | des = pa(su,"","Block",0,0,0,false,false,0,0.05,"Really black") qi({"SpecialMesh",des,MeshType="FileMesh",Scale=v3(0.2,1,0.2),MeshId=Decs.Diamond})
|
| 485 | + | |
| 486 | - | desw = qi({"Weld",han2,Part0=han2,Part1=des,C0=cn(0,2.1+(i/2.1),0.6+(i/5))*ca(rd(150-(i*30)),0,0)})
|
| 486 | + | coroutine.resume(coroutine.create(function() |
| 487 | - | end |
| 487 | + | |
| 488 | - | des = pa(su,"","Block",0,0,0,false,false,0,0.05,"Really black") qi({"SpecialMesh",des,MeshType="FileMesh",Scale=v3(0.2,1,0.2),MeshId=Decs.Diamond})
|
| 488 | + | local sou = Instance.new("Sound", par or workspace)
|
| 489 | - | desw = qi({"Weld",han2,Part0=han2,Part1=des,C0=cn(0,3.6,0.7)*ca(rd(50),0,0)})
|
| 489 | + | sou.Volume = vol |
| 490 | - | bla = pa(su,"","Wedge",0.2,1,2,false,false,0,1,"") qi({"SpecialMesh",bla,Scale=v3(0.56,1,1),MeshType="Wedge"})
|
| 490 | + | sou.Pitch = pit or 1 |
| 491 | - | blaw = qi({"Weld",han2,Part0=han8,Part1=bla,C0=cn(0,0.5,-1.2)*ca(rd(30),0,0)})
|
| 491 | + | sou.SoundId = "http://roblox.com/asset/?id=" .. id |
| 492 | - | bla2 = pa(su,"","Wedge",0.2,0.7,2,false,false,0,1,"") qi({"SpecialMesh",bla2,Scale=v3(0.53,1,1),MeshType="Wedge"})
|
| 492 | + | hbwait() |
| 493 | - | bla2w = qi({"Weld",han2,Part0=bla,Part1=bla2,C0=cn(0,-0.5,-0.75)*ca(rd(-20),0,0)})
|
| 493 | + | sou:play() |
| 494 | - | bla3 = pa(su,"","Wedge",0.2,0.4,2,false,false,0,1,"") qi({"SpecialMesh",bla3,Scale=v3(0.5,1,1),MeshType="Wedge"})
|
| 494 | + | game:GetService("Debris"):AddItem(sou, 10)
|
| 495 | - | bla3w = qi({"Weld",han2,Part0=bla2,Part1=bla3,C0=cn(0,-0.5,-0.75)*ca(rd(-20),0,0)})
|
| 495 | + | end |
| 496 | - | han10 = pa(su,"","Block",0,0,0,false,false,0,1,"Really black") it('CylinderMesh',han10).Scale = v3(1.2,0.57,1.2)
|
| 496 | + | )) |
| 497 | - | han10 = qi({"Weld",han2,Part0=bla,Part1=han10,C0=cn(0,-0.37,1.35)*ca(0,0,rd(90))})
|
| 497 | + | end |
| 498 | - | han11 = pa(su,"","Block",0.2,0.37,0.7,false,false,0,1,"") it('BlockMesh',han11).Scale = v3(0.48,1,0.9)
|
| 498 | + | |
| 499 | - | han11 = qi({"Weld",han2,Part0=bla,Part1=han11,C0=cn(0,-0.32,1.3)})
|
| 499 | + | GetDistance = function(Part1, Part2, magnitude) |
| 500 | - | --http://www.roblox.com/Knights-of-the-Seventh-Sanctum-Sword-and-Shield-item?id=60357959 |
| 500 | + | |
| 501 | - | raa = c["Right Arm"] |
| 501 | + | local target = Part1.Position - Part2.Position |
| 502 | - | laa = c["Left Arm"] |
| 502 | + | local mag = target.magnitude |
| 503 | - | clawa1 = pa(su,"","Block",0,0,0,false,false,0,0,"Really black") qi({"SpecialMesh",clawa1,MeshType="FileMesh",Scale=v3(0.12,0.8,0.12),MeshId=Decs.Spike})
|
| 503 | + | if mag <= magnitude then |
| 504 | - | clawa1w = qi({"Weld",han2,Part0=laa,Part1=clawa1,C0=ca(rd(180),0,0)*cn(-0.2,1.25,0)})
|
| 504 | + | return true |
| 505 | - | clawa2 = pa(su,"","Block",0,0,0,false,false,0,0,"Really black") qi({"SpecialMesh",clawa2,MeshType="FileMesh",Scale=v3(0.12,0.8,0.12),MeshId=Decs.Spike})
|
| 505 | + | else |
| 506 | - | clawa2w = qi({"Weld",han2,Part0=laa,Part1=clawa2,C0=ca(rd(180),0,0)*cn(0.2,1.25,0)})
|
| 506 | + | return false |
| 507 | - | clawb1 = pa(su,"","Block",0,0,0,false,false,0,0.4,"White") qi({"SpecialMesh",clawb1,MeshType="FileMesh",Scale=v3(0.12,0.8,0.12),MeshId=Decs.Spike})
|
| 507 | + | end |
| 508 | - | clawb1w = qi({"Weld",han2,Part0=clawa1,Part1=clawb1,C0=cn(0,0.15,0)})
|
| 508 | + | end |
| 509 | - | clawb2 = pa(su,"","Block",0,0,0,false,false,0,0.4,"White") qi({"SpecialMesh",clawb2,MeshType="FileMesh",Scale=v3(0.12,0.8,0.12),MeshId=Decs.Spike})
|
| 509 | + | |
| 510 | - | clawb2w = qi({"Weld",han2,Part0=clawa2,Part1=clawb2,C0=cn(0,0.15,0)})
|
| 510 | + | rayCast = function(Pos, Dir, Max, Ignore) |
| 511 | - | badge = pa(su,"","Block",0,0,0,false,false,0,0,"Really red") qi({"SpecialMesh",badge,MeshType="FileMesh",Scale=v3(0.15,1,0.5),MeshId=Decs.Diamond})
|
| 511 | + | |
| 512 | - | badgew = qi({"Weld",han2,Part0=laa,Part1=badge,C0=cn(-0.5,0,0)*ca(rd(25),0,0)})
|
| 512 | + | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
|
| 513 | - | badge2 = pa(su,"","Block",0,0,0,false,false,0,0,"Really black") qi({"SpecialMesh",badge2,MeshType="FileMesh",Scale=v3(0.149,1,0.495),MeshId=Decs.Diamond})
|
| 513 | + | end |
| 514 | - | badge2w = qi({"Weld",han2,Part0=badge,Part1=badge2})
|
| 514 | + | |
| 515 | - | ef = pa(su,"","Block",0,0,0,false,true,1,1,"Black") qi({"SpecialMesh",ef,MeshType="FileMesh",Scale=v3(7,7,4),MeshId=Decs.Chakram2})
|
| 515 | + | DamageStatLabel = function(labeltype, cframe, text, color) |
| 516 | - | --efw = qi({"Weld",han2,Part0=t,Part1=ef,C0=cn(0,-2.9,0)*ca(rd(90),0,0)})
|
| 516 | + | |
| 517 | - | db1 = pa(su,"","Block",0,0,0,false,false,1,0,"White") qi({"SpecialMesh",db1,MeshType="Sphere",Scale=v3(1,1,1)*5})
|
| 517 | + | local c = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt(0, 0, 0)) |
| 518 | - | db1w = qi({"Weld",han2,Part0=laa,Part1=db1,C0=cn(0,-2,0)})
|
| 518 | + | c.CFrame = cf(cframe.p + vt(0, 1.5, 0)) |
| 519 | - | db2 = pa(su,"","Block",0,0,0,false,false,1,0.1,"White") qi({"SpecialMesh",db2,MeshType="Sphere",Scale=v3(1.2,1.2,1.2)*5})
|
| 519 | + | game:GetService("Debris"):AddItem(c, 5)
|
| 520 | - | db2w = qi({"Weld",han2,Part0=db1,Part1=db2,C0=cn(0,0,0)})
|
| 520 | + | Instance.new("BodyGyro", c)
|
| 521 | - | local ebs = false |
| 521 | + | local f = Instance.new("BodyPosition", c)
|
| 522 | - | function eb(wutarm,aa,siz) if not siz then siz = 1 end q(function() db1.Mesh.Scale=v3(siz,siz,siz)*5 db1w.Part0 = wutarm db1w.C0 = cn(0,-1+(-siz/1.25),0) if not ebs then ebs = true |
| 522 | + | f.P = 2000 |
| 523 | - | if aa then db1.Transparency = 0.1 else for i=1,0.1,-0.1 do db1.Transparency = i wait() end end |
| 523 | + | f.D = 100 |
| 524 | - | else |
| 524 | + | f.maxForce = vt(math.huge, math.huge, math.huge) |
| 525 | - | ebs = false if aa then db1.Transparency = 1 else for i=0.1,1,0.1 do db1.Transparency = i wait() end end |
| 525 | + | if labeltype == "Normal" then |
| 526 | - | end end) end |
| 526 | + | f.position = c.Position + vt(math.random(-2, 2), 6, math.random(-2, 2)) |
| 527 | - | local efm = ef.Mesh.Scale |
| 527 | + | else |
| 528 | - | function e(aa) if aa ~= nil then ef.Mesh.Scale=efm*aa else ef.Mesh.Scale=efm end if ef.Transparency < 0.4 then |
| 528 | + | if labeltype == "Debuff" then |
| 529 | - | for i=0.3,1,0.1 do ef.Transparency = i wait() end |
| 529 | + | f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2)) |
| 530 | - | else |
| 530 | + | else |
| 531 | - | q(function() for i=1,0.3,-0.1 do ef.Transparency = i wait() end end) |
| 531 | + | if labeltype == "Interruption" then |
| 532 | - | end end |
| 532 | + | f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2)) |
| 533 | - | q(function() while true do if ebs then for i=0.4,0.7,0.025 do local tra = (i+0.15)*(db1.Mesh.Scale.x/4) db2.Transparency =i wait() db2.Mesh.Scale=db1.Mesh.Scale*1.2+v3(tra*(db1.Mesh.Scale.x/5),tra*(db1.Mesh.Scale.x/5),tra*(db1.Mesh.Scale.x/5)) end |
| 533 | + | end |
| 534 | - | for i=0.7,0.4,-0.025 do local tra = (i+0.15)*(db1.Mesh.Scale.x/4) db2.Transparency =i db2.Mesh.Scale=db1.Mesh.Scale*1.2+v3(tra*(db1.Mesh.Scale.x/5),tra*(db1.Mesh.Scale.x/5),tra*(db1.Mesh.Scale.x/5)) wait() end else db2.Transparency = 1 db2.Mesh.Scale = v3(1.2,1.2,1.2)*5 end wait() end end) |
| 534 | + | end |
| 535 | - | q(function() while true do for i=0,1,0.05 do badge.Transparency = i wait() end badge.Transparency = 1 wait(1) for i=1,0,-0.05 do badge.Transparency = i wait() end wait(4) end end) |
| 535 | + | end |
| 536 | - | sho = pa(su,"","Block",0,0,0,false,false,0,0,"Black") qi({"SpecialMesh",sho,Scale=v3(1.1,1.1,1.1)*5,MeshType="Wedge"})
|
| 536 | + | game:GetService("Debris"):AddItem(c, 5)
|
| 537 | - | show = qi({"Weld",han2,Part0=raa,Part1=sho,C0=cn(0,0.545,0)*ca(rd(180),rd(90),0)})
|
| 537 | + | local bg = Instance.new("BillboardGui", c)
|
| 538 | - | chak = pa(su,"","Block",0,0,0,false,false,0,0,"") qi({"SpecialMesh",chak,Scale=v3(0.09,0.09,0.24)*5,MeshType="FileMesh",MeshId=Decs.Chakram})
|
| 538 | + | bg.Adornee = c |
| 539 | - | chakw = qi({"Weld",han2,Part0=raa,Part1=chak,C0=cn(0.56,0.5,0)*ca(0,rd(-90),0)})
|
| 539 | + | bg.Size = UDim2.new(2.5, 0, 2.5, 0) |
| 540 | - | chak2 = pa(su,"","Block",0,0,0,false,false,0.1,0.1,"White") qi({"SpecialMesh",chak2,Scale=v3(0.15,0.15,0.05)*5,MeshType="FileMesh",MeshId=Decs.Chakram2})
|
| 540 | + | bg.StudsOffset = vt(-2, 2, 0) |
| 541 | - | chak2w = qi({"Weld",han2,Part0=raa,Part1=chak2,C0=cn(0.56,0.5,0)*ca(0,rd(-90),0)})
|
| 541 | + | bg.AlwaysOnTop = false |
| 542 | - | local efww = 0 |
| 542 | + | local tl = Instance.new("TextLabel", bg)
|
| 543 | - | q(function() while true do wait() if FindGround(to.CFrame) then efww = efww+25 ef.CFrame = FindGround(to.CFrame)*ca(0,rd(efww),0)*ca(rd(90),0,0) else ef.CFrame=cn(10000,10000,10000) end end end) |
| 543 | + | tl.BackgroundTransparency = 1 |
| 544 | - | q(function() while true do wait(0.035) chak2w.C0 = chak2w.C0*ca(0,0,rd(25)) end end) |
| 544 | + | tl.Size = UDim2.new(2.5, 0, 2.5, 0) |
| 545 | - | ---- TUT02LOL |
| 545 | + | tl.Text = text |
| 546 | - | function Act(k,kb) |
| 546 | + | tl.Font = Enum.Font.SourceSans |
| 547 | - | if kb then |
| 547 | + | tl.FontSize = Enum.FontSize.Size42 |
| 548 | - | if k == "e" and Anim=="None" then |
| 548 | + | tl.TextColor3 = color |
| 549 | - | Anim = "SpawnSwords" Armz(false) e() eb(raa) fac = true |
| 549 | + | tl.TextScaled = false |
| 550 | - | c2(law,spd,3,-1.5,1,0,30,0,30) c2(tw,spd,3,0,0,0,0,-95,0) c2(hw,spd,3,0,1.5,0,0,95,0) |
| 550 | + | tl.TextStrokeTransparency = 0 |
| 551 | - | c1(raw,spd,3,1,0.5,0,0,0,-80) c2(raw,spd,3,1,0.4,0,0,0,-140) for i=1,5 do SpawnSword(FindGround(to.CFrame*cn(0,-2.75,-0.5+(-i*8)-i)),1+(i/10),15,"Navy blue") wait(0.06) end |
| 551 | + | tl.TextScaled = true |
| 552 | - | eb(raa) fac = false wait(0.2) e() c2(law,spd,3,-1.5,1,0,0,0,0) c2(hw,spd,3,0,1.5,0,0,0,0) c2(tw,spd,3,0,0,0,0,0,0) c1(raw,spd,3,1.5,1,0,0,0,0) Armz(true) |
| 552 | + | tl.TextWrapped = true |
| 553 | - | Anim = "None" |
| 553 | + | f.Parent = c |
| 554 | - | elseif k == "q" and Anim=="None" then |
| 554 | + | coroutine.resume(coroutine.create(function(Part, BodyPosition, TextLabel) |
| 555 | - | Anim = "GravGrab" Armz(false) e() eb(laa) caw = false |
| 555 | + | |
| 556 | - | c2(raw,spd,3,1.5,1,0,30,0,20) c2(tw,spd,3,0,0,0,0,95,0) c2(hw,spd,3,0,1.5,0,0,-95,0) |
| 556 | + | wait(0.25) |
| 557 | - | c1(law,spd,3,-1,0.5,0,0,0,130) SpikeSucker(to.CFrame*cn(0,5,-6),1) eb(laa) hanw.Part0 = raa hanw.C0 = cn(-0.1,-1.1,0)*ca(0,0,rd(75)) hanw.C1=ca(0,rd(-105),0) |
| 557 | + | for i = 1, 5 do |
| 558 | - | c2(law,spd,3,-1,0.5,0,45,0,90) c2(hw,spd,3,0,1.5,0,0,90,0) c2(tw,spd,3,0,0,0,0,-90,0) c2(hanw,spd,0,-0.1,-2.2,0,0,90,170) |
| 558 | + | wait() |
| 559 | - | Trail(bla3,15,0,"White",0.65,cn(0,-0.2,-1)) rayHit(0.6,1,ra,ca(rd(-90),0,0),8,1.3) |
| 559 | + | BodyPosition.position = Part.Position - vt(0, 0.5, 0) |
| 560 | - | c1(raw,spd,3,1.3,0.5,0,-30,0,-135) wait(0.5) c2(hanw,spd,0,-0.1,-1.1,0,0,0,75) |
| 560 | + | end |
| 561 | - | caw = true c2(hw,spd,3,0,1.5,0,0,0,0) c2(tw,spd,3,0,0,0,0,0,0) c2(law,spd,3,-1.5,1,0,0,0,0) c1(raw,spd,3,1.5,1,0,30,3,20) hanw.Part0 = t hanw.C1=ca(0,0,0) hanw.C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0) c1(raw,spd,3,1.5,1,0,0,0,0) |
| 561 | + | wait(1.25) |
| 562 | - | e() Anim = "None" Armz(true) |
| 562 | + | for i = 1, 5 do |
| 563 | - | elseif k == "z" and Anim=="None" then |
| 563 | + | wait() |
| 564 | - | Anim = "Blackspace" Armz(false) Legz(false) caw = false |
| 564 | + | TextLabel.TextTransparency = TextLabel.TextTransparency + 0.2 |
| 565 | - | c2(raw,spd,3,1.5,1,0,20,0,-20) c2(law,spd,3,-1.5,1,0,20,0,20) c2(rlw,spd,3,0.5,-1,0,20,0,-20) c2(llw,spd,3,-0.5,-1,0,20,0,20) c1(tw,spd*0.5,3,0,7,0,0,0,0) Blackspace(t.CFrame,40,3) |
| 565 | + | TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.2 |
| 566 | - | c2(raw,spd,3,1.5,1,0,0,0,0) c2(law,spd,3,-1.5,1,0,0,0,0) c2(rlw,spd,3,0.5,-1,0,0,0,0) c2(llw,spd,3,-0.5,-1,0,0,0,0) c1(tw,spd,3,0,0,0,0,0,0) Anim = "None" Armz(true) Legz(true) caw = true |
| 566 | + | BodyPosition.position = Part.Position + vt(0, 0.5, 0) |
| 567 | - | elseif k == "g" and Anim=="None" then |
| 567 | + | end |
| 568 | - | Anim = "MatterBall" e() Armz(false) fac = true |
| 568 | + | Part.Parent = nil |
| 569 | - | c2(tw,spd*1.3,3,0,0,0,0,-90,0) c2(hw,spd*1.3,3,0,1.5,0,0,90,0) c1(law,spd*1.3,3,-1,0.5,0,50,0,90-math.deg((to.Position - mouse.hit.p).unit.y)) |
| 569 | + | end |
| 570 | - | eb(laa,nil,3) wait(0.3) |
| 570 | + | ), c, f, tl) |
| 571 | - | c2(tw,spd*1.55,3,0,0,0,0,70,0) c2(hw,spd*1.55,3,0,1.5,0,0,-70,0) c1(law,spd*1.55,3,-1,0.5,0,-20,0,90-math.deg((to.Position - mouse.hit.p).unit.y)) eb(laa,true,2) MatterBall(cn(db1.Position,la.CFrame*cn(0,-20,0).p),3,5,30,1.5) |
| 571 | + | end |
| 572 | - | fac = false c2(tw,spd*1.3,3,0,0,0,0,0,0) c2(hw,spd*1.3,3,0,1.5,0,0,0,0) c1(law,spd*1.3,3,-1.5,1,0,0,0,0) e() Armz(true) wait(0.1) Anim = "None" |
| 572 | + | |
| 573 | - | elseif k == "r" and Anim=="None" then |
| 573 | + | IncreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat) |
| 574 | - | Anim = "Block" Armz(false) fac = true |
| 574 | + | |
| 575 | - | c2(tw,spd,3,0,0,0,0,-65,0) c2(hw,spd,3,0,1.5,0,0,65,0) c1(raw,spd,3,1.5,0.5,0.2,-100,-25,-5) c2(law,spd,3,-1.3,1,0.2,20,0,20) |
| 575 | + | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 |
| 576 | - | local spm = chak2.Mesh.Scale for i=1,11,1 do chak2.Reflectance = i/40 chak2.Mesh.Scale = spm*i wait() end |
| 576 | + | |
| 577 | - | block.Value = true repeat wait(0.4) GlowMesh(true,chak2.Mesh.MeshId,chak2,chak2.Mesh.Scale*1.5,'White',cn(0,0,0),chak2.Transparency,1,0.025) until not ky[k] for i=11,1,-1 do chak2.Reflectance = i/40 chak2.Mesh.Scale = spm*i wait() end chak2.Reflectance = 0 |
| 577 | + | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 |
| 578 | - | block.Value = false c2(tw,spd*1.3,3,0,0,0,0,0,0) c2(hw,spd*1.3,3,0,1.5,0,0,0,0) c2(law,spd*1.3,3,-1.5,1,0,0,0,0) c1(raw,spd*1.3,3,1.5,1,0,0,0,0) Armz(true) fac = false Anim = "None" |
| 578 | + | |
| 579 | - | elseif k == "v" and Anim=="None" then |
| 579 | + | if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
|
| 580 | - | Anim = "RakeFist" Armz(false) fac = true |
| 580 | + | Location.Stats[Stat].Value = Location.Stats[Stat].Value + Amount |
| 581 | - | c1(raw,spd*1.5,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd*1.5,3,1.5,0.5,0,-340,0,25) hanw.Part0 = raa hanw.C0 = cn(-0.1,-1.1,0)*ca(0,0,rd(75)) hanw.C1=ca(0,rd(-105),0) |
| 581 | + | if ShowTheStat == true then |
| 582 | - | if (to.Position - mouse.hit.p).magnitude < 125 then c2(hanw,spd*1.5,0,-0.1,-1.2,0,0,-30,100) c1(raw,spd*1.5,3,1.5,0.5,0,-135,-60,0) wait(0.2) FistBoom(cn(to.CFrame*cn(-1.5,1.5,-4).p,to.CFrame*cn(-1.5,1.5,-5).p),1,rn(d[1]*2,d[2]*2),(to.Position-v3(mouse.hit.p.x,to.Position.y,mouse.hit.p.z)).magnitude-10) fac = false c1(raw,spd,3,1,0.5,0,-50,70,0) end fac = false |
| 582 | + | if Stat == "Defense" then |
| 583 | - | wait(0.2) c2(hanw,spd*0.7,0,-0.1,-1.2,0,0,0,70) c1(raw,spd,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd,3,1.5,0.5,0,-340,0,25) hanw.Part0 = t hanw.C1=ca(0,0.5,0) hanw.C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0) |
| 583 | + | DamageStatLabel("Debuff", Location.Head.CFrame, "+Defense", c3(1, 1, 1))
|
| 584 | - | c1(raw,spd*0.8,3,1.5,1,0,0,0,0) Armz(true) Anim = "None" |
| 584 | + | else |
| 585 | - | elseif k=="h" and Anim=="None" then |
| 585 | + | if Stat == "Damage" then |
| 586 | - | Anim = "Worm" Armz(false) e(3) fac = true caw = false |
| 586 | + | DamageStatLabel("Debuff", Location.Head.CFrame, "+Damage", c3(1, 1, 1))
|
| 587 | - | c2(tw,spd,3,0,0,0,0,-90,0) c2(hw,spd,3,0,1.5,0,0,90,0) c1(raw,spd*1.5,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd*1.5,3,1.5,0.5,0,-340,0,25) hanw.Part0 = raa hanw.C0 = cn(-0.1,-1.1,0)*ca(0,0,rd(75)) hanw.C1=ca(0,rd(-105),0) |
| 587 | + | else |
| 588 | - | c2(hanw,spd,0,-0.1,-1.5,0,0,0,180) c1(raw,spd,3,1,0.5,0,-180,0,-30) c1(raw,spd,3,1,0.5,0,0,0,-90) |
| 588 | + | if Stat == "Movement" then |
| 589 | - | local tpos = mouse.hit.p if (tpos - bla2.Position).magnitude < 350 then q(function() local to = pa(su,"","Block",2,1,2,false,true,0.1,0,"White") it('CylinderMesh',to) local to2 = pa(su,"","Block",0,0,0,false,true,0.1,0,"White") qi({"SpecialMesh",to2,Scale=v3(2,2,2),MeshType="FileMesh",MeshId=Decs.Totem})
|
| 589 | + | DamageStatLabel("Debuff", Location.Head.CFrame, "+Movement", c3(1, 1, 1))
|
| 590 | - | for i=1,5,0.5 do to.Size=v3(2,i,2) to.CFrame=cn(tpos+v3(0,i/2,0)) to2.CFrame = to.CFrame*cn(0,(i/2)+1,0) wait() end wait(3.5) for i=0.2,1,0.1 do to.Transparency = i to2.Transparency = i wait() end to:Remove() to2:Remove() end) |
| 590 | + | end |
| 591 | - | for i=1,8 do Lightning(bla2.Position,tpos,math.floor((bla2.Position-tpos).magnitude/18)+1,1.5,"White",0.3,0) wait(0.04) end fac = false |
| 591 | + | end |
| 592 | - | caw = true q(function() wait(1) WormDrill(cn(tpos),rn(25,30)/10) end) c1(law,spd,3,-1.5,0.25,0,0,0,180) q(function() local to = pa(su,"","Block",1.5,1.5,1.5,false,true,0.1,0,"White") qi({"SpecialMesh",to,MeshType="Sphere"}) for i=1,15,1 do to.Size=v3(1.5,i*2,1.5) to.CFrame=la.CFrame*cn(0,-2+(-i),0) wait() end GlowMesh(false,"Sphere",t,v3(35,35,35),'Navy blue',la.CFrame*cn(0,-32,0),0.1,1,0.1) fade(to,0.1) end)
|
| 592 | + | end |
| 593 | - | end fac = false caw = true c2(hanw,spd*0.7,0,-0.1,-1.2,0,0,0,70) c1(raw,spd,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd,3,1.5,0.5,0,-340,0,25) hanw.Part0 = t hanw.C1=ca(0,0,0) hanw.C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0) |
| 593 | + | end |
| 594 | - | c2(tw,spd,3,0,0,0,0,0,0) c2(hw,spd,3,0,1.5,0,0,0,0) c2(law,spd*0.8,3,-1.5,1,0,0,0,0) c1(raw,spd*0.8,3,1.5,1,0,0,0,0) Armz(true) e(3) Anim = "None" |
| 594 | + | coroutine.resume(coroutine.create(function(CurrentDecrease) |
| 595 | - | elseif k == "y" and Anim == "None" then |
| 595 | + | |
| 596 | - | Anim = "Whirlwind" Armz(false) e() fac = true |
| 596 | + | wait(Duration) |
| 597 | - | c1(raw,spd*1.5,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd*1.5,3,1.5,0.5,0,-340,0,25) hanw.Part0 = raa hanw.C0 = cn(-0.1,-1.1,0)*ca(0,0,rd(75)) hanw.C1=ca(0,rd(-105),0) |
| 597 | + | CurrentDecrease.Value = CurrentDecrease.Value - Amount |
| 598 | - | c2(hanw,spd,0,-0.1,-1.2,0,0,0,90) c2(hanw,spd,1,0,0,0,0,0,0) c1(raw,spd,3,1,0.5,0,-180,0,0) wait(0.1) |
| 598 | + | end |
| 599 | - | local to = pa(su,"","Block",0,0,0,false,false,0.2,0,"White") it('CylinderMesh',to).Scale=v3(9,0.2,9)*5 local tom = qi({"Weld",to,Part0=ra,Part1=to})
|
| 599 | + | ), Location.Stats[Stat]) |
| 600 | - | q(function() for i=1,40 do if i == 20 then for hax=-50,50,25 do SpawnTornado(t.CFrame*cn(0,3,0)*ca(0,rd(hax),0),1,1.2,6) end end tom.C0 = cn(0,-2.3,0)*ca(rd(rn(-8,8)),0,rd(rn(-8,8))) wait() end fade(to,0.1) end) c1(hanw,spd*0.3,1,0,0,0,360*5,0,0) cleanweld(hanw,"a1") |
| 600 | + | end |
| 601 | - | c2(hanw,spd*0.7,0,-0.1,-1.2,0,0,0,70) c1(raw,spd,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd,3,1.5,0.5,0,-340,0,25) hanw.Part0 = t hanw.C1=ca(0,0,0) hanw.C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0) |
| 601 | + | DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
|
| 602 | - | c1(raw,spd,3,1.5,1,0,0,0,0) Armz(true) e() fac = false Anim ="None" |
| 602 | + | end |
| 603 | - | elseif k == "n" and Anim=="None" then |
| 603 | + | |
| 604 | - | Anim = "CrownSwords" Armz(false) Legz(false) e() caw = false c2(tw,spd,3,0,5,2,-20,0,0) c2(llw,spd,3,-0.5,-1,0,20,0,20) c2(rlw,spd,3,0.5,-1,0,20,0,-20) |
| 604 | + | DecreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat) |
| 605 | - | c1(raw,spd*1.5,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd*1.5,3,1.5,0.5,0,-340,0,25) hanw.Part0 = raa hanw.C0 = cn(-0.1,-1.1,0)*ca(0,0,rd(75)) hanw.C1=ca(0,rd(-105),0) |
| 605 | + | |
| 606 | - | c2(hanw,spd,0,-0.1,-1.2,0,40,0,205) c2(hanw,spd,1,0,0,0,0,-180,0) c2(raw,spd,3,1,0.5,-0.5,-135,-25,0) c1(law,spd,3,-1,0.5,-0.5,-135,25,0) wait(0.15) |
| 606 | + | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 |
| 607 | - | c2(raw,spd,3,1,0.5,-0.5,-70,-25,0) c2(law,spd,3,-1,0.5,-0.5,-70,25,0) c1(tw,spd,3,0,0,0,30,0,0) wait(0.2) GlowMesh(false,"Sphere",t,v3(9,15,12),'Navy blue',to.CFrame,0.1,1,0.05) CrownSwords(to.CFrame*cn(0,-2.5,-3)) to.CFrame = to.CFrame*cn(0,0,30) GlowMesh(false,"Sphere",t,v3(9,15,12),'Navy blue',to.CFrame,0.1,1,0.05) |
| 607 | + | |
| 608 | - | wait(0.2) e() c2(tw,spd,3,0,0,0,0,0,0) c2(llw,spd,3,-0.5,-1,0,0,0,0) c2(rlw,spd,3,0.5,-1,0,0,0,0) c2(hanw,spd*0.7,0,-0.1,-1.2,0,0,0,70) c1(raw,spd,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd,3,1.5,0.5,0,-340,0,25) hanw.Part0 = t hanw.C1=ca(0,0,0) hanw.C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0) |
| 608 | + | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 |
| 609 | - | c1(law,spd,3,-1.5,1,0,0,0,0) c1(raw,spd,3,1.5,1,0,0,0,0) Legz(true) Armz(true) caw = true Anim ="None" |
| 609 | + | |
| 610 | - | elseif k == "b" and Anim=="None" then |
| 610 | + | if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
|
| 611 | - | Anim = "DeathWall" Armz(false) e() caw = false |
| 611 | + | Location.Stats[Stat].Value = Location.Stats[Stat].Value - Amount |
| 612 | - | c1(raw,spd*1.5,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd*1.5,3,1.5,0.5,0,-340,0,25) hanw.Part0 = raa hanw.C0 = cn(-0.1,-1.1,0)*ca(0,0,rd(75)) hanw.C1=ca(0,rd(-105),0) |
| 612 | + | if ShowTheStat == true then |
| 613 | - | c2(hanw,spd,0,-0.1,-1.2,0,40,0,190) c2(hanw,spd,1,0,0,0,0,-180,0) c2(raw,spd,3,1,0.5,-0.5,-135,-25,0) c1(law,spd,3,-1,0.5,-0.5,-135,25,0) wait(0.15) |
| 613 | + | if Stat == "Defense" then |
| 614 | - | c2(raw,spd*1.4,3,1,0.5,-0.5,-45,-25,0) c1(law,spd*1.4,3,-1,0.5,-0.5,-45,25,0) GlowMesh(false,"Sphere",t,v3(15,1,15),'Navy blue',to.CFrame*cn(0,-2.8,-5.5),0.1,1,0.03) |
| 614 | + | DamageStatLabel("Debuff", Location.Head.CFrame, "-Defense", c3(1, 1, 1))
|
| 615 | - | wait(0.2) for i=0,300,60 do SpawnDeathBlock(to.CFrame*ca(0,rd(i),0)*cn(0,-2.8,-10),to.Position,1) wait() end |
| 615 | + | else |
| 616 | - | wait(0.2) e() c2(tw,spd,3,0,0,0,0,0,0) c2(llw,spd,3,-0.5,-1,0,0,0,0) c2(rlw,spd,3,0.5,-1,0,0,0,0) c2(hanw,spd*0.7,0,-0.1,-1.2,0,0,0,70) c1(raw,spd,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd,3,1.5,0.5,0,-340,0,25) hanw.Part0 = t hanw.C1=ca(0,0,0) hanw.C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0) |
| 616 | + | if Stat == "Damage" then |
| 617 | - | c1(law,spd,3,-1.5,1,0,0,0,0) c1(raw,spd,3,1.5,1,0,0,0,0) Armz(true) caw = true Anim ="None" |
| 617 | + | DamageStatLabel("Debuff", Location.Head.CFrame, "-Damage", c3(1, 1, 1))
|
| 618 | - | elseif k == "f" and Anim=="None" then |
| 618 | + | else |
| 619 | - | Anim = "RapidKick" Legz(false) |
| 619 | + | if Stat == "Movement" then |
| 620 | - | c1(tw,spd,3,0,-0.5,0,-90,0,90) local lo = {-1,-1.6} local ty = 0 ws(25)
|
| 620 | + | DamageStatLabel("Debuff", Location.Head.CFrame, "-Movement", c3(1, 1, 1))
|
| 621 | - | c1(tw,0.013,3,0,-0.5,0,-90,0,90+(360*5),function() ty=ty+1 local tz = 35 if lo[1] == -1 then lo = {-1.6,-1} else lo = {-1,-1.6} end
|
| 621 | + | end |
| 622 | - | c2(llw,1,3,-0.5,lo[1],0,rn(-tz,tz),0,rn(-tz,tz)) |
| 622 | + | end |
| 623 | - | c2(rlw,1,3,0.5,lo[2],0,rn(-tz,tz),0,rn(-tz,tz)) |
| 623 | + | end |
| 624 | - | local tst = ll if rn(1,2) == 1 then tst = rl end |
| 624 | + | end |
| 625 | - | local das = pa(su,"","Block",1.5,2.5,1.5,false,true,0.1,0,"White") qi({"SpecialMesh",das,MeshType="Sphere"})
|
| 625 | + | coroutine.resume(coroutine.create(function(CurrentDecrease) |
| 626 | - | das.CFrame=tst.CFrame*cn(0,-4,0) fade(das,0.2) |
| 626 | + | |
| 627 | - | if ty%3== 0 then hu:MoveTo(to.CFrame*cn(0,0,-5).p,to) local rr = 2 GetRegion(to.CFrame*cn(0,0,-3).p-v3(rr,rr,rr),to.CFrame*cn(0,0,-3).p+v3(rr,rr,rr),function(v) Dmgz(false,v.Humanoid,rn(d[1],d[2])*0.2,v.Torso) end) end |
| 627 | + | wait(Duration) |
| 628 | - | if ty%6==0 then GlowMesh(false,Decs.Crown,t,v3(3,6,3),'Navy blue',to.CFrame*cn(0,0,3)*ca(rd(90),0,0),0.1,1,0.05) end |
| 628 | + | CurrentDecrease.Value = CurrentDecrease.Value + Amount |
| 629 | - | end) ws(16) |
| 629 | + | end |
| 630 | - | c2(llw,1,3,-0.5,-1,0,0,0,0) c2(rlw,1,3,0.5,-1,0,0,0,0) c1(tw,spd,3,0,0,0,0,0,360*5) cleanweld(tw,"a1") Legz(true) Anim="None" |
| 630 | + | ), Location.Stats[Stat]) |
| 631 | - | end |
| 631 | + | end |
| 632 | - | else |
| 632 | + | DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
|
| 633 | - | if k == "q" then |
| 633 | + | end |
| 634 | - | end -- q end |
| 634 | + | |
| 635 | - | end -- l end |
| 635 | + | Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, DecreaseTheStat, DecreaseAmount, DecreaseDuration, ShowDecreasedStat) |
| 636 | - | end -- func end |
| 636 | + | |
| 637 | - | local pla = pa(su,"","Block",7,1,7,true,true,1,0,"White") |
| 637 | + | if hit.Parent == nil then |
| 638 | - | function ButtonDown() if Anim~="None" then return end |
| 638 | + | return |
| 639 | - | to.Velocity=v3(0,0,0) if hu.Jump then GlowMesh(false,"Sphere",t,v3(8,2,8),'White',to.CFrame*cn(0,-2,0),0.1,1,0.05) GlowMesh(false,Decs.Crown,t,v3(5,3,5),'White',to.CFrame*cn(0,-1.5,0)*ca(rd(180),0,0),0.1,1,0.05) to.CFrame=to.CFrame*cn(0,20,0) |
| 639 | + | end |
| 640 | - | hu.Jump=false GlowMesh(false,"Sphere",t,v3(8,2,8),'Navy blue',to.CFrame*cn(0,-4,0),0.1,1,0.05) |
| 640 | + | h = hit.Parent:FindFirstChild("Humanoid")
|
| 641 | - | else GlowMesh(false,"Sphere",t,v3(8,10,2),'Navy blue',to.CFrame,0.1,1,0.05) |
| 641 | + | for _,v in pairs(hit.Parent:GetChildren()) do |
| 642 | - | GlowMesh(false,Decs.Crown,t,v3(5,3,5),'Navy blue',to.CFrame*cn(0,0,1)*ca(rd(90),0,0),0.1,1,0.05) to.CFrame=to.CFrame*cn(0,0,-12) GlowMesh(false,"Sphere",t,v3(8,10,2),'White',to.CFrame*cn(0,0,1),0.1,1,0.05) end |
| 642 | + | if v:IsA("Humanoid") then
|
| 643 | - | pla.CFrame= to.CFrame*cn(0,-3.4,0) local orpos = pla.Position repeat wait(0.5) GlowMesh(false,"Sphere",t,v3(14,1,14),'Navy blue',cn(orpos)*cn(0,0.5,0),0.1,1,0.02) until pla.Position~=orpos or (pla.Position-to.Position).magnitude>10 |
| 643 | + | h = v |
| 644 | - | to.Velocity=v3(0,0,0) |
| 644 | + | end |
| 645 | - | end |
| 645 | + | end |
| 646 | - | pl.Chatted:connect(function(ms) local m = ms:lower() if su.Parent == nil then return end |
| 646 | + | if hit.Name == "Hitbox" and ranged ~= true and hit.Parent ~= m then |
| 647 | - | if m=="tkon" then tk = true |
| 647 | + | StaggerHitAnim.Value = true |
| 648 | - | elseif m=="tkoff" then tk = false |
| 648 | + | so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1) |
| 649 | - | elseif m == "rake" and Anim=="None" then Anim = "Special" |
| 649 | + | return |
| 650 | - | for i=1,8 do FistBoom(to.CFrame*ca(0,rd((360/8)*i),0)*cn(0,3,-6),1.5,rn(d[1]*2,d[2]*2),15) end wait(2) Anim="None" |
| 650 | + | end |
| 651 | - | elseif m == "torn" and Anim=="None" then Anim = "Special" |
| 651 | + | if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
|
| 652 | - | for i=1,10 do SpawnTornado(t.CFrame*cn(0,3,0)*ca(0,rd((360/10)*i),0)*cn(0,0,-2.5),1.5,1.5,8) end Anim = "None" |
| 652 | + | h = hit.Parent.Parent:FindFirstChild("Humanoid")
|
| 653 | - | elseif m == "blast" and Anim=="None" then Anim = "Special" |
| 653 | + | end |
| 654 | - | for i=1,10 do MatterBall(to.CFrame*ca(0,rd((360/10)*i),0)*cn(0,1.5,-2.5),6,5,30,1.5) end Anim = "None" |
| 654 | + | if hit.Parent.className == "Hat" then |
| 655 | - | elseif m:sub(1,2) == "s/" then q(function() loadstring(ms:sub(3))() end) |
| 655 | + | hit = hit.Parent.Parent:FindFirstChild("Head")
|
| 656 | - | end end) |
| 656 | + | end |
| 657 | - | bin = it("HopperBin",nil) --bin = it("Tool") it("Part",bin).Name = "Handle"
|
| 657 | + | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
|
| 658 | - | bin.TextureId="http://www.roblox.com/asset/?id=71521159" |
| 658 | + | if hit.Parent:FindFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
|
| 659 | - | bin.Parent=bp |
| 659 | + | return |
| 660 | - | bin.Name = sn |
| 660 | + | end |
| 661 | - | ---- TUT03LOL |
| 661 | + | if AntiTeamKill.Value == true and Player.Neutral == false and game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then |
| 662 | - | bin.Selected:connect(function(mouse2) mouse = mouse2 |
| 662 | + | return |
| 663 | - | mouse.KeyDown:connect(function(k) ky[k:lower()] = true |
| 663 | + | end |
| 664 | - | Act(k:lower(),true) end) |
| 664 | + | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health <= 0 then
|
| 665 | - | mouse.KeyUp:connect(function(k) ky[k:lower()] = false |
| 665 | + | return |
| 666 | - | Act(k:lower(),false) end) |
| 666 | + | end |
| 667 | - | mouse.Button1Down:connect(function() ButtonDown() end) |
| 667 | + | if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StunValue") ~= nil then
|
| 668 | - | end) |
| 668 | + | hit.Parent.Stats:FindFirstChild("StunValue").Value = hit.Parent.Stats:FindFirstChild("StunValue").Value + incstun
|
| 669 | - | ---- TUT04LOL |
| 669 | + | end |
| 670 | - | bin.Deselected:connect(function() |
| 670 | + | if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StaggerAnim") ~= nil and stagger == true then
|
| 671 | - | end) |
| 671 | + | hit.Parent.Stats:FindFirstChild("StaggerAnim").Value = true
|
| 672 | - | --bin.Parent = c |
| 672 | + | end |
| 673 | - | fac = false local bgg = it('BodyGyro',to)
|
| 673 | + | if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue").Value == true then
|
| 674 | - | ---- TUT05LOL |
| 674 | + | if hit.Parent.Stats:FindFirstChild("BlockDebounce") == nil then
|
| 675 | - | q(function() while wait() do |
| 675 | + | DamageStatLabel("Interruption", hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
|
| 676 | - | if caw then hu.WalkSpeed = wss else hu.WalkSpeed = 0 end |
| 676 | + | local BlockDebounce = Instance.new("BoolValue", hit.Parent.Stats)
|
| 677 | - | if fac then bgg.maxTorque = v3(1/0,1/0,1/0) bgg.D = 50 bgg.cframe = cn(to.Position,v3(mouse.hit.p.x,to.Position.y,mouse.hit.p.z)) else bgg.maxTorque = v3(0,0,0) end |
| 677 | + | BlockDebounce.Name = "BlockDebounce" |
| 678 | - | end end) |
| 678 | + | BlockDebounce.Value = true |
| 679 | game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
| |
| 680 | end | |
| 681 | do | |
| 682 | if ranged ~= true then | |
| 683 | do | |
| 684 | if hit.Parent.Stats:FindFirstChild("BlockDebounce2") == nil then
| |
| 685 | local BlockDebounce2 = Instance.new("BoolValue", hit.Parent.Stats)
| |
| 686 | BlockDebounce2.Name = "BlockDebounce2" | |
| 687 | BlockDebounce2.Value = true | |
| 688 | game:GetService("Debris"):AddItem(BlockDebounce2, 0.1)
| |
| 689 | so(HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1) | |
| 690 | end | |
| 691 | hit.Parent.Stats:FindFirstChild("BlockValue").Value = false
| |
| 692 | StaggerAnim.Value = true | |
| 693 | do return end | |
| 694 | if DecreaseTheStat ~= nil and hit.Parent:FindFirstChild("Stats") ~= nil then
| |
| 695 | if DecreaseTheStat == "Defense" then | |
| 696 | DecreaseStat(hit.Parent, "Defense", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
| 697 | else | |
| 698 | if DecreaseTheStat == "Damage" then | |
| 699 | DecreaseStat(hit.Parent, "Damage", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
| 700 | else | |
| 701 | if DecreaseTheStat == "Movement" then | |
| 702 | DecreaseStat(hit.Parent, "Movement", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
| 703 | end | |
| 704 | end | |
| 705 | end | |
| 706 | end | |
| 707 | local D = math.random(minim, maxim) * Damage.Value | |
| 708 | if hit.Parent:FindFirstChild("Stats") ~= nil then
| |
| 709 | if hit.Parent.Stats:FindFirstChild("Defense") then
| |
| 710 | if CanPenetrateArmor.Value == true then | |
| 711 | D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
| |
| 712 | -- DECOMPILER ERROR at PC377: Unhandled construct in 'MakeBoolean' P1 | |
| 713 | ||
| 714 | if hit.Parent.Stats:FindFirstChild("Defense") ~= nil or CanCrit.Value == true then
| |
| 715 | CritChanceNumber = math.random(1, CritChance.Value) | |
| 716 | if CritChanceNumber == CritChance.Value then | |
| 717 | D = D * 2 | |
| 718 | end | |
| 719 | end | |
| 720 | D = math.floor(D) | |
| 721 | h.Health = h.Health - D | |
| 722 | if D <= 3 and staggerhit == true then | |
| 723 | if ranged ~= true then | |
| 724 | StaggerHitAnim.Value = true | |
| 725 | end | |
| 726 | if ranged ~= true then | |
| 727 | so(HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1) | |
| 728 | end | |
| 729 | else | |
| 730 | if D > 3 and ranged ~= true then | |
| 731 | so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1) | |
| 732 | end | |
| 733 | end | |
| 734 | if D > 3 and D < 20 then | |
| 735 | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then | |
| 736 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
| |
| 737 | so("296102734", hit, 1, 1)
| |
| 738 | else | |
| 739 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0.86274509803922, 0))
| |
| 740 | end | |
| 741 | else | |
| 742 | if D >= 20 then | |
| 743 | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then | |
| 744 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
| |
| 745 | so("296102734", hit, 1, 1)
| |
| 746 | else | |
| 747 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0, 0))
| |
| 748 | end | |
| 749 | else | |
| 750 | if D <= 3 then | |
| 751 | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then | |
| 752 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
| |
| 753 | so("296102734", hit, 1, 1)
| |
| 754 | else | |
| 755 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(0.88235294117647, 0.88235294117647, 0.88235294117647))
| |
| 756 | end | |
| 757 | end | |
| 758 | end | |
| 759 | end | |
| 760 | do | |
| 761 | if Type == "Normal" then | |
| 762 | local vp = Instance.new("BodyVelocity")
| |
| 763 | vp.P = 500 | |
| 764 | vp.maxForce = vt(math.huge, 0, math.huge) | |
| 765 | if KnockbackType == 1 then | |
| 766 | vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 767 | else | |
| 768 | if KnockbackType == 2 then | |
| 769 | vp.Velocity = Property.CFrame.lookVector * knockback | |
| 770 | end | |
| 771 | end | |
| 772 | if knockback > 0 then | |
| 773 | vp.Parent = hit.Parent.Torso | |
| 774 | end | |
| 775 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 776 | end | |
| 777 | local DebounceHit = Instance.new("BoolValue", hit.Parent)
| |
| 778 | DebounceHit.Name = "DebounceHit" | |
| 779 | DebounceHit.Value = true | |
| 780 | game:GetService("Debris"):AddItem(DebounceHit, Delay)
| |
| 781 | end | |
| 782 | end | |
| 783 | end | |
| 784 | end | |
| 785 | end | |
| 786 | end | |
| 787 | end | |
| 788 | end | |
| 789 | end | |
| 790 | end | |
| 791 | ||
| 792 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat) | |
| 793 | ||
| 794 | for _,c in pairs(workspace:GetChildren()) do | |
| 795 | local hum = (c:FindFirstChild("Humanoid"))
| |
| 796 | local head = nil | |
| 797 | if hum ~= nil then | |
| 798 | head = c:FindFirstChild("Torso")
| |
| 799 | if head ~= nil then | |
| 800 | local targ = head.Position - Part.Position | |
| 801 | local mag = targ.magnitude | |
| 802 | if mag <= magni and c.Name ~= Player.Name then | |
| 803 | Damagefunc(head, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat) | |
| 804 | end | |
| 805 | end | |
| 806 | do | |
| 807 | for _,d in pairs(c:GetChildren()) do | |
| 808 | if d.ClassName == "Model" and ranged ~= true then | |
| 809 | head = d:FindFirstChild("Hitbox")
| |
| 810 | if head ~= nil then | |
| 811 | local targ = head.Position - Part.Position | |
| 812 | local mag = targ.magnitude | |
| 813 | if mag <= magni and c.Name ~= Player.Name then | |
| 814 | local hitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt()) | |
| 815 | hitrefpart.Anchored = true | |
| 816 | hitrefpart.CFrame = cf(head.Position) | |
| 817 | so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hitrefpart, 1, 1) | |
| 818 | StaggerHitAnim.Value = true | |
| 819 | end | |
| 820 | end | |
| 821 | end | |
| 822 | end | |
| 823 | do | |
| 824 | -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out DO_STMT | |
| 825 | ||
| 826 | -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
| 827 | ||
| 828 | -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_STMT | |
| 829 | ||
| 830 | end | |
| 831 | end | |
| 832 | end | |
| 833 | end | |
| 834 | end | |
| 835 | ||
| 836 | MagniBufforDebuff = function(Part, Magni, Type, Stat, Amount, Duration, ShowTheBufforDebuff, ApplyToOthersInstead) | |
| 837 | ||
| 838 | if Player.Neutral == true then | |
| 839 | if Type == "Buff" then | |
| 840 | IncreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 841 | else | |
| 842 | if Type == "Debuff" then | |
| 843 | DecreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 844 | end | |
| 845 | end | |
| 846 | end | |
| 847 | for _,c in pairs(workspace:GetChildren()) do | |
| 848 | local hum = (c:FindFirstChild("Humanoid"))
| |
| 849 | local head = nil | |
| 850 | if hum ~= nil then | |
| 851 | head = c:FindFirstChild("Torso")
| |
| 852 | if head ~= nil then | |
| 853 | local targ = head.Position - Part.Position | |
| 854 | local mag = targ.magnitude | |
| 855 | -- DECOMPILER ERROR at PC83: Unhandled construct in 'MakeBoolean' P1 | |
| 856 | ||
| 857 | if ApplyToOthersInstead == true and mag <= Magni and c.Name ~= Player.Name and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then | |
| 858 | if Type == "Buff" then | |
| 859 | IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 860 | else | |
| 861 | if Type == "Debuff" then | |
| 862 | DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 863 | end | |
| 864 | end | |
| 865 | end | |
| 866 | end | |
| 867 | end | |
| 868 | if ApplyToOthersInstead == false and mag <= Magni and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then | |
| 869 | if Type == "Buff" then | |
| 870 | IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 871 | else | |
| 872 | if Type == "Debuff" then | |
| 873 | DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 874 | end | |
| 875 | end | |
| 876 | end | |
| 877 | end | |
| 878 | end | |
| 879 | ||
| 880 | Lightning = function(p0, p1, tym, ofs, brickcolor, material, th, tra, last) | |
| 881 | ||
| 882 | local magz = p0 - p1.magnitude | |
| 883 | local curpos = p0 | |
| 884 | local trz = {-ofs, ofs}
| |
| 885 | for i = 1, tym do | |
| 886 | local li = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt(th, th, magz / tym)) | |
| 887 | do | |
| 888 | li.Anchored = true | |
| 889 | local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
| 890 | local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz | |
| 891 | if tym == i then | |
| 892 | local magz2 = curpos - p1.magnitude | |
| 893 | li.Size = vt(th, th, magz2) | |
| 894 | li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2) | |
| 895 | else | |
| 896 | do | |
| 897 | do | |
| 898 | li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2) | |
| 899 | curpos = li.CFrame * cf(0, 0, magz / tym / 2).p | |
| 900 | game.Debris:AddItem(li, last) | |
| 901 | coroutine.resume(coroutine.create(function() | |
| 902 | ||
| 903 | while li.Transparency ~= 1 do | |
| 904 | for i = 0, 1, last do | |
| 905 | hbwait() | |
| 906 | li.Transparency = li.Transparency + 0.1 / last | |
| 907 | end | |
| 908 | end | |
| 909 | end | |
| 910 | )) | |
| 911 | end | |
| 912 | -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_ELSE_STMT | |
| 913 | ||
| 914 | -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_STMT | |
| 915 | ||
| 916 | -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out DO_STMT | |
| 917 | ||
| 918 | end | |
| 919 | end | |
| 920 | end | |
| 921 | end | |
| 922 | end | |
| 923 | ||
| 924 | MagicRing = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 925 | ||
| 926 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 927 | prt.Anchored = true | |
| 928 | prt.CFrame = cframe | |
| 929 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 930 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 931 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 932 | ||
| 933 | for i = 0, 1, delay do | |
| 934 | hbwait() | |
| 935 | Part.CFrame = Part.CFrame | |
| 936 | Part.Transparency = i | |
| 937 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 938 | end | |
| 939 | Part.Parent = nil | |
| 940 | end | |
| 941 | ), prt, msh) | |
| 942 | end | |
| 943 | ||
| 944 | MagicWave = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 945 | ||
| 946 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 947 | prt.Anchored = true | |
| 948 | prt.CFrame = cframe | |
| 949 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, -0.1 * z1), vt(x1, y1, z1))
| |
| 950 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 951 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 952 | ||
| 953 | for i = 0, 1, delay do | |
| 954 | hbwait() | |
| 955 | Part.CFrame = Part.CFrame | |
| 956 | Part.Transparency = i | |
| 957 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 958 | end | |
| 959 | Part.Parent = nil | |
| 960 | end | |
| 961 | ), prt, msh) | |
| 962 | end | |
| 963 | ||
| 964 | MagicBlock = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 965 | ||
| 966 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 967 | prt.Anchored = true | |
| 968 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 969 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 970 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 971 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 972 | ||
| 973 | for i = 0, 1, delay do | |
| 974 | hbwait() | |
| 975 | if rotate == true then | |
| 976 | Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 977 | end | |
| 978 | Part.Transparency = i | |
| 979 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 980 | end | |
| 981 | Part.Parent = nil | |
| 982 | end | |
| 983 | ), prt, msh) | |
| 984 | end | |
| 985 | ||
| 986 | MagicBlock2 = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 987 | ||
| 988 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 989 | prt.Anchored = true | |
| 990 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 991 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 992 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 993 | CF = prt.CFrame | |
| 994 | num = math.random(5, 20) | |
| 995 | coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num) | |
| 996 | ||
| 997 | for i = 0, 1, delay do | |
| 998 | hbwait() | |
| 999 | if rotate == true then | |
| 1000 | Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1001 | else | |
| 1002 | Part.CFrame = CF2 * cf(0, i * Num, 0) | |
| 1003 | end | |
| 1004 | Part.Transparency = i | |
| 1005 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1006 | end | |
| 1007 | Part.Parent = nil | |
| 1008 | end | |
| 1009 | ), prt, msh, CF, num) | |
| 1010 | end | |
| 1011 | ||
| 1012 | MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1013 | ||
| 1014 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1015 | prt.Anchored = true | |
| 1016 | prt.CFrame = cframe | |
| 1017 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1018 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1019 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1020 | ||
| 1021 | for i = 0, 1, delay do | |
| 1022 | hbwait() | |
| 1023 | Part.Transparency = i | |
| 1024 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1025 | end | |
| 1026 | Part.Parent = nil | |
| 1027 | end | |
| 1028 | ), prt, msh) | |
| 1029 | end | |
| 1030 | ||
| 1031 | MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1032 | ||
| 1033 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1034 | prt.Anchored = true | |
| 1035 | prt.CFrame = cframe | |
| 1036 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1037 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1038 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1039 | ||
| 1040 | for i = 0, 1, delay do | |
| 1041 | hbwait() | |
| 1042 | Part.Transparency = i | |
| 1043 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1044 | end | |
| 1045 | Part.Parent = nil | |
| 1046 | end | |
| 1047 | ), prt, msh) | |
| 1048 | end | |
| 1049 | ||
| 1050 | MagicHead = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1051 | ||
| 1052 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1053 | prt.Anchored = true | |
| 1054 | prt.CFrame = cframe | |
| 1055 | local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1056 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1057 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1058 | ||
| 1059 | for i = 0, 1, delay do | |
| 1060 | hbwait() | |
| 1061 | Part.Transparency = i | |
| 1062 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1063 | end | |
| 1064 | Part.Parent = nil | |
| 1065 | end | |
| 1066 | ), prt, msh) | |
| 1067 | end | |
| 1068 | ||
| 1069 | BreakEffect = function(brickcolor, material, rotate, cframe, x1, y1, z1, delay) | |
| 1070 | ||
| 1071 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1072 | prt.Anchored = true | |
| 1073 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1074 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1075 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1076 | coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb) | |
| 1077 | ||
| 1078 | CF = Part.CFrame | |
| 1079 | Numbb = 0 | |
| 1080 | randnumb = math.random() - math.random() | |
| 1081 | for i = 0, 1, delay do | |
| 1082 | hbwait() | |
| 1083 | CF = CF * cf(0, 1, 0) | |
| 1084 | if rotate == true then | |
| 1085 | Part.CFrame = CF * angles(Numbb, 0, 0) | |
| 1086 | else | |
| 1087 | if rotate == false then | |
| 1088 | Part.CFrame = CF | |
| 1089 | end | |
| 1090 | end | |
| 1091 | Part.Transparency = i | |
| 1092 | Numbb = Numbb + (randnumb) | |
| 1093 | end | |
| 1094 | Part.Parent = nil | |
| 1095 | end | |
| 1096 | ), prt, CF, Numbb, randnumb) | |
| 1097 | end | |
| 1098 | ||
| 1099 | ElecEffect = function(brickcolor, material, cf, x, y, z, delay) | |
| 1100 | ||
| 1101 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1102 | prt.Anchored = true | |
| 1103 | prt.CFrame = cf | |
| 1104 | xval = math.random() | |
| 1105 | yval = math.random() | |
| 1106 | zval = math.random() | |
| 1107 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
| |
| 1108 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1109 | coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal) | |
| 1110 | ||
| 1111 | for i = 0, 1, delay do | |
| 1112 | hbwait() | |
| 1113 | Part.CFrame = Part.CFrame | |
| 1114 | xvaal = xvaal - 0.1 * (delay * 10) | |
| 1115 | yvaal = yvaal - 0.1 * (delay * 10) | |
| 1116 | zvaal = zvaal - 0.1 * (delay * 10) | |
| 1117 | Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal) | |
| 1118 | Part.Transparency = i | |
| 1119 | end | |
| 1120 | Part.Parent = nil | |
| 1121 | end | |
| 1122 | ), prt, msh, xval, yval, zval) | |
| 1123 | end | |
| 1124 | ||
| 1125 | TrailEffect = function(brickcolor, material, currentcf, oldcf, meshtype, reflectance, size, x, y, z, delay) | |
| 1126 | ||
| 1127 | local magnitudecframe = currentcf.p - oldcf.p.magnitude | |
| 1128 | if magnitudecframe > 0.01 then | |
| 1129 | local prt = part(3, Effects, material, reflectance, 0, brickcolor, "Effect", vt(1, magnitudecframe, 1)) | |
| 1130 | prt.Anchored = true | |
| 1131 | prt.CFrame = cf((currentcf.p + oldcf.p) / 2, oldcf.p) * angles(rad(90), 0, 0) | |
| 1132 | local TheMeshType = "BlockMesh" | |
| 1133 | if meshtype == "Cylinder" then | |
| 1134 | TheMeshType = "CylinderMesh" | |
| 1135 | end | |
| 1136 | local msh = mesh(TheMeshType, prt, "", "", vt(0, 0, 0), vt(0 + size, 1, 0 + size)) | |
| 1137 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1138 | coroutine.resume(coroutine.create(function(Part, Mesh, TheCurrentCFrame, TheLastCFrame) | |
| 1139 | ||
| 1140 | for i = 0, 1, delay do | |
| 1141 | hbwait() | |
| 1142 | Part.Transparency = i | |
| 1143 | Mesh.Scale = Mesh.Scale + vt(x, y, z) | |
| 1144 | end | |
| 1145 | Part.Parent = nil | |
| 1146 | end | |
| 1147 | ), prt, msh, currentcf, oldcf) | |
| 1148 | end | |
| 1149 | end | |
| 1150 | ||
| 1151 | ClangEffect = function(brickcolor, material, cframe, angle, duration, size, power, reflectance, x, y, z, delay) | |
| 1152 | ||
| 1153 | local prt = part(3, Effects, material, 0, 1, brickcolor, "Effect", vt()) | |
| 1154 | prt.Anchored = true | |
| 1155 | prt.CFrame = cframe | |
| 1156 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(0, 0, 0))
| |
| 1157 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1158 | local TheLastPoint = cframe | |
| 1159 | coroutine.resume(coroutine.create(function(Part) | |
| 1160 | ||
| 1161 | for i = 1, duration do | |
| 1162 | hbwait() | |
| 1163 | Part.CFrame = Part.CFrame * angles(rad(angle), 0, 0) * cf(0, power, 0) | |
| 1164 | TrailEffect(brickcolor, material, Part.CFrame, TheLastPoint, "Cylinder", reflectance, size, x, y, z, delay) | |
| 1165 | TheLastPoint = Part.CFrame | |
| 1166 | end | |
| 1167 | Part.Parent = nil | |
| 1168 | end | |
| 1169 | ), prt) | |
| 1170 | end | |
| 1171 | ||
| 1172 | MagicCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1173 | ||
| 1174 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1175 | prt.Anchored = true | |
| 1176 | prt.CFrame = cframe | |
| 1177 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1778999", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1178 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1179 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1180 | ||
| 1181 | for i = 0, 1, delay do | |
| 1182 | hbwait() | |
| 1183 | Part.Transparency = i | |
| 1184 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1185 | end | |
| 1186 | Part.Parent = nil | |
| 1187 | end | |
| 1188 | ), prt, msh) | |
| 1189 | end | |
| 1190 | ||
| 1191 | MagicFlatCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1192 | ||
| 1193 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1194 | prt.Anchored = true | |
| 1195 | prt.CFrame = cframe | |
| 1196 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1033714", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1197 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1198 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1199 | ||
| 1200 | for i = 0, 1, delay do | |
| 1201 | hbwait() | |
| 1202 | Part.Transparency = i | |
| 1203 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1204 | end | |
| 1205 | Part.Parent = nil | |
| 1206 | end | |
| 1207 | ), prt, msh) | |
| 1208 | end | |
| 1209 | ||
| 1210 | MagicSpikedCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1211 | ||
| 1212 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1213 | prt.Anchored = true | |
| 1214 | prt.CFrame = cframe | |
| 1215 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1323306", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1216 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1217 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1218 | ||
| 1219 | for i = 0, 1, delay do | |
| 1220 | hbwait() | |
| 1221 | Part.Transparency = i | |
| 1222 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1223 | end | |
| 1224 | Part.Parent = nil | |
| 1225 | end | |
| 1226 | ), prt, msh) | |
| 1227 | end | |
| 1228 | ||
| 1229 | MagicCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1230 | ||
| 1231 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1232 | prt.Anchored = true | |
| 1233 | prt.CFrame = cframe | |
| 1234 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1078075", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1235 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1236 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1237 | ||
| 1238 | for i = 0, 1, delay do | |
| 1239 | hbwait() | |
| 1240 | Part.Transparency = i | |
| 1241 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1242 | end | |
| 1243 | Part.Parent = nil | |
| 1244 | end | |
| 1245 | ), prt, msh) | |
| 1246 | end | |
| 1247 | ||
| 1248 | MagicSkull = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1249 | ||
| 1250 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1251 | prt.Anchored = true | |
| 1252 | prt.CFrame = cframe | |
| 1253 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1254 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1255 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1256 | ||
| 1257 | for i = 0, 1, delay do | |
| 1258 | hbwait() | |
| 1259 | Part.Transparency = i | |
| 1260 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1261 | end | |
| 1262 | Part.Parent = nil | |
| 1263 | end | |
| 1264 | ), prt, msh) | |
| 1265 | end | |
| 1266 | ||
| 1267 | local startequipped = true | |
| 1268 | local startequippedwithequipanimation = false | |
| 1269 | local disableanimator = true | |
| 1270 | local disableanimate = true | |
| 1271 | local alternatewalk = false | |
| 1272 | local hidemenu = false | |
| 1273 | local allowmenutofunction = false | |
| 1274 | local allowabilitiestofunction = false | |
| 1275 | local canunequiporequip = false | |
| 1276 | local allowwalking = false | |
| 1277 | local disablemovingarms = false | |
| 1278 | local usemotorsinsteadofwelds = false | |
| 1279 | local leftarm = false | |
| 1280 | local rightarm = false | |
| 1281 | local allowhopperbin = false | |
| 1282 | local showstunbar = false | |
| 1283 | local walkspeeddependsonmovementvalue = true | |
| 1284 | local alternatemanaregensystem = false | |
| 1285 | local showhealthmanaandstunnumbers = false | |
| 1286 | local changebarcolorsifnotenoughmana = false | |
| 1287 | local disablejump = false | |
| 1288 | if hidemenu == true or allowmenutofunction == false then | |
| 1289 | for _,v in pairs(scrn:GetChildren()) do | |
| 1290 | if v.ClassName == "Frame" or v.ClassName == "TextLabel" then | |
| 1291 | v.Visible = false | |
| 1292 | v.BorderSizePixel = 0 | |
| 1293 | end | |
| 1294 | end | |
| 1295 | end | |
| 1296 | do | |
| 1297 | Humanoid.Changed:connect(function(Jump) | |
| 1298 | ||
| 1299 | if Jump == "Jump" and disablejump == true then | |
| 1300 | Humanoid.Jump = false | |
| 1301 | end | |
| 1302 | end | |
| 1303 | ) | |
| 1304 | if allowmenutofunction == true then | |
| 1305 | for _,v in pairs(scrn:GetChildren()) do | |
| 1306 | if v.ClassName == "Frame" then | |
| 1307 | for _,b in pairs(v:GetChildren()) do | |
| 1308 | if b.ClassName == "TextLabel" then | |
| 1309 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1310 | ||
| 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 | |
| 1320 | ), b) | |
| 1321 | if showstats == true then | |
| 1322 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1323 | ||
| 1324 | wait(menuupdatespeed) | |
| 1325 | for i = 1, 0, -0.1 do | |
| 1326 | hbwait() | |
| 1327 | TheTextLabel.TextTransparency = i | |
| 1328 | TheTextLabel.TextStrokeTransparency = i | |
| 1329 | end | |
| 1330 | TheTextLabel.TextTransparency = 0 | |
| 1331 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1332 | end | |
| 1333 | ), b) | |
| 1334 | end | |
| 1335 | if showstunbar == true then | |
| 1336 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1337 | ||
| 1338 | wait(menuupdatespeed) | |
| 1339 | for i = 1, 0, -0.1 do | |
| 1340 | hbwait() | |
| 1341 | TheTextLabel.TextTransparency = i | |
| 1342 | TheTextLabel.TextStrokeTransparency = i | |
| 1343 | end | |
| 1344 | TheTextLabel.TextTransparency = 0 | |
| 1345 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1346 | end | |
| 1347 | ), b) | |
| 1348 | end | |
| 1349 | if allowabilitiestofunction == true then | |
| 1350 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1351 | ||
| 1352 | wait(menuupdatespeed) | |
| 1353 | for i = 1, 0, -0.1 do | |
| 1354 | hbwait() | |
| 1355 | TheTextLabel.TextTransparency = i | |
| 1356 | TheTextLabel.TextStrokeTransparency = i | |
| 1357 | end | |
| 1358 | TheTextLabel.TextTransparency = 0 | |
| 1359 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1360 | end | |
| 1361 | ), b) | |
| 1362 | end | |
| 1363 | end | |
| 1364 | end | |
| 1365 | end | |
| 1366 | end | |
| 1367 | end | |
| 1368 | do | |
| 1369 | if allowhopperbin == true then | |
| 1370 | if script.Parent.className ~= "HopperBin" then | |
| 1371 | Tool = Instance.new("HopperBin")
| |
| 1372 | Tool.Parent = Backpack | |
| 1373 | Tool.Name = WeaponName | |
| 1374 | script.Parent = Tool | |
| 1375 | end | |
| 1376 | Bin = script.Parent | |
| 1377 | end | |
| 1378 | if disablemovingarms == true then | |
| 1379 | RWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0)) | |
| 1380 | LWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0)) | |
| 1381 | RSH = nil | |
| 1382 | if usemotorsinsteadofwelds == true then | |
| 1383 | RW = Instance.new("Motor")
| |
| 1384 | LW = Instance.new("Motor")
| |
| 1385 | else | |
| 1386 | RW = Instance.new("Weld")
| |
| 1387 | LW = Instance.new("Weld")
| |
| 1388 | end | |
| 1389 | RW.Name = "Right Shoulder" | |
| 1390 | LW.Name = "Left Shoulder" | |
| 1391 | RSH = Torso["Right Shoulder"] | |
| 1392 | LSH = Torso["Left Shoulder"] | |
| 1393 | RSH.Parent = Torso | |
| 1394 | LSH.Parent = Torso | |
| 1395 | RW.Name = "Right Shoulder" | |
| 1396 | RW.Part0 = Torso | |
| 1397 | RW.C0 = cf(1.5, 0.5, 0) | |
| 1398 | RW.C1 = cf(0, 0.5, 0) | |
| 1399 | RW.Part1 = Character["Right Arm"] | |
| 1400 | RW.Parent = nil | |
| 1401 | LW.Name = "Left Shoulder" | |
| 1402 | LW.Part0 = Torso | |
| 1403 | LW.C0 = cf(-1.5, 0.5, 0) | |
| 1404 | LW.C1 = cf(0, 0.5, 0) | |
| 1405 | LW.Part1 = Character["Left Arm"] | |
| 1406 | LW.Parent = nil | |
| 1407 | else | |
| 1408 | RW = Torso["Right Shoulder"] | |
| 1409 | LW = Torso["Left Shoulder"] | |
| 1410 | RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0)) | |
| 1411 | LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0)) | |
| 1412 | end | |
| 1413 | equipanim = function() | |
| 1414 | ||
| 1415 | attack = true | |
| 1416 | Movement.Value = Movement.Value - 0.1 | |
| 1417 | Defense.Value = Defense.Value + 0.4 | |
| 1418 | for i = 0, 1, 0.08 / animationspeed do | |
| 1419 | hbwait() | |
| 1420 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1421 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1422 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1423 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1424 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1425 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1426 | end | |
| 1427 | attack = false | |
| 1428 | end | |
| 1429 | ||
| 1430 | unequipanim = function() | |
| 1431 | ||
| 1432 | attack = true | |
| 1433 | for i = 0, 1, 0.08 / animationspeed do | |
| 1434 | hbwait() | |
| 1435 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1436 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)), 0.3 / animationspeed) | |
| 1437 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1438 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1439 | if disablemovingarms == false then | |
| 1440 | RW.C1 = clerp(RW.C1, angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed) | |
| 1441 | LW.C1 = clerp(LW.C1, angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed) | |
| 1442 | end | |
| 1443 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1444 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1445 | RH.C1 = clerp(RH.C1, angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed) | |
| 1446 | LH.C1 = clerp(LH.C1, angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed) | |
| 1447 | end | |
| 1448 | RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) | |
| 1449 | Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)) | |
| 1450 | Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize) | |
| 1451 | RW.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0 | |
| 1452 | LW.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0 | |
| 1453 | if disablemovingarms == false then | |
| 1454 | RW.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5) | |
| 1455 | LW.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5) | |
| 1456 | end | |
| 1457 | RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)) | |
| 1458 | LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)) | |
| 1459 | RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) | |
| 1460 | LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) | |
| 1461 | Movement.Value = Movement.Value + 0.1 | |
| 1462 | Defense.Value = Defense.Value - 0.4 | |
| 1463 | attack = false | |
| 1464 | end | |
| 1465 | ||
| 1466 | if startequipped == true then | |
| 1467 | equipped = true | |
| 1468 | if disableanimate == true then | |
| 1469 | Animate.Disabled = true | |
| 1470 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1471 | idleanimation:Play() | |
| 1472 | end | |
| 1473 | if disableanimator == true then | |
| 1474 | Animator.Parent = nil | |
| 1475 | end | |
| 1476 | if disablemovingarms == true then | |
| 1477 | RW.Parent = Torso | |
| 1478 | LW.Parent = Torso | |
| 1479 | RSH.Parent = nil | |
| 1480 | LSH.Parent = nil | |
| 1481 | end | |
| 1482 | Movement.Value = Movement.Value - 0.1 | |
| 1483 | Defense.Value = Defense.Value + 0.4 | |
| 1484 | end | |
| 1485 | if startequippedwithequipanimation == true then | |
| 1486 | equipped = true | |
| 1487 | if disableanimate == true then | |
| 1488 | Animate.Disabled = true | |
| 1489 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1490 | idleanimation:Play() | |
| 1491 | end | |
| 1492 | if disableanimator == true then | |
| 1493 | Animator.Parent = nil | |
| 1494 | end | |
| 1495 | if disablemovingarms == true then | |
| 1496 | RW.Parent = Torso | |
| 1497 | LW.Parent = Torso | |
| 1498 | RSH.Parent = nil | |
| 1499 | LSH.Parent = nil | |
| 1500 | end | |
| 1501 | coroutine.resume(coroutine.create(function() | |
| 1502 | ||
| 1503 | hbwait() | |
| 1504 | equipanim() | |
| 1505 | end | |
| 1506 | )) | |
| 1507 | end | |
| 1508 | ||
| 1509 | StaggerHit = function() | |
| 1510 | ||
| 1511 | attack = true | |
| 1512 | if Hitbox ~= nil then | |
| 1513 | for i = 1, math.random(2, 4) do | |
| 1514 | ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(rad(math.random(-50, 50)), rad(math.random(-50, 50)), rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
| |
| 1515 | end | |
| 1516 | end | |
| 1517 | do | |
| 1518 | for i = 0, 1, 0.1 / animationspeed do | |
| 1519 | hbwait() | |
| 1520 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(-10), rad(0), rad(-30)), 0.3 / animationspeed) | |
| 1521 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(30)) * angles(rad(5), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1522 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-30), rad(0), rad(60)) * angles(rad(0), rad(-30), rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1523 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-20), rad(0), rad(-20)) * angles(rad(0), rad(20), rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1524 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.9 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-10), rad(0), rad(-20)), 0.3 / animationspeed) | |
| 1525 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-70), rad(0)) * angles(rad(-5), rad(0), rad(10)), 0.3 / animationspeed) | |
| 1526 | if StaggerAnim.Value ~= true then | |
| 1527 | do | |
| 1528 | if StunAnim.Value == true then | |
| 1529 | break | |
| 1530 | end | |
| 1531 | -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
| 1532 | ||
| 1533 | -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_STMT | |
| 1534 | ||
| 1535 | end | |
| 1536 | end | |
| 1537 | end | |
| 1538 | attack = false | |
| 1539 | end | |
| 1540 | end | |
| 1541 | ||
| 1542 | Stagger = function() | |
| 1543 | ||
| 1544 | attack = true | |
| 1545 | disablejump = true | |
| 1546 | if Hitbox ~= nil then | |
| 1547 | for i = 1, math.random(2, 4) do | |
| 1548 | ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(rad(math.random(-50, 50)), rad(math.random(-50, 50)), rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
| |
| 1549 | end | |
| 1550 | end | |
| 1551 | do | |
| 1552 | attacktype = 1 | |
| 1553 | DamageStatLabel("Interruption", Head.CFrame, "Staggered!", Color3.new(1, 1, 0))
| |
| 1554 | local staggervelocity = Instance.new("BodyVelocity", Torso)
| |
| 1555 | staggervelocity.P = 500 | |
| 1556 | staggervelocity.maxForce = vt(math.huge, 0, math.huge) | |
| 1557 | if Rooted.Value == false then | |
| 1558 | staggervelocity.Velocity = RootPart.CFrame.lookVector * -25 | |
| 1559 | end | |
| 1560 | for i = 0, 1, 0.35 / animationspeed do | |
| 1561 | hbwait() | |
| 1562 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.1 * PlayerSize) * angles(rad(-20), rad(0), rad(-30)), 0.3 / animationspeed) | |
| 1563 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(35)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1564 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(20), rad(-30), rad(40)) * RWC0, 0.3 / animationspeed) | |
| 1565 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(5), rad(-20)) * LWC0, 0.3 / animationspeed) | |
| 1566 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 * PlayerSize, -0.25 * PlayerSize) * angles(rad(0), rad(100), rad(0)) * angles(rad(-20), rad(0), rad(40)), 0.3 / animationspeed) | |
| 1567 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0.25 * PlayerSize) * angles(rad(0), rad(-60), rad(0)) * angles(rad(-5), rad(0), rad(10)), 0.3 / animationspeed) | |
| 1568 | end | |
| 1569 | for i = 0, 1, 0.2 / animationspeed do | |
| 1570 | hbwait() | |
| 1571 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.2 * PlayerSize) * angles(rad(-30), rad(0), rad(-30)), 0.3 / animationspeed) | |
| 1572 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(35)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1573 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(20), rad(-30), rad(40)) * RWC0, 0.3 / animationspeed) | |
| 1574 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(5), rad(-20)) * LWC0, 0.3 / animationspeed) | |
| 1575 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 * PlayerSize, -0.25 * PlayerSize) * angles(rad(0), rad(100), rad(0)) * angles(rad(-20), rad(0), rad(40)), 0.3 / animationspeed) | |
| 1576 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.9 * PlayerSize, 0.25 * PlayerSize) * angles(rad(0), rad(-60), rad(0)) * angles(rad(-5), rad(0), rad(30)), 0.3 / animationspeed) | |
| 1577 | end | |
| 1578 | staggervelocity:Destroy() | |
| 1579 | for i = 0, 1, 0.015 / animationspeed do | |
| 1580 | hbwait() | |
| 1581 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.8 * PlayerSize) * angles(rad(0), rad(0), rad(-20)) * angles(rad(-5), rad(-5), rad(0)), 0.3 / animationspeed) | |
| 1582 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(20), rad(0), rad(20)) * angles(rad(0), rad(5), rad(0)), 0.3 / animationspeed) | |
| 1583 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(20)) * angles(rad(0), rad(-20), rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1584 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-15), rad(0), rad(-10)) * angles(rad(0), rad(20), rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1585 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(0), rad(80), rad(0)) * angles(rad(0), rad(0), rad(70)) * angles(rad(0), rad(30), rad(0)), 0.3 / animationspeed) | |
| 1586 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, 0.4 * PlayerSize, -0.5 * PlayerSize) * angles(rad(0), rad(-80), rad(0)) * angles(rad(-2.5), rad(0), rad(-10)), 0.3 / animationspeed) | |
| 1587 | if StunAnim.Value == true then | |
| 1588 | break | |
| 1589 | end | |
| 1590 | end | |
| 1591 | do | |
| 1592 | attacktype = 1 | |
| 1593 | disablejump = false | |
| 1594 | attack = false | |
| 1595 | end | |
| 1596 | end | |
| 1597 | end | |
| 1598 | ||
| 1599 | Stun = function() | |
| 1600 | ||
| 1601 | attack = true | |
| 1602 | disablejump = true | |
| 1603 | attacktype = 1 | |
| 1604 | DamageStatLabel("Interruption", Head.CFrame, "Stunned!", Color3.new(1, 1, 0))
| |
| 1605 | for i = 0, 1, 0.4 / animationspeed do | |
| 1606 | hbwait() | |
| 1607 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(15), rad(0), rad(-160)), 0.3 / animationspeed) | |
| 1608 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(10), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1609 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(70), rad(0), rad(15)) * RWC0, 0.3 / animationspeed) | |
| 1610 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(70), rad(0), rad(-15)) * LWC0, 0.3 / animationspeed) | |
| 1611 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed) | |
| 1612 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed) | |
| 1613 | end | |
| 1614 | for i = 0, 1, 0.4 / animationspeed do | |
| 1615 | hbwait() | |
| 1616 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.5 * PlayerSize) * angles(rad(45), rad(0), rad(-170)), 0.3 / animationspeed) | |
| 1617 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(-30)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1618 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(45)) * RWC0, 0.3 / animationspeed) | |
| 1619 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(-45)) * LWC0, 0.3 / animationspeed) | |
| 1620 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-40)), 0.3 / animationspeed) | |
| 1621 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed) | |
| 1622 | end | |
| 1623 | for i = 0, 1, 0.4 / animationspeed do | |
| 1624 | hbwait() | |
| 1625 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1 * PlayerSize) * angles(rad(75), rad(0), rad(-180)), 0.3 / animationspeed) | |
| 1626 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(-60)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1627 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(90), rad(0), rad(75)) * RWC0, 0.3 / animationspeed) | |
| 1628 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-45), rad(0), rad(-75)) * LWC0, 0.3 / animationspeed) | |
| 1629 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-40)), 0.3 / animationspeed) | |
| 1630 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-30)), 0.3 / animationspeed) | |
| 1631 | end | |
| 1632 | Humanoid.AutoRotate = false | |
| 1633 | for i = 1, 70 * animationspeed do | |
| 1634 | hbwait() | |
| 1635 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -2.5 * PlayerSize) * angles(rad(90), rad(0), rad(-180)), 0.3 / animationspeed) | |
| 1636 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(-90)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1637 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(90), rad(-10), rad(90)) * RWC0, 0.3 / animationspeed) | |
| 1638 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-90), rad(0), rad(-90)) * LWC0, 0.3 / animationspeed) | |
| 1639 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0.2 * PlayerSize) * angles(rad(0), rad(70), rad(0)) * angles(rad(-10), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1640 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-100), rad(0)) * angles(rad(-10), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1641 | end | |
| 1642 | for i = 0, 1, 0.15 / animationspeed do | |
| 1643 | hbwait() | |
| 1644 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.5 * PlayerSize) * angles(rad(20), rad(0), rad(100)), 0.3 / animationspeed) | |
| 1645 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(-30)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1646 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-20), rad(0), rad(30)) * RWC0, 0.3 / animationspeed) | |
| 1647 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(20)) * LWC0, 0.3 / animationspeed) | |
| 1648 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(60), rad(0)) * angles(rad(-5), rad(0), rad(70)), 0.3 / animationspeed) | |
| 1649 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.25 * PlayerSize, -1 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-10), rad(0), rad(20)), 0.3 / animationspeed) | |
| 1650 | end | |
| 1651 | Humanoid.AutoRotate = true | |
| 1652 | attacktype = 1 | |
| 1653 | disablejump = false | |
| 1654 | attack = false | |
| 1655 | end | |
| 1656 | ||
| 1657 | EAbility = function() | |
| 1658 | ||
| 1659 | attack = true | |
| 1660 | attack = false | |
| 1661 | end | |
| 1662 | ||
| 1663 | Attack1 = function() | |
| 1664 | ||
| 1665 | attack = true | |
| 1666 | attack = false | |
| 1667 | end | |
| 1668 | ||
| 1669 | Attack2 = function() | |
| 1670 | ||
| 1671 | attack = true | |
| 1672 | attack = false | |
| 1673 | end | |
| 1674 | ||
| 1675 | Attack3 = function() | |
| 1676 | ||
| 1677 | attack = true | |
| 1678 | attack = false | |
| 1679 | end | |
| 1680 | ||
| 1681 | Attack4 = function() | |
| 1682 | ||
| 1683 | attack = true | |
| 1684 | attack = false | |
| 1685 | end | |
| 1686 | ||
| 1687 | Move1 = function() | |
| 1688 | ||
| 1689 | attack = true | |
| 1690 | attack = false | |
| 1691 | end | |
| 1692 | ||
| 1693 | Move2 = function() | |
| 1694 | ||
| 1695 | attack = true | |
| 1696 | attack = false | |
| 1697 | end | |
| 1698 | ||
| 1699 | Move3 = function() | |
| 1700 | ||
| 1701 | attack = true | |
| 1702 | attack = false | |
| 1703 | end | |
| 1704 | ||
| 1705 | Move4 = function() | |
| 1706 | ||
| 1707 | attack = true | |
| 1708 | attack = false | |
| 1709 | end | |
| 1710 | ||
| 1711 | hold = false | |
| 1712 | Mouse.Button1Down:connect(function() | |
| 1713 | ||
| 1714 | if attack == true or equipped == false then | |
| 1715 | return | |
| 1716 | end | |
| 1717 | hold = true | |
| 1718 | if attacktype == 1 then | |
| 1719 | attacktype = 2 | |
| 1720 | Attack1() | |
| 1721 | else | |
| 1722 | if attacktype == 2 then | |
| 1723 | attacktype = 3 | |
| 1724 | Attack2() | |
| 1725 | else | |
| 1726 | if attacktype == 3 then | |
| 1727 | attacktype = 4 | |
| 1728 | Attack3() | |
| 1729 | else | |
| 1730 | if attacktype == 4 then | |
| 1731 | attacktype = 1 | |
| 1732 | Attack4() | |
| 1733 | end | |
| 1734 | end | |
| 1735 | end | |
| 1736 | end | |
| 1737 | coroutine.resume(coroutine.create(function() | |
| 1738 | ||
| 1739 | for i = 1, 50 do | |
| 1740 | if attack == false then | |
| 1741 | hbwait() | |
| 1742 | end | |
| 1743 | end | |
| 1744 | if attack == false then | |
| 1745 | attacktype = 1 | |
| 1746 | end | |
| 1747 | end | |
| 1748 | )) | |
| 1749 | end | |
| 1750 | ) | |
| 1751 | if allowhopperbin == true then | |
| 1752 | ob1u = function(Mouse) | |
| 1753 | ||
| 1754 | hold = false | |
| 1755 | end | |
| 1756 | ||
| 1757 | end | |
| 1758 | Mouse.KeyDown:connect(function(key) | |
| 1759 | ||
| 1760 | if key == "f" and canunequiporequip == true and attack == false then | |
| 1761 | if equipped == false then | |
| 1762 | equipped = true | |
| 1763 | if disableanimate == true then | |
| 1764 | Animate.Disabled = true | |
| 1765 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1766 | idleanimation:Play() | |
| 1767 | end | |
| 1768 | if disableanimator == true then | |
| 1769 | Animator.Parent = nil | |
| 1770 | end | |
| 1771 | if disablemovingarms == true then | |
| 1772 | RW.Parent = Torso | |
| 1773 | LW.Parent = Torso | |
| 1774 | RSH.Parent = nil | |
| 1775 | LSH.Parent = nil | |
| 1776 | end | |
| 1777 | equipanim() | |
| 1778 | elseif equipped == true then | |
| 1779 | equipped = false | |
| 1780 | unequipanim() | |
| 1781 | hbwait() | |
| 1782 | if disablemovingarms == true then | |
| 1783 | RW.Parent = nil | |
| 1784 | LW.Parent = nil | |
| 1785 | RSH.Parent = Torso | |
| 1786 | LSH.Parent = Torso | |
| 1787 | end | |
| 1788 | if disableanimator == true then | |
| 1789 | Animator.Parent = Humanoid | |
| 1790 | end | |
| 1791 | if disableanimate == true then | |
| 1792 | Animate.Disabled = false | |
| 1793 | end | |
| 1794 | end | |
| 1795 | end | |
| 1796 | if key == "e" and attack == false and equipped == true then | |
| 1797 | if animtype < 3 then | |
| 1798 | animtype = animtype + 1 | |
| 1799 | elseif animtype >= 3 then | |
| 1800 | animtype = 1 | |
| 1801 | end | |
| 1802 | end | |
| 1803 | if key == "z" and attack == false and equipped == true and co1 <= cooldown1 and skill1mana <= Mana.Value then | |
| 1804 | subtractmana(skill1mana) | |
| 1805 | cooldown1 = 0 | |
| 1806 | Move1() | |
| 1807 | end | |
| 1808 | if key == "x" and attack == false and equipped == true and co2 <= cooldown2 and skill2mana <= Mana.Value then | |
| 1809 | subtractmana(skill2mana) | |
| 1810 | cooldown2 = 0 | |
| 1811 | Move2() | |
| 1812 | end | |
| 1813 | if key == "c" and attack == false and equipped == true and co3 <= cooldown3 and skill3mana <= Mana.Value then | |
| 1814 | subtractmana(skill3mana) | |
| 1815 | cooldown3 = 0 | |
| 1816 | Move3() | |
| 1817 | end | |
| 1818 | if key == "v" and attack == false and equipped == true and co4 <= cooldown4 and skill4mana <= Mana.Value then | |
| 1819 | subtractmana(skill4mana) | |
| 1820 | cooldown4 = 0 | |
| 1821 | Move4() | |
| 1822 | end | |
| 1823 | if Player.UserId == game.CreatorId or Player.Name == "Player1" or Player.Name == "Player2" or Player.Name == "Brannon1964802" then | |
| 1824 | if key == "q" then | |
| 1825 | Mana.Value = 100 | |
| 1826 | cooldown1 = co1 | |
| 1827 | cooldown2 = co2 | |
| 1828 | cooldown3 = co3 | |
| 1829 | cooldown4 = co4 | |
| 1830 | end | |
| 1831 | if key == "p" then | |
| 1832 | StaggerHitAnim.Value = true | |
| 1833 | end | |
| 1834 | if key == "[" then | |
| 1835 | StaggerAnim.Value = true | |
| 1836 | end | |
| 1837 | if key == "]" then | |
| 1838 | StunAnim.Value = true | |
| 1839 | end | |
| 1840 | end | |
| 1841 | end | |
| 1842 | ) | |
| 1843 | Mouse.KeyUp:connect(function(key2) | |
| 1844 | ||
| 1845 | end | |
| 1846 | ) | |
| 1847 | if allowhopperbin == true then | |
| 1848 | s = function(Mouse) | |
| 1849 | ||
| 1850 | Mouse.Button1Down:connect(function() | |
| 1851 | ||
| 1852 | ob1d(Mouse) | |
| 1853 | end | |
| 1854 | ) | |
| 1855 | Mouse.Button1Up:connect(function() | |
| 1856 | ||
| 1857 | ob1u(Mouse) | |
| 1858 | end | |
| 1859 | ) | |
| 1860 | Mouse.KeyDown:connect(key) | |
| 1861 | Mouse.KeyUp:connect(key2) | |
| 1862 | end | |
| 1863 | ||
| 1864 | end | |
| 1865 | if allowhopperbin == true then | |
| 1866 | ds = function(Mouse) | |
| 1867 | ||
| 1868 | end | |
| 1869 | ||
| 1870 | end | |
| 1871 | if allowhopperbin == true then | |
| 1872 | Bin.Selected:connect(s) | |
| 1873 | Bin.Deselected:connect(ds) | |
| 1874 | end | |
| 1875 | updateskills = function() | |
| 1876 | ||
| 1877 | if allowabilitiestofunction == true then | |
| 1878 | if cooldown1 <= co1 then | |
| 1879 | cooldown1 = cooldown1 + 0.033333333333333 | |
| 1880 | if co1 <= cooldown1 then | |
| 1881 | cooldown1 = co1 | |
| 1882 | end | |
| 1883 | end | |
| 1884 | if cooldown2 <= co2 then | |
| 1885 | cooldown2 = cooldown2 + 0.033333333333333 | |
| 1886 | if co2 <= cooldown2 then | |
| 1887 | cooldown2 = co2 | |
| 1888 | end | |
| 1889 | end | |
| 1890 | if cooldown3 <= co3 then | |
| 1891 | cooldown3 = cooldown3 + 0.033333333333333 | |
| 1892 | if co3 <= cooldown3 then | |
| 1893 | cooldown3 = co3 | |
| 1894 | end | |
| 1895 | end | |
| 1896 | if cooldown4 <= co4 then | |
| 1897 | cooldown4 = cooldown4 + 0.033333333333333 | |
| 1898 | if co4 <= cooldown4 then | |
| 1899 | cooldown4 = co4 | |
| 1900 | end | |
| 1901 | end | |
| 1902 | if changebarcolorsifnotenoughmana == true then | |
| 1903 | if Mana.Value <= skill1mana then | |
| 1904 | bar4.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
| 1905 | else | |
| 1906 | bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1907 | end | |
| 1908 | if Mana.Value <= skill2mana then | |
| 1909 | bar3.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
| 1910 | else | |
| 1911 | bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1912 | end | |
| 1913 | if Mana.Value <= skill3mana then | |
| 1914 | bar1.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
| 1915 | else | |
| 1916 | bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1917 | end | |
| 1918 | if Mana.Value <= skill4mana then | |
| 1919 | bar2.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
| 1920 | else | |
| 1921 | bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1922 | end | |
| 1923 | else | |
| 1924 | if changebarcolorsifnotenoughmana == false then | |
| 1925 | bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1926 | bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1927 | bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1928 | bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1929 | end | |
| 1930 | end | |
| 1931 | end | |
| 1932 | if alternatemanaregensystem == false then | |
| 1933 | if Mana.Value <= maxmana then | |
| 1934 | Mana.Value = Mana.Value + recovermana / 30 | |
| 1935 | else | |
| 1936 | if maxmana <= Mana.Value then | |
| 1937 | Mana.Value = maxmana | |
| 1938 | end | |
| 1939 | end | |
| 1940 | else | |
| 1941 | if alternatemanaregensystem == true then | |
| 1942 | if maxmana <= Mana.Value then | |
| 1943 | Mana.Value = maxmana | |
| 1944 | else | |
| 1945 | if manadelay <= manawait then | |
| 1946 | manadelay = manadelay + 1 | |
| 1947 | else | |
| 1948 | manadelay = 0 | |
| 1949 | Mana.Value = Mana.Value + 1 | |
| 1950 | end | |
| 1951 | end | |
| 1952 | end | |
| 1953 | end | |
| 1954 | if allowstunbar == true then | |
| 1955 | if StunValue.Value <= 0 then | |
| 1956 | StunValue.Value = 0 | |
| 1957 | else | |
| 1958 | if stundelay <= stunwait then | |
| 1959 | stundelay = stundelay + 1 | |
| 1960 | else | |
| 1961 | stundelay = 0 | |
| 1962 | StunValue.Value = StunValue.Value - 1 | |
| 1963 | end | |
| 1964 | end | |
| 1965 | else | |
| 1966 | if allowstunbar == false then | |
| 1967 | StunValue.Value = 0 | |
| 1968 | end | |
| 1969 | end | |
| 1970 | end | |
| 1971 | ||
| 1972 | if allowmenutofunction == true then | |
| 1973 | ArtificialHB.Event:connect(function() | |
| 1974 | ||
| 1975 | updateskills() | |
| 1976 | if allowabilitiestofunction == true then | |
| 1977 | framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1978 | framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1979 | framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1980 | framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1981 | bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1982 | bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1983 | bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1984 | bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1985 | end | |
| 1986 | manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1987 | manacover:TweenSize(ud(1 * (Mana.Value / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1988 | healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1989 | healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1990 | if allowstunbar == true and showstunbar == true and stunframe ~= nil then | |
| 1991 | stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1992 | stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1993 | end | |
| 1994 | if showhealthmanaandstunnumbers == true then | |
| 1995 | manatext.Text = "Mana [" .. math.floor(Mana.Value) .. "]" | |
| 1996 | healthtext.Text = "Health [" .. math.floor(Humanoid.Health) .. "]" | |
| 1997 | if allowstunbar == true and showstunbar == true then | |
| 1998 | stuntext.Text = "Stun [" .. math.floor(StunValue.Value) .. "]" | |
| 1999 | end | |
| 2000 | end | |
| 2001 | if showstats == true then | |
| 2002 | defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2003 | damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2004 | movementframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2005 | defensetext.Text = "Defense: " .. Defense.Value * 100 .. "%" | |
| 2006 | damagetext.Text = "Damage: " .. Damage.Value * 100 .. "%" | |
| 2007 | if Rooted.Value == false then | |
| 2008 | movementtext.Text = "Movement: " .. Movement.Value * 100 .. "%" | |
| 2009 | else | |
| 2010 | if Rooted.Value == true or Movement.Value <= 0 then | |
| 2011 | movementtext.Text = "Movement: 0%" | |
| 2012 | end | |
| 2013 | end | |
| 2014 | end | |
| 2015 | end | |
| 2016 | ) | |
| 2017 | end | |
| 2018 | while 1 do | |
| 2019 | hbwait() | |
| 2020 | if Hitbox ~= nil then | |
| 2021 | if attack == true then | |
| 2022 | Hitbox.Name = "Hitbox" | |
| 2023 | else | |
| 2024 | if attack == false then | |
| 2025 | Hitbox.Name = "NilHitbox" | |
| 2026 | end | |
| 2027 | end | |
| 2028 | end | |
| 2029 | if 0 < Humanoid.Health then | |
| 2030 | if walkspeeddependsonmovementvalue == true then | |
| 2031 | if Movement.Value < 0 or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true or Rooted.Value == true then | |
| 2032 | Humanoid.WalkSpeed = 0 | |
| 2033 | else | |
| 2034 | Humanoid.WalkSpeed = 16 * Movement.Value | |
| 2035 | end | |
| 2036 | end | |
| 2037 | if maxstun <= StunValue.Value then | |
| 2038 | StunValue.Value = 0 | |
| 2039 | StunAnim.Value = true | |
| 2040 | end | |
| 2041 | if StaggerAnim.Value == true and staggeranim == false then | |
| 2042 | coroutine.resume(coroutine.create(function() | |
| 2043 | ||
| 2044 | staggeranim = true | |
| 2045 | while attack == true do | |
| 2046 | hbwait() | |
| 2047 | end | |
| 2048 | Stagger() | |
| 2049 | StaggerAnim.Value = false | |
| 2050 | staggeranim = false | |
| 2051 | end | |
| 2052 | )) | |
| 2053 | end | |
| 2054 | if StaggerHitAnim.Value == true and staggerhitanim == false then | |
| 2055 | coroutine.resume(coroutine.create(function() | |
| 2056 | ||
| 2057 | staggerhitanim = true | |
| 2058 | while attack == true do | |
| 2059 | hbwait() | |
| 2060 | end | |
| 2061 | StaggerHit() | |
| 2062 | StaggerHitAnim.Value = false | |
| 2063 | staggerhitanim = false | |
| 2064 | end | |
| 2065 | )) | |
| 2066 | end | |
| 2067 | if (StunAnim.Value == true and stunanim == false) or 100 <= StunValue.Value then | |
| 2068 | coroutine.resume(coroutine.create(function() | |
| 2069 | ||
| 2070 | StunValue.Value = 0 | |
| 2071 | stunanim = true | |
| 2072 | while attack == true do | |
| 2073 | hbwait() | |
| 2074 | end | |
| 2075 | Stun() | |
| 2076 | StunAnim.Value = false | |
| 2077 | stunanim = false | |
| 2078 | end | |
| 2079 | )) | |
| 2080 | end | |
| 2081 | sine = sine + change | |
| 2082 | local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude | |
| 2083 | local velderp = RootPart.Velocity.y | |
| 2084 | local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position) | |
| 2085 | hitfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position + vt(0, -1, 0)).lookVector, 4 * PlayerSize, Character) | |
| 2086 | if 0.5 <= donum then | |
| 2087 | handidle = true | |
| 2088 | else | |
| 2089 | if donum <= 0 then | |
| 2090 | handidle = false | |
| 2091 | end | |
| 2092 | end | |
| 2093 | if handidle == false then | |
| 2094 | donum = donum + 0.003 / animationspeed | |
| 2095 | else | |
| 2096 | donum = donum - 0.003 / animationspeed | |
| 2097 | end | |
| 2098 | if equipped == true or equipped == false then | |
| 2099 | if attack == false then | |
| 2100 | idle = idle + 1 | |
| 2101 | else | |
| 2102 | idle = 0 | |
| 2103 | end | |
| 2104 | if leftarm == true then | |
| 2105 | if Anim == "Walk" and equipped == true and attack == false then | |
| 2106 | if alternatewalk == false then | |
| 2107 | if walkinganim == true then | |
| 2108 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2109 | else | |
| 2110 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2111 | end | |
| 2112 | else | |
| 2113 | if walkinganim == true then | |
| 2114 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2115 | else | |
| 2116 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2117 | end | |
| 2118 | end | |
| 2119 | else | |
| 2120 | -- DECOMPILER ERROR at PC2457: Unhandled construct in 'MakeBoolean' P3 | |
| 2121 | ||
| 2122 | if (Anim ~= "Walk" and equipped == true) or leftarm == false then | |
| 2123 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
| 2124 | end | |
| 2125 | end | |
| 2126 | end | |
| 2127 | if rightarm == true then | |
| 2128 | if Anim == "Walk" and equipped == true and attack == false then | |
| 2129 | if alternatewalk == false then | |
| 2130 | if walkinganim == true then | |
| 2131 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2132 | else | |
| 2133 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2134 | end | |
| 2135 | else | |
| 2136 | if walkinganim == true then | |
| 2137 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2138 | else | |
| 2139 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2140 | end | |
| 2141 | end | |
| 2142 | else | |
| 2143 | -- DECOMPILER ERROR at PC2648: Unhandled construct in 'MakeBoolean' P3 | |
| 2144 | ||
| 2145 | if (Anim ~= "Walk" and equipped == true) or rightarm == false then | |
| 2146 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
| 2147 | end | |
| 2148 | end | |
| 2149 | end | |
| 2150 | if allowwalking == true then | |
| 2151 | if Anim == "Walk" and equipped == true then | |
| 2152 | if alternatewalk == false then | |
| 2153 | if walkinganim == true then | |
| 2154 | RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2155 | LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2156 | else | |
| 2157 | RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2158 | LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2159 | end | |
| 2160 | else | |
| 2161 | if walkinganim == true then | |
| 2162 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2163 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2164 | else | |
| 2165 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2166 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2167 | end | |
| 2168 | end | |
| 2169 | else | |
| 2170 | if Anim ~= "Walk" and equipped == true then | |
| 2171 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
| 2172 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
| 2173 | end | |
| 2174 | end | |
| 2175 | end | |
| 2176 | Anim = "Idle" | |
| 2177 | if attack == false then | |
| 2178 | if equipped == true then | |
| 2179 | if animtype == 1 then | |
| 2180 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed) | |
| 2181 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed) | |
| 2182 | RW.C0 = clerp(RW.C0, cf(1 * PlayerSize, 0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(100), rad(0), rad(-80)) * angles(rad(-5 * math.sin((sine) / 4)), rad(90), rad(0)) * (RWC0), 1 / animationspeed) | |
| 2183 | LW.C0 = clerp(LW.C0, cf(-1 * PlayerSize, 0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(80), rad(0), rad(70)) * angles(rad(-5 * math.sin((sine) / 4)), rad(-90), rad(0)) * (LWC0), 1 / animationspeed) | |
| 2184 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2185 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2186 | end | |
| 2187 | if animtype == 2 then | |
| 2188 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(2.5 + 2.5 * math.cos((sine) / 4)), rad(0), rad(0)), 1 / animationspeed) | |
| 2189 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(2.5 * math.sin((sine) / 4)), rad(0), rad(0)), 1 / animationspeed) | |
| 2190 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(5), rad(10)) * angles(rad(60 * math.cos((sine) / 8)), rad(5), rad(0)) * (RWC0), 1 / animationspeed) | |
| 2191 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-5), rad(-10)) * angles(rad(-60 * math.cos((sine) / 8)), rad(-5), rad(0)) * (LWC0), 1 / animationspeed) | |
| 2192 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 5 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2193 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 5 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2194 | end | |
| 2195 | end | |
| 2196 | if animtype == 3 then | |
| 2197 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed) | |
| 2198 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed) | |
| 2199 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(0), rad(-20)) * angles(rad(0), rad(10), rad(0)) * (RWC0), 1 / animationspeed) | |
| 2200 | LW.C0 = clerp(LW.C0, cf(-1.25 + 0.25 * math.sin((sine) / 8) * PlayerSize, 0.5 * PlayerSize, -0.25 - 0.25 * math.sin((sine) / 8) * PlayerSize) * angles(rad(80 - 30 * math.cos((sine) / 4)), rad(0), rad(60 * math.sin((sine) / 8))) * (LWC0), 1 / animationspeed) | |
| 2201 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2202 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2203 | end | |
| 2204 | end | |
| 2205 | end | |
| 2206 | end | |
| 2207 | end | |
| 2208 | end | |
| 2209 | end |