Advertisement
00fjg

Untitled

Aug 11th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.71 KB | None | 0 0
  1.  
  2.  
  3. --Spikes Gifted by Rosemarijohn2, Local Script!
  4.  
  5. local p69 = game.Players.LocalPlayer
  6. local char69 = p69.Character
  7. local torso69 = char69.Torso
  8.  
  9. ----------------------------------------------
  10. z = Instance.new("Sound", torso69)
  11. z.SoundId = "rbxassetid://695215875" -- Put Music ID Here.
  12. z.Looped = true
  13. z.Volume = 1
  14. wait(0.1)
  15. z:Play()
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26. -----------------------------------------------------------
  27.  
  28.  
  29. p = game.Players.LocalPlayer
  30. char049 = p.Character
  31.  
  32.  
  33. char049.Shirt:Remove()
  34. for i,v in pairs(char049:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  35. wait()shirt = Instance.new("Shirt", char049)
  36. shirt.Name = "Shirt"
  37. pants = Instance.new("Pants", char049)
  38. pants.Name = "Pants"
  39.  
  40. char049.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=209626476"
  41. char049.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=209626476"
  42.  
  43. script.Parent = nil
  44. local color = "Really black"
  45. wt = 0.1 s = script it = Instance.new v3 = Vector3.new c3 = Color3.new ud = UDim2.new cf = CFrame.new ca = CFrame.Angles pi = math.pi rd = math.rad
  46. bc = BrickColor.new ab = math.abs de = math.deg ts = tostring tn = tonumber ti = table.insert tr = table.remove
  47. mf = math.floor cr = coroutine.resume cc = coroutine.create sf = string.find sb = string.sub rn = math.random
  48. asset = "http://www.roblox.com/asset/?id="
  49. sr = string.reverse sl = string.lower su = string.upper
  50. Serv = {} Serv.p = game:GetService(sr("sreyalP")) Serv.l = game:GetService(sr("gnithgiL"))
  51. Serv.is = game:GetService(sr("ecivreStresnI")) if game:findFirstChild(sr("revreSkrowteN")) then Serv.ns = game:GetService(sr("revreSkrowteN")) else NetworkServer = nil end
  52. Serv.sg = game:GetService(sr("iuGretratS")) Serv.sp = game:GetService(sr("kcaPretratS")) Serv.d = game:GetService(sr("sirbeD"))
  53. Decs = {}
  54. Decs.Shine = "48965808" Decs.Crack = "49173398" Decs.Cloud = "1095708" Decs.Spike = "1033714" Decs.Rock = "1290033" Decs.Crown = "20329976" Decs.Crown2 = "1323306"
  55. function ft(tablez,item) if not tablez or not item then return nil end for i=1,#tablez do if tablez == item then return i end end return nil end
  56. 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
  57. 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"
  58. 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"
  59. fp.TopSurface = 0 fp.Velocity = Vector3.new(0,10,0) fp:BreakJoints() return fp end
  60. function clearit(tab) for xx=1,#tab do tab[xx]:Remove() end end
  61. function weld(pa,p0,p1,x,y,z,a,b,c) local fw = it("Weld",pa) fw.Part0 = p0 fw.Part1 = p1 fw.C0 = cf(x,y,z) *ca(a,b,c) return fw end
  62. function spm(ty,pa,ss) local sp = it("SpecialMesh",pa) sp.MeshType = ty sp.Scale = Vector3.new(ss,ss,ss) end function mbm(pa,sx,sy,sz) local bm = Instance.new("BlockMesh",pa) bm.Scale = Vector3.new(sx,sy,sz) end
  63. function fd(pa,ob) if pa:findFirstChild(ob) then return pa[ob] else return nil end end
  64. function ccn(pa,cl) for i,v in pairs(pa:children()) do if sf(v.className:lower(),cl:lower()) then v:Remove() end end end
  65. function stick(hit2,hit) local weld = Instance.new("Weld") weld.Part0 = hit2 weld.Part1 = hit local HitPos = hit2.Position local CJ = CFrame.new(HitPos)
  66. local C0 = hit2.CFrame:inverse() *CJ local C1 = hit.CFrame:inverse() * CJ weld.C0 = C0 weld.C1 = C1 weld.Parent = hit2 end
  67. function stick2(hit2,hit,tostick) local weld = Instance.new("Weld") weld.Part0 = tostick weld.Part1 = hit2 local HitPos = hit.Position local CJ = CFrame.new(HitPos) local C0 = hit2.CFrame:inverse() *CJ local C1 = hit.CFrame:inverse() * CJ weld.C0 = C1 weld.C1 = C0 weld.Parent = hit2 end
  68. function invis(o) for i,v in pairs(o:children()) do if v:IsA("BasePart") then v.Transparency = 1 end invis(v) end end
  69. function newhats(p,o,o2) for i,v in pairs(p:children()) do if v:IsA("Hat") then 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
  70. function ray(Pos, Dir) return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999), c) end
  71. function hasclass(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
  72. function fade(prt,incr) cr(cc(function() for i=prt.Transparency,1,incr do prt.Transparency = i wait() end prt:Remove() end)) end
  73. function rtab(tabz,obj) for i=1,#tabz do if tabz == obj then tr(tabz,i) break end end end
  74. function RandomPlayer(spiz) local torz = spis local torses = {} for i,v in pairs(Serv.p:children()) do if v ~= Serv.p.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
  75. function Trail(ob,times,waitz,col,thickz,ofz) 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,col) tr.Anchored = true tr.CFrame = cf(oldpos,obp) tr.CFrame = tr.CFrame + tr.CFrame.lookVector* (mag/2)
  76. local trm = it("CylinderMesh",tr) trm.Scale = v3(5*thickz,mag*5,5*thickz) cr(cc(function() for i=5*thickz,0,-5*thickz/10 do trm.Scale = v3(i,mag*5,i) wait() end tr:Remove() end)) tr.CFrame = tr.CFrame *ca(rd(90),0,0) oldpos = obp wait(waitz) end end
  77. sTrail = {}
  78. function Trail2(ob,waitz,col,thickz,ofz) cr(cc(function() ti(sTrail,ob)
  79. local oldpos = (ob.CFrame *ofz).p
  80. repeat local obp = (ob.CFrame *ofz).p
  81. local mag = (oldpos - obp).magnitude
  82. local tr = pa(ob,"trail","Block",0,0,0,false,false,0.5,0,col) tr.Anchored = true
  83. tr.CFrame = cf(oldpos,obp)
  84. tr.CFrame = tr.CFrame + tr.CFrame.lookVector* (mag/2)
  85. local trm = it("CylinderMesh",tr) trm.Scale = v3(5*thickz,mag*5,5*thickz)
  86. cr(cc(function() for i=5*thickz,0,-5*thickz/10 do trm.Scale = v3(i,mag*5,i) wait() end tr:Remove() end))
  87. tr.CFrame = tr.CFrame *ca(rd(90),0,0) oldpos = obp
  88. wait(waitz) until ft(sTrail,ob) == nil end))
  89. end
  90. nocf = cf(0,0,0) noca = ca(0,0,0)
  91. repeat wait() until Serv.p.LocalPlayer.Character and Serv.p.LocalPlayer.Character:findFirstChild("Torso")
  92. pl = Serv.p.LocalPlayer
  93. bp = pl.Backpack
  94. pg = pl.PlayerGui
  95. c = pl.Character
  96. he = c.Head
  97. to = c.Torso ccn(to,"BodyPosition") ccn(to,"BodyGyro")
  98. hu = c.Humanoid hu.PlatformStand = false
  99. mou = nil
  100. Button = false
  101. Key = false
  102. Anim = {}
  103. Anim.ClickHold = 0
  104. Anim.c = true -- weapon change or act debounce
  105. Anim.a = "None" -- current weapon
  106. Anim.b = "None" -- weapon act
  107. bets = {"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"," "}
  108. act = {key = {}}
  109. for i=1,#bets do table.insert(act.key,bets) end
  110. Sounds = {
  111. Boom = "16976189";
  112. SniperFire = "1369158";
  113. ShotgunFire2 = "1868836";
  114. MinigunFire = "2692806";
  115. MinigunCharge = "2692844";
  116. MinigunDischarge = "1753007";
  117. Flashbang = "16976189";
  118. Beep = "15666462";
  119. Smash = "2801263";
  120. Punch = "31173820";
  121. Slash = "rbxasset://sounds/swordslash.wav";
  122. Falcon = "1387390";
  123. Cast = "2101137";
  124. Spin = "1369159";
  125. Abscond = "2767090";
  126. ElectricalCharge = "2800815";
  127. FireExplosion = "3264793";
  128. SaberLightUp = "10209303";
  129. SaberSlash = "10209280";
  130. SaberHit = "44463749";
  131. EnergyBlast = "10209268";
  132. Lunge = "rbxasset://sounds/swordlunge.wav";
  133. Unsheath = "rbxasset://sounds/unsheath.wav";
  134. }
  135. local SoundTest = asset .. Sounds.Spin
  136. local hd = he:Clone()
  137. Anim.BodyAnims = 0
  138. Anim.Welding = 0 function c1(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz) local xx2,yy2,zz2 = 0,0,0 local x2,y2,z2 = 0,0,0 if c0orc1 == 0 then
  139. xx2,yy2,zz2 = wexx.C0:toEulerAnglesXYZ() x2,y2,z2 = wexx.C0.x,wexx.C0.y,wexx.C0.z elseif c0orc1 == 1 then xx2,yy2,zz2 = wexx.C1:toEulerAnglesXYZ() x2,y2,z2 = wexx.C1.x,wexx.C1.y,wexx.C1.z else xx2,yy2,zz2 = wexx.C1:toEulerAnglesXYZ()
  140. x2,y2,z2 = wexx.C0.x,wexx.C0.y,wexx.C0.z end Anim.Welding = Anim.Welding + 1 local twa = 1 for i=0,twa,smmx do if c0orc1 == 0 then wexx.C0 = cf(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
  141. wexx.C1 = cf(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 = cf(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i))
  142. wexx.C1 = ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))end wait() end local i = 1 if c0orc1 == 0 then wexx.C0 = cf(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 = cf(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))
  143. else wexx.C0 = cf(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 Anim.Welding = Anim.Welding - 1 end
  144. to["Left Hip"].Part0 = to to["Right Hip"].Part0 = to to["Left Shoulder"].Part0 = to to["Right Shoulder"].Part0 = to
  145. if c:findFirstChild("Suit") then game:service'Debris':AddItem(c["Suit"],0.035) end
  146. m = it("Model",c) m.Name = "Suit"
  147. Misc = {}
  148. Misc["x"] = it("Model",m)
  149. invis(c)
  150. p = {}
  151. t = pa(m,"Torso","Block",0,0,0,false,false,0,0,ts(color)) tw = weld(t,to,t,0,0,0,0,0,0)
  152. la = pa(m,"Left Arm","Block",0,0,0,false,false,0,0,ts(color)) law = weld(la,t,la,-1.5,1,0,0,0,0)
  153. ra = pa(m,"Right Arm","Block",0,0,0,false,false,0,0,ts(color)) raw = weld(ra,t,ra,1.5,1,0,0,0,0)
  154. ll = pa(m,"Left Leg","Block",0,0,0,false,false,0,0,ts(color)) llw = weld(ll,t,ll,-0.5,-1,0,0,0,0)
  155. rl = pa(m,"Right Leg","Block",0,0,0,false,false,0,0,ts(color)) rlw = weld(rl,t,rl,0.5,-1,0,0,0,0)
  156. hd.Parent = m hd.Transparency = 0 hd.face.Face = "Front" hdw = weld(hd,t,hd,0,1.5,0,0,0,0) he.face.Face = "Bottom"
  157. local nbb = it("BlockMesh") nbb.Offset = v3(0,-1,0) nbb.Scale = v3(5,10,5)
  158. nbb:Clone().Parent = la nbb:Clone().Parent = ra nbb:Clone().Parent = ll nbb:Clone().Parent = rl
  159. nbb:Clone().Parent = t t.Mesh.Offset = v3(0,0,0) t.Mesh.Scale = Vector3.new(10,10,5)
  160. to["Left Hip"].Part0 = t to["Right Hip"].Part0 = t to["Left Shoulder"].Part0 = t to["Right Shoulder"].Part0 = t
  161. function Armz(ison) if ison then
  162. c["Left Arm"].Transparency = 0 c["Right Arm"].Transparency = 0 la.Transparency = 1 ra.Transparency = 1
  163. law.Part0 = c["Left Arm"] law.C0 = cf(0,1,0) raw.Part0 = c["Right Arm"] raw.C0 = cf(0,1,0)
  164. else
  165. c["Left Arm"].Transparency = 1 c["Right Arm"].Transparency = 1 la.Transparency = 0 ra.Transparency = 0
  166. law.Part0 = t law.C0 = cf(-1.5,1,0) raw.Part0 = t raw.C0 = cf(1.5,1,0)
  167. end end
  168. function Legz(ison) if ison then
  169. c["Left Leg"].Transparency = 0 c["Right Leg"].Transparency = 0 ll.Transparency = 1 rl.Transparency = 1
  170. llw.Part0 = c["Left Leg"] llw.C0 = cf(0,1,0) rlw.Part0 = c["Right Leg"] rlw.C0 = cf(0,1,0)
  171. else
  172. c["Left Leg"].Transparency = 1 c["Right Leg"].Transparency = 1 ll.Transparency = 0 rl.Transparency = 0
  173. llw.Part0 = t llw.C0 = cf(-0.5,-1,0) rlw.Part0 = t rlw.C0 = cf(0.5,-1,0)
  174. end end function Headz(ison) if ison then he.Transparency = 0 else he.Transparency = 1 end end
  175. Legz(true) Armz(true) newhats(c,hd,he)
  176. function Sound(sid,pit,vol) local ss = it("Sound") ss.Name = "Sound" ss.Parent = hd ss.SoundId = sid ss.Pitch = pit ss.Volume = vol/3 ss.PlayOnRemove = true wait() ss:Remove() end
  177. Healthz = 250 hu.MaxHealth = Healthz hu.Health = Healthz
  178. mp = 1250000 maxmp = 1250000 ns = 18
  179. function addmp(mpz) mp = mp + mpz if mp > maxmp then mp = maxmp end end
  180. function DmgHumanoidsNear(pos,dmg,rndmg,mag,forc)
  181. local function kidive(ob)
  182. for i,v in pairs(ob:children()) do
  183. if not v.Parent:IsA("Hat") and v:IsA("BasePart") and v.Parent.Name ~= "Suit" and v.Parent.Parent:findFirstChild("Humanoid") == nil and v.Parent.Parent.Name ~= "Suit" and v.Parent:findFirstChild("Humanoid") == nil and (v.Position - pos).magnitude < mag*1.3 and v.Anchored == false and v:GetMass() < 150 then
  184. v:BreakJoints() v.Velocity = cf(pos,v.Position).lookVector*forc
  185. end
  186. if v:IsA("Humanoid") and v ~= hu and v.Parent:findFirstChild("Torso") then
  187. if (pos - v.Parent.Torso.Position).magnitude < mag then local tdmg = dmg*rn(1,rndmg)
  188. addmp(tdmg) v:TakeDamage(tdmg)
  189. end
  190. end
  191. if not v:IsA("Camera") and not v:IsA("Script") then kidive(v) end end end
  192. kidive(workspace)
  193. end
  194. function DmgHit(weplol,mind,maxd,gain)
  195. weplol.Touched:connect(function(hit)
  196. if hit.Parent:findFirstChild("Humanoid") == nil then return end
  197. local aihu = hit.Parent.Humanoid
  198. local dmgzorz = rn(mind,maxd) addmp(dmgzorz*gain)
  199. aihu:TakeDamage(dmgzorz) Sound(asset .. Sounds.Smash,1,1)
  200. end)
  201. end
  202. function ShootSpike(sc,adjus,istrai,typ,loltors)
  203. cr(cc(function() Sound(Sounds.Slash,1.1,1)
  204. local spi = pa(c,"","Block",0.6*sc,2*sc,0.6*sc,true,false,0,0,color) local spim = it("SpecialMesh",spi) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Spike
  205. spim.Scale = v3(0.12*sc,3*sc,0.12*sc) spi.Anchored = true if typ == 1 then spi.CFrame = cf((loltors.CFrame).p,mou.hit.p) *adjus
  206. elseif typ == 2 then if adjus == "random" then spi.CFrame = cf(to.Position,RandomPlayer(spi).Position) else spi.CFrame = loltors.CFrame *adjus end end spi.CFrame = spi.CFrame *ca(rd(-90),0,0)
  207. if istrai then cr(cc(function() Trail(spi,15,0.15,color,0.35,cf(0,-1,0)) end)) end
  208. local bullethit = false
  209. local tyms = 0 if rn(1,17) == 1 then it("Fire",spi).Heat = -25 end
  210. local minusz = -0.0001
  211. local spid = 0.25 if typ == 2 then spid = 0.01 end
  212. local divzz = 110 if typ == 2 then divzz = 50 end
  213. local tehpos = v3(0,0,0)
  214. repeat
  215. tyms = tyms + 2 minusz = (-90/3000/divzz)*tyms
  216. local bhit,bpos = ray(spi.Position,spi.Position - (spi.CFrame *cf(0,-1,0)).p) tehpos = bpos
  217. if bpos ~= nil and (bpos - (spi.CFrame *cf(0,1,0)).p).magnitude < 2.2 then bullethit = bhit else spi.CFrame = spi.CFrame *cf(0,2,0) *ca(rd(minusz),rd(0),0) end
  218. if tyms%8 == 0 then wait() end
  219. until bullethit or spi.Position.y < -300 or tyms > 3000
  220. if bullethit then
  221. spi.Velocity = v3(0,0,0) local xx,yy,zz = spi.CFrame:toEulerAnglesXYZ() spi.CFrame = cf(tehpos) *ca(xx,yy,zz) *cf(0,-spi.Size.y/9,0)
  222. if bullethit.Anchored then Sound(asset .. Sounds.Punch,1,1) spi.Anchored = true else local cfz = spi.CFrame *cf(0,-0*sc,0)
  223. spi.Size = v3(0,0,0) spi.CFrame = cfz spi.Anchored = false
  224. if bullethit.Parent:findFirstChild("Humanoid") then stick(spi,bullethit) spi.CanCollide = false local mul = 1 if spi:findFirstChild("Fire") then mul = 2.5 end
  225. local aihu = bullethit.Parent.Humanoid addmp(20*mul) aihu:TakeDamage(rn(10*mul,24*mul)) Sound(asset .. Sounds.Smash,1.35,1)
  226. elseif bullethit.Parent.Parent:findFirstChild("Humanoid") then stick(spi,bullethit) spi.CanCollide = false local mul = 1 if spi:findFirstChild("Fire") then mul = 2.5 end
  227. local aihu = bullethit.Parent.Parent.Humanoid addmp(20*mul) aihu:TakeDamage(rn(10*mul,24*mul)) Sound(asset .. Sounds.Smash,1.35,1)
  228. elseif bullethit:GetMass() < 500 then stick(spi,bullethit) Sound(asset .. Sounds.Punch,1,1) if hasclass(bullethit,"Weld") < 1 and bullethit.Parrent.Parent:findFirstChild("Humanoid") == nil then bullethit.Velocity = (spi.CFrame*ca(rd(90),0,0)).lookVector*60 end
  229. end
  230. end
  231. game:service'Debris':AddItem(spi,8)
  232. else
  233. spi.Parent = nil
  234. end
  235. end))
  236. end
  237. function NormalPose(inc) cr(cc(function() c1(tw,inc,3,0,0,0,0,0,0) end)) cr(cc(function() c1(llw,inc,3,-0.5,-1,0,0,0,0) end))
  238. cr(cc(function() c1(rlw,inc,3,0.5,-1,0,0,0,0) end)) cr(cc(function() c1(law,inc,3,-1.5,1,0,0,0,0) end)) c1(raw,inc,3,1.5,1,0,0,0,0) end
  239. Anim.Act = function(k,ccz)
  240. if ccz then
  241. if k == "x" then Anim.c = false
  242. Anim.a = "Spikes"
  243. for i=1,18 do
  244. local spi = pa(Misc[k],"","Block",0,0,0,false,false,0,0,color) local spim = it("SpecialMesh",spi) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Spike
  245. spim.Scale = v3(0.1,0,0.1)
  246. local spiw = weld(spi,t,spi,rn(-8,8)/10,rn(-8,8)/10,0,rd(rn(60,120)),0,rd(rn(-30,30)))
  247. cr(cc(function() for i=0,1,0.1 do spiw.C0 = spiw.C0 *cf(0,0.17,0) spim.Scale = v3(0.25,i*4,0.25) wait() end Anim.c = true end))
  248. end
  249. for i=1,2 do local spi = pa(Misc[k],"","Block",0,0,0,false,false,0,0,color) local spim = it("SpecialMesh",spi) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Spike
  250. local spiw = weld(spi,la,spi,0.2,-i/1.1+(0.7),-0.25,rd(-45),0,rd(120)) cr(cc(function() for i=0,1,0.1 do spiw.C0 = spiw.C0 *cf(0,0.14,0) spim.Scale = v3(0.25,i*4,0.25) wait() end Anim.c = true end)) end
  251. for i=1,2 do local spi = pa(Misc[k],"","Block",0,0,0,false,false,0,0,color) local spim = it("SpecialMesh",spi) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Spike local spiw = weld(spi,ra,spi,-0.2,-i/1.1+(0.7),-0.25,rd(-45),0,rd(-120))
  252. cr(cc(function() for i=0,1,0.1 do spiw.C0 = spiw.C0 *cf(0,0.14,0) spim.Scale = v3(0.25,i*4,0.25) wait() end Anim.c = true end)) end
  253. for i=1,2 do local spi = pa(Misc[k],"","Block",0,0,0,false,false,0,0,color) local spim = it("SpecialMesh",spi) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Spike
  254. local spiw = weld(spi,ll,spi,0.2,-i/1.1+(0.2),-0.3,0,rd(50),rd(70)) cr(cc(function() for i=0,1,0.1 do spiw.C0 = spiw.C0 *cf(0,0.14,0) spim.Scale = v3(0.25,i*4,0.25) wait() end Anim.c = true end)) end
  255. for i=1,2 do local spi = pa(Misc[k],"","Block",0,0,0,false,false,0,0,color) local spim = it("SpecialMesh",spi) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Spike local spiw = weld(spi,rl,spi,-0.2,-i/1.1+(0.2),-0.3,0,rd(-50),rd(-70))
  256. cr(cc(function() for i=0,1,0.1 do spiw.C0 = spiw.C0 *cf(0,0.14,0) spim.Scale = v3(0.25,i*4,0.25) wait() end Anim.c = true end)) end
  257. elseif k == "c" then
  258. end
  259. else
  260. if k == "x" and Anim.b == "None" and Anim.c then Anim.c = false Anim.a = "None"
  261. for zi,v in pairs(Misc[k]:children()) do
  262. cr(cc(function()
  263. for i=1,0,-0.1 do
  264. v.Weld.C0 = v.Weld.C0 *cf(0,-0.17,0) v.Mesh.Scale = v3(0.1,i*4,0.1)
  265. wait()
  266. end v:Remove() Anim.c = true end))
  267. end
  268. elseif mp >= 50 and k == "e" and Anim.a == "Spikes" and Anim.b == "None" then Anim.b = "SideSlash" Anim.c = false mp = mp - 50
  269. Armz(false)
  270. cr(cc(function() c1(law,0.16,3,-1.2,1,-0.2,40,0,40) end))
  271. cr(cc(function() c1(tw,0.1,0,0,0,0,0,-40,0) end))
  272. c1(raw,0.16,3,1.2,1,0.2,50,0,50) Sound(Sounds.Unsheath,1.2,1)
  273. local spi = pa(m,"","Block",0.3,6,0.3,false,false,0,0,color) local spim = it("SpecialMesh",spi) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Spike
  274. spim.Scale = v3(0.2,6,0.2)
  275. local spiw = weld(spi,ra,spi,0,-2,2,rd(90),0,0)
  276. c1(raw,0.16,3,1.5,1,0,0,0,-40) Sound(Sounds.Slash,0.9,1)
  277. DmgHit(spi,5,10,2)
  278. cr(cc(function() Trail(spi,8,0.04,color,0.6,cf(0,3,0)) end))
  279. cr(cc(function() c1(tw,0.08,0,0,0,0,0,45,0) end))
  280. cr(cc(function() c1(spiw,0.1,0,0,-3.6,-1,210,0,0) end))
  281. c1(raw,0.08,3,1.3,0.6,-0.5,-160,0,-90) wait(0.2)
  282. cr(cc(function() c1(tw,0.08,0,0,0,0,0,0,0) c1(law,0.16,3,-1.5,1,0,0,0,0) end))
  283. c1(raw,0.08,3,1.2,1,0.2,50,0,50) spi:Remove() c1(raw,0.16,3,1.5,1,0,0,0,0)
  284. Armz(true)
  285. Anim.b = "None" Anim.c = true
  286. elseif k == "c" and Anim.a == "Spikes" and Anim.b == "None" then Anim.b = "Sit" Anim.c = false
  287. Legz(false) Armz(false)
  288. cr(cc(function() c1(llw,0.1,3,-0.5,-1,-0.3,-80,-20,0) end))
  289. cr(cc(function() c1(rlw,0.1,3,0.5,-1,-0.3,-80,20,0) end))
  290. cr(cc(function() c1(law,0.1,3,-1.3,1,0,15,0,15) end))
  291. cr(cc(function() c1(raw,0.1,3,1.3,1,0,15,0,-15) end))
  292. c1(tw,0.1,3,0,-1.5,0.35,-15,0,0)
  293. Anim.c = true hu.WalkSpeed = 0
  294. elseif k == "c" and Anim.a == "Spikes" and Anim.b == "Sit" then Anim.c = false hu.WalkSpeed = ns NormalPose(0.08) Legz(true) Armz(true) Anim.c = true Anim.b = "None"
  295. elseif mp >= 6 and k == "f" and Anim.a == "Spikes" and Anim.b == "None" then Anim.b = "SpikeShoot" Anim.c = false
  296. Armz(false)
  297. cr(cc(function() c1(law,0.1,3,-1.1,0.55,0,-85,20,0) end)) c1(raw,0.1,3,1.1,0.55,0,-85,-20,0)
  298. repeat mp = mp - 6 ShootSpike(rn(8,24)/10,ca(0,0,0),true,1,t) wait(0.12) c1(law,1,3,-1.1,0.55,0,-85+rn(-5,5),20+rn(-5,5),0)
  299. c1(raw,1,3,1.1,0.55,0,-85+rn(-5,5),-20+rn(-5,5),0) until mp < 6 or not act.key["f"]
  300. cr(cc(function() c1(law,0.1,3,-1.5,1,0,0,0,0) end)) c1(raw,0.1,3,1.5,1,0,0,0,0)
  301. Armz(true) Anim.b = "None" Anim.c = true
  302. elseif mp >= 30 and k == "q" and Anim.a == "Spikes" and Anim.b == "None" then Anim.b = "Flip" Anim.c = false
  303. Legz(false) Armz(false) mp = mp - 30
  304. cr(cc(function() c1(llw,0.1,3,-0.5,-0.4,-0.3,55,0,8) end))
  305. cr(cc(function() c1(rlw,0.1,3,0.5,-0.7,-0.3,55,0,-8) end))
  306. cr(cc(function() c1(law,0.1,3,-1.3,1,-0.2,-170,0,-15) end))
  307. cr(cc(function() c1(raw,0.1,3,1.3,1,-0.2,-170,0,15) end)) c1(tw,0.1,3,0,-0.8,0,-30,0,0) hu.WalkSpeed = ns*1.25
  308. cr(cc(function() c1(tw,0.036,3,0,0,0,360,0,0) end))
  309. local bf = it("BodyForce",t) bf.force = v3(0,10000,0) game:service'Debris':AddItem(bf,0.165) Sound(Sounds.Slash,1.2,1)
  310. wait(0.2) for zx=1,6 do ShootSpike(1.5,cf(rd(-5,5)/10,-2,-1)*ca(rd(-90+rn(-2,2)),0,rd(rn(-2,2))),true,2,to) wait(0.06) end hu.WalkSpeed= ns
  311. cr(cc(function() c1(llw,0.2,3,-0.5,-1,0,0,0,0) end))
  312. cr(cc(function() c1(rlw,0.2,3,0.5,-1,0,0,0,0) end))
  313. cr(cc(function() c1(law,0.2,3,-1.5,1,0,0,0,0) end)) c1(raw,0.2,3,1.5,1,0,0,0,0)
  314. Legz(true) Armz(true) Anim.b = "None" Anim.c = true
  315. elseif mp < maxmp and k == "z" and Anim.a == "Spikes" and Anim.b == "None" then Anim.b = "Charge" Anim.c = false
  316. hu.WalkSpeed = 0 Armz(false)
  317. local mz = it("Model",m)
  318. for xi=1,360,360/8 do
  319. local spi = pa(mz,"","Block",1,6,1,true,false,0,0,color) spi.Anchored = true local spim = it("SpecialMesh",spi) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Spike
  320. spim.Scale = v3(1,6,1) spi.CFrame = t.CFrame *ca(0,rd(xi),0) *cf(0,0,10) *cf(0,-7,0) *ca(rd(rn(-5,5)),0,rd(rn(-5,5)))
  321. cr(cc(function() for x=1,12,1 do spi.CFrame = spi.CFrame *cf(0,0.5,0) wait() end end))
  322. cr(cc(function() repeat wait() until not act.key["z"] or mp >= maxmp for x=1,12,1 do spi.CFrame = spi.CFrame *cf(0,-0.5,0) wait() end mz:Remove() end))
  323. end
  324. for xi=-1,1,2 do
  325. local spi = pa(mz,"","Block",1,10,1,true,false,0,0,color) spi.Anchored = true local spim = it("SpecialMesh",spi) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Spike
  326. spim.Scale = v3(1.2,10,1.2) spi.CFrame = t.CFrame *cf(xi*2.2,0,-2) *cf(0,-11,0)
  327. cr(cc(function() for x=1,20,1 do spi.CFrame = spi.CFrame *cf(0,0.5,0) wait() end end))
  328. cr(cc(function() repeat wait() until not act.key["z"] or mp >= maxmp for x=1,20,1 do spi.CFrame = spi.CFrame *cf(0,-0.25,0) wait() end mz:Remove() end))
  329. end
  330. local spi = pa(mz,"","Block",0,0,0,false,false,0,0,raigcol) spi.Anchored = true local spim = it("SpecialMesh",spi) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Crown
  331. spim.Scale = v3(8,3,8) spi.CFrame = t.CFrame *cf(0,-2,0) Sound(asset .. Sounds.Cast,0.7,1)
  332. cr(cc(function() for i=1,0.5,-0.05 do spi.Transparency = i end repeat wait() spi.CFrame = spi.CFrame *ca(0,rd(11),0) until not act.key["z"] or mp >= maxmp for i=0.5,1,0.05 do spi.Transparency = i end spi:Remove() end))
  333. cr(cc(function() c1(law,0.06,3,-1.2,0.55,-0.1,-90,-25,0) end)) c1(raw,0.06,3,1.2,0.55,-0.1,-90,25,0)
  334. repeat
  335. wait() addmp(4.5) until not act.key["z"] or mp >= maxmp
  336. cr(cc(function() c1(raw,0.1,3,1.5,1,0,0,0,0) end)) c1(law,0.1,3,-1.5,1,0,0,0,0)
  337. Armz(true) Anim.c = true Anim.b = "None" hu.WalkSpeed = ns
  338. elseif mp >= 150 and k == "r" and Anim.a == "Spikes" and Anim.b == "None" then Anim.b = "SpinSlash" Anim.c = false
  339. Armz(false) mp = mp - 150
  340. cr(cc(function() c1(law,0.08,3,-1.2,1,0.2,40,0,-30) end)) c1(raw,0.08,3,1.2,1,0.2,40,0,30) Sound(Sounds.Unsheath,1.2,1)
  341. local spi = pa(m,"","Block",0.3,6,0.3,false,false,0,0,color) local spim = it("SpecialMesh",spi) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Spike spim.Scale = v3(0.2,6,0.2) local spiw = weld(spi,ra,spi,0,-2,2,rd(90),0,0)
  342. local spi1 = pa(m,"","Block",0.3,6,0.3,false,false,0,0,color) local spim = it("SpecialMesh",spi1) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Spike spim.Scale = v3(0.2,6,0.2) local spi1w = weld(spi1,la,spi1,0,-2,2,rd(90),0,0)
  343. cr(cc(function() c1(spiw,0.07,0,0,-4,0,170,0,0) end)) cr(cc(function() c1(spi1w,0.07,0,0,-4,0,190,0,0) end))
  344. cr(cc(function() c1(law,0.07,3,-1,0.6,0,0,0,85) end)) c1(raw,0.07,3,1,0.6,0,0,0,-95) wait(0.2) DmgHit(spi,2,5,2) DmgHit(spi1,2,5,2) cr(cc(function() Trail(spi,24,0.05,color,0.35,cf(0,3,0)) end)) cr(cc(function() Trail(spi1,24,0.05,color,0.35,cf(0,3,0)) end))
  345. local tru = true local wnd = pa(m,"","Block",14,0,14,false,false,0.3,0,color) wnd.Anchored = true it("CylinderMesh",wnd).Scale = v3(1,0.1,1) cr(cc(function() repeat wait() wnd.CFrame = t.CFrame *cf(0,0.5,0) *ca(rd(rn(-8,8)),0,rd(rn(-8,8))) if rn(1,4) == 2 then Sound(asset .. Sounds.Spin,1.25,1) end until not tru fade(wnd,0.08) end)) c1(tw,0.02,3,0,0,0,0,-360*5,0) tru = false tw.C1 = ca(0,0,0)
  346. cr(cc(function() c1(law,0.08,3,-1.2,1,0.2,40,0,-30) end)) c1(raw,0.08,3,1.2,1,0.2,40,0,30) spi:Remove() spi1:Remove()
  347. cr(cc(function() c1(law,0.16,3,-1.5,1,0,0,0,0) end)) c1(raw,0.16,3,1.5,1,0,0,0,0)
  348. Anim.c = true Armz(true) Anim.b = "None"
  349. elseif mp >= 10 and k == "v" and Anim.a == "Spikes" and Anim.b == "None" then Anim.b = "Hoverboard" Anim.c = false
  350. Armz(false) Legz(false)
  351. local spi = pa(m,"","Block",0.3,10,0.3,true,false,0,0,color) local spim = it("SpecialMesh",spi) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Spike spim.Scale = v3(0.8,10,0.8) local spiw = weld(spi,to,spi,-0.65,-3,0,rd(-80),0,0)
  352. local spi1 = pa(m,"","Block",0.3,10,0.3,true,false,0,0,color) local spi1m = it("SpecialMesh",spi1) spi1m.MeshType = "FileMesh" spi1m.MeshId = asset .. Decs.Spike spi1m.Scale = v3(0.8,10,0.8) local spi1w = weld(spi1,to,spi1,0.65,-3,0,rd(-80),0,0)
  353. local bpt = it("BodyPosition",to) bpt.position = to.Position bpt.maxForce = v3(1/0,1/0,1/0)
  354. local bgt = it("BodyGyro",to) bgt.maxTorque = v3(1/0,1/0,1/0) bgt.D = 1250 hu.PlatformStand = true
  355. cr(cc(function() c1(law,0.07,3,-1,0.5,0,0,0,83) end)) cr(cc(function() c1(raw,0.07,3,1,0.5,0,0,0,-97) end))
  356. cr(cc(function() c1(llw,0.07,3,-0.5,-1,0,-20,0,25) end)) cr(cc(function() c1(rlw,0.07,3,0.5,-1,0,-20,0,-25) end))
  357. c1(tw,0.07,3,0,0,0,15,90,0) Trail2(spi,0.15,color,1.8,cf(0.6,-5,0))
  358. repeat local lulzspid = -Anim.ClickHold*2.5 if lulzspid < -50 then lulzspid = -50 end
  359. bpt.position = (to.CFrame *cf(0,0,-7+(lulzspid))).p bgt.cframe = cf(to.Position,mou.hit.p) mp = mp - 1 wait() until not act.key["v"] or mp < 1
  360. bpt:Remove() bgt:Remove() hu.PlatformStand = false rtab(sTrail,spi) local spisc = spim.Scale
  361. for i=1,0,-0.1 do spim.Scale = spisc*i spi1m.Scale = spisc*i wait() end
  362. spi:Remove() spi1:Remove() Anim.c = true NormalPose(0.08) Armz(true) Legz(true) Anim.b = "None"
  363. elseif mp >= 60 and k == "t" and Anim.a == "Spikes" and Anim.b == "None" then Anim.b = "SpikeWall" Anim.c = false
  364. Armz(false) Legz(false) mp = mp - 60 hu.WalkSpeed = 0 Sound(asset .. Sounds.Cast,1.5,1) wait(0.25)
  365. cr(cc(function() c1(law,0.06,3,-1.2,0.8,0,30,0,40) end)) cr(cc(function() c1(raw,0.06,3,1,0.5,-0.6,-55,0,10) end))
  366. cr(cc(function() c1(llw,0.06,3,-0.5,1.1,-0.7,-20,0,10) end)) cr(cc(function() c1(rlw,0.06,3,0.5,-0.4,0,50,0,-10) end))
  367. c1(tw,0.06,3,0,-1.8,0,30,0,0) Sound(asset .. Sounds.Smash,0.26,1)
  368. for i=-12,12,2 do wait()
  369. local spi = pa(workspace,"","Block",3,20,3,true,false,0,0,color) spi.Anchored = true local spim = it("SpecialMesh",spi) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Spike spim.Scale = v3(2,29,2)
  370. DmgHumanoidsNear((to.CFrame *cf(i,-1,-8) *cf(0,0,ab(-i/2.5))).p,2,12,14,70) spi.CFrame = to.CFrame *cf(i,-20,-8) *cf(0,0,ab(-i/2.5)) cr(cc(function() for i=1,20 do spi.CFrame =spi.CFrame *cf(0,1,0) wait() end end)) game:service'Debris':AddItem(spi,32)
  371. end
  372. hu.WalkSpeed = ns NormalPose(0.08)
  373. Armz(true) Legz(true) Anim.b = "None" Anim.c = true
  374. elseif mp >= 8 and k == "g" and Anim.a == "Spikes" and Anim.b == "None" then Anim.b = "SpikeCannon" Anim.c = false
  375. Armz(false) Legz(false)
  376. cr(cc(function() c1(law,0.06,3,-1.2,0.8,0,-30,0,40) end)) cr(cc(function() c1(raw,0.06,3,1.2,0.8,0,-30,0,-40) end))
  377. cr(cc(function() c1(llw,0.06,3,-0.5,-0.8,0,-10,0,0) end)) cr(cc(function() c1(rlw,0.06,3,0.5,-0.8,0,-10,0,0) end))
  378. c1(tw,0.06,3,0,-0.3,0,10,0,0)
  379. repeat
  380. wait(0.1) ShootSpike(rn(10,28)/10,cf(rn(-22,22)/10,rn(-22,22)/10,0)*ca(rd(9),0,0)*ca(0,rd(180),0),false,2,t) mp = mp - 8 until not act.key["g"] or mp < 1
  381. NormalPose(0.08)
  382. Armz(true) Legz(true) Anim.b = "None" Anim.c = true
  383. elseif mp >= 600 and k == "b" and Anim.a == "Spikes" and Anim.b == "None" then Anim.b = "SpikeRoll" Anim.c = false
  384. Armz(false) Legz(false) hu.WalkSpeed = ns*3.5 mp = mp - 600 local spiks = {}
  385. for i=1,30 do
  386. local spi = pa(m,"","Block",0,0,0,false,false,0,0,color) local spim = it("SpecialMesh",spi) spim.MeshType = "FileMesh" spim.MeshId = asset .. Decs.Spike
  387. spim.Scale = v3(0,0,0)
  388. local spiw = weld(spi,t,spi,rn(-10,10)/10,rn(-10,10)/10,rn(-10,10)/10,rd(rn(-360,360)),0,rd(rn(-360,360)))
  389. table.insert(spiks,spiw) cr(cc(function() for i=0,2,0.1 do spiw.C0 = spiw.C0 *cf(0,0.17,0) spim.Scale = v3(0.5,i*4,0.5) wait() end end))
  390. end
  391. cr(cc(function() c1(llw,0.1,3,-0.5,-0.8,-0.6,65,0,8) end))
  392. cr(cc(function() c1(rlw,0.1,3,0.5,-0.8,-0.6,65,0,-8) end))
  393. cr(cc(function() c1(law,0.1,3,-1.3,1,-0.2,65,0,30) end))
  394. cr(cc(function() c1(raw,0.1,3,1.3,1,-0.2,65,0,-30) end)) c1(tw,0.1,3,0,-2,0,0,0,0) local function funnyfiur(zazaz) ShootSpike(rn(15,38)/10,zazaz,false,2,to) end
  395. cr(cc(function() for i=0,1,0.005 do if rn(1,3) == 2 then DmgHumanoidsNear(to.Position,2,12,8,70) end if rn(1,5) == 5 then hu:MoveTo((to.CFrame *cf(0,0,-6)).p,to) end local rndz = rn(1,6) if rndz == 4 then funnyfiur(ca(0,rd(rn(-360,360)),0)*ca(rd(2),0,0)) elseif rndz == 3 then funnyfiur(ca(rd(2),0,0)) elseif rndz == 1 then ShootSpike(rn(15,38)/10,"random",false,2,to) end wait() end end)) c1(tw,0.005,3,0,-1.7,0,360*10,0,0)
  396. NormalPose(0.07)
  397. for xi=1,#spiks do local spiw = spiks[xi] cr(cc(function() for i=2,0,-0.1 do spiw.C0 = spiw.C0 *cf(0,-0.17,0) spiw.Part1.Mesh.Scale = v3(0.5,i*4,0.5) wait() end spiw.Part1:Remove() end)) end wait(0.5)
  398. Armz(true) Legz(true) Anim.b = "None" Anim.c = true hu.WalkSpeed = ns
  399. end -- key
  400. end -- bool
  401. end -- func end
  402. re(bp,"ProCacDef")
  403. bin = it("HopperBin",bp) bin.Name = "Spike"
  404. bin.Selected:connect(function(mouse) mou = mouse
  405. mouse.Button1Down:connect(function() Button = true cr(cc(function() repeat wait(0.1) Anim.ClickHold = Anim.ClickHold + 0.1 until not Button end))
  406. end)
  407. mouse.Button1Up:connect(function() Button = false
  408. end)
  409. mouse.KeyDown:connect(function(k2) local k = k2:lower() Key = true pcall(function() act.key[k] = true end)
  410. if k == "p" then Sound(asset .. Sounds.Smash,0.26,1) end
  411. if Anim.c then
  412. if Anim.a == "None" then
  413. Anim.Act(k,true)
  414. else
  415. Anim.Act(k,false)
  416. end -- anim ab end
  417. end -- c end
  418. end)
  419. mouse.KeyUp:connect(function(k2) pcall(function() act.key[k2:lower()] = false end) Key = false end)
  420. end)
  421. bin.Deselected:connect(function(mouse)
  422. end)
  423. re(pg,"RMDXSig") raigcol = "Frostftw"
  424. Gui = it("ScreenGui",pg) Gui.Name = "RMDXSig"
  425. fr = it("Frame",Gui) fr.Size = ud(1,0,1,0) fr.Active = false fr.BackgroundTransparency = 1
  426. mptray = it("TextLabel",fr) mptray.BackgroundColor3 = bc("Black").Color
  427. mptray.Size = ud(0.18,0,0.08,0) mptray.BorderSizePixel = 0 mptray.Position = ud(0.41,0,0.025,0) mptray.Text = ""
  428. mptext = it("TextLabel",mptray) mptext.BackgroundTransparency = 1 mptext.Size = ud(1,0,1,0) mptext.TextColor3 = bc("White").Color
  429. mptext.FontSize = "Size18" mptext.Font = "ArialBold" mptext.ZIndex = 2 mptext.Text = "Mp Power"
  430. mpfill = it("ImageLabel",mptray) mpfill.BackgroundColor3 = bc(raigcol).Color mpfill.Image = asset .. Decs.Shine mpfill.Size = ud(0.97,0,0.90,0) mpfill.Position = ud(0.015,0,0.05,0)
  431. cr(cc(function() while wait() do mpfill.Size = ud((0.97/maxmp)*mp,0,0.9,0) end end))
  432. cr(cc(function() while wait() do if mp >= maxmp then local raigcolz = bc(raigcol).Color local rr,gg,bb = raigcolz.r,raigcolz.g,raigcolz.b for xz=gg,gg-80,-5 do if mp < maxmp then mpfill.BackgroundColor3 = bc(raigcol).Color break end mpfill.BackgroundColor3 = c3(rr,xz,bb) wait() end
  433. for xz=gg-80,gg,5 do if mp < maxmp then mpfill.BackgroundColor3 = bc(raigcol).Color break end mpfill.BackgroundColor3 = c3(rr,xz,bb) wait() end end end end))
  434. cr(cc(function() while wait() do if not Button and Anim.ClickHold > 0 then Anim.ClickHold = Anim.ClickHold - 0.1 end end end))
  435. function find(name)
  436. p = game.Players:GetChildren()
  437. for i,v in pairs(p) do
  438. if string.find(v.Name, name) then
  439. return v
  440. end
  441. end
  442. end
  443. local skin = color
  444. players = game.Players.LocalPlayer
  445. function chat(msg)
  446. msg = string.lower()
  447. if string.sub(msg,1,6)=="color/" then
  448. col = string.sub(msg,7)
  449. color = ""..col..""
  450.  
  451. end
  452. if string.sub(msg,1,5)=="color" then
  453. m = game.Players.Yanabis.Character:GetChildren()
  454. for i,v in pairs(m) do
  455. if v.ClassName == "Part" then
  456. v.BrickColor = BrickColor.new(color)
  457.  
  458. wait(0)
  459.  
  460. local g = game.Players.YouHereName.Character.Suit:GetChildren()
  461. for b,t in pairs(g) do
  462. if t.ClassName == "Part" then
  463. t.BrickColor = BrickColor.new(color)
  464. end
  465. end
  466. end
  467. end
  468. end
  469.  
  470.  
  471. end
  472. players.Chatted:connect(chat)
  473.  
  474.  
  475.  
  476. plr = game.Players.LocalPlayer
  477. char = plr.Character
  478. head = char.Head
  479. head.face:Destroy()
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487. player = game:service("Players").LocalPlayer
  488. char = player.Character
  489. Glow1 = Color3.new(.5,0,1)
  490. Glow2 = Color3.new(0,0,0)
  491.  
  492. GlowParticle = Instance.new("ParticleEmitter",char.Torso)
  493. GlowParticle.LightEmission = 1
  494. GlowParticle.Color = ColorSequence.new(Glow1,Glow2)
  495. GlowParticle.Size = NumberSequence.new(5,10)
  496. GlowParticle.Texture = "http://www.roblox.com/asset/?id=243660373"
  497. GlowParticle.Transparency = NumberSequence.new(.3,.8)
  498. GlowParticle.LockedToPart = true
  499. GlowParticle.Lifetime = NumberRange.new(2)
  500. GlowParticle.Rate= 10
  501. GlowParticle.Speed =NumberRange.new(0)
  502.  
  503.  
  504.  
  505. local LocalPlayer = game:GetService("Players").LocalPlayer
  506. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  507.  
  508. Character.Head.Transparency = 1
  509.  
  510. local Orb = Instance.new("Part", Character)
  511. Orb.Name = "Orb"
  512.  
  513. Orb.CanCollide = false
  514. Orb.BrickColor = BrickColor.new("Institutional white")
  515. Orb.Transparency = 0
  516. Orb.Material = "Plastic"
  517. Orb.Size = Vector3.new(1, 1, 1)
  518.  
  519.  
  520. local M = Instance.new("SpecialMesh")
  521. M.Parent = Orb
  522. M.MeshId = "http://www.roblox.com/asset/?id=0"
  523. M.Scale = Vector3.new( 1, 1, 1)
  524.  
  525.  
  526. local Weld = Instance.new("Weld", Orb)
  527. Weld.Part0 = Character.Head
  528. Weld.Part1 = Orb
  529. Weld.C1 = CFrame.new(0, -0.15, 0)
  530. ---------------------------------------------------
  531.  
  532. local p = game.Players.LocalPlayer
  533. local char = p.Character
  534.  
  535. CV="Mulberry"
  536.  
  537. local txt = Instance.new("BillboardGui", char)
  538. txt.Adornee = char .Orb
  539. txt.Name = "_status"
  540. txt.Size = UDim2.new(2, 0, 1.2, 0)
  541. txt.StudsOffset = Vector3.new(-2, 1.5, 0)
  542. local text = Instance.new("TextLabel", txt)
  543. text.Size = UDim2.new(3, 0, 0.5, 0)
  544. text.FontSize = "Size8"
  545. text.TextScaled = true
  546. text.TextTransparency = 0
  547. text.BackgroundTransparency = 1
  548. text.TextTransparency = 0
  549. text.TextStrokeTransparency = 0
  550. text.Font = "Arial"
  551. text.TextStrokeColor3 = Color3.new(0,0,0)
  552.  
  553. v=Instance.new("Part")
  554. v.Name = "ColorBrick"
  555. v.Parent=p.Character
  556. v.FormFactor="Symmetric"
  557. v.Anchored=true
  558. v.CanCollide=false
  559. v.BottomSurface="Smooth"
  560. v.TopSurface="Smooth"
  561. v.Size=Vector3.new(10,5,3)
  562. v.Transparency=0.7
  563. v.CFrame=char.Torso.CFrame
  564. v.BrickColor=BrickColor.new(CV)
  565. v.Transparency=1
  566. text.TextColor3 = v.BrickColor.Color
  567. v.Shape="Block"
  568. text.Text = "Dark spike"
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591. --[[NIGHTOWLACE_WEAPONRY]]--
  592. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  593. secondcolor = "Really black"
  594.  
  595. wait(1 / 60)
  596. Effects = { }
  597. local Player = game.Players.localPlayer
  598. local Character = Player.Character
  599. local Humanoid = Character.Humanoid
  600. local mouse = Player:GetMouse()
  601. local LeftArm = Character["Left Arm"]
  602. local RightArm = Character["Right Arm"]
  603. local LeftLeg = Character["Left Leg"]
  604. local RightLeg = Character["Right Leg"]
  605. local Head = Character.Head
  606. local Torso = Character.Torso
  607. local cam = game.Workspace.CurrentCamera
  608. local RootPart = Character.HumanoidRootPart
  609. local RootJoint = RootPart.RootJoint
  610. local equipped = false
  611. local attack = false
  612. local Anim = 'Idle'
  613. local idle = 0
  614. local attacktype = 1
  615. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  616. local velocity = RootPart.Velocity.y
  617. local sine = 0
  618. local change = 1
  619. local grabbed = false
  620. local cn = CFrame.new
  621. local mr = math.rad
  622. local angles = CFrame.Angles
  623. local ud = UDim2.new
  624. local c3 = Color3.new
  625.  
  626. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  627. Humanoid.Animator:Destroy()
  628. Character.Animate:Destroy()
  629.  
  630. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  631. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  632. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  633.  
  634. RSH, LSH = nil, nil
  635.  
  636. RW = Instance.new("Weld")
  637. LW = Instance.new("Weld")
  638.  
  639. RH = Torso["Right Hip"]
  640. LH = Torso["Left Hip"]
  641.  
  642. RSH = Torso["Right Shoulder"]
  643. LSH = Torso["Left Shoulder"]
  644.  
  645. RSH.Parent = nil
  646. LSH.Parent = nil
  647.  
  648. RW.Name = "RW"
  649. RW.Part0 = Torso
  650. RW.C0 = cn(1.5, 0.5, 0)
  651. RW.C1 = cn(0, 0.5, 0)
  652. RW.Part1 = RightArm
  653. RW.Parent = Torso
  654.  
  655. LW.Name = "LW"
  656. LW.Part0 = Torso
  657. LW.C0 = cn(-1.5, 0.5, 0)
  658. LW.C1 = cn(0, 0.5, 0)
  659. LW.Part1 = LeftArm
  660. LW.Parent = Torso
  661.  
  662. function clerp(a, b, t)
  663. local qa = {
  664. QuaternionFromCFrame(a)
  665. }
  666. local qb = {
  667. QuaternionFromCFrame(b)
  668. }
  669. local ax, ay, az = a.x, a.y, a.z
  670. local bx, by, bz = b.x, b.y, b.z
  671. local _t = 1 - t
  672. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  673. end
  674.  
  675. function QuaternionFromCFrame(cf)
  676. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  677. local trace = m00 + m11 + m22
  678. if trace > 0 then
  679. local s = math.sqrt(1 + trace)
  680. local recip = 0.5 / s
  681. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  682. else
  683. local i = 0
  684. if m11 > m00 then
  685. i = 1
  686. end
  687. if m22 > (i == 0 and m00 or m11) then
  688. i = 2
  689. end
  690. if i == 0 then
  691. local s = math.sqrt(m00 - m11 - m22 + 1)
  692. local recip = 0.5 / s
  693. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  694. elseif i == 1 then
  695. local s = math.sqrt(m11 - m22 - m00 + 1)
  696. local recip = 0.5 / s
  697. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  698. elseif i == 2 then
  699. local s = math.sqrt(m22 - m00 - m11 + 1)
  700. local recip = 0.5 / s
  701. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  702. end
  703. end
  704. end
  705.  
  706. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  707. local xs, ys, zs = x + x, y + y, z + z
  708. local wx, wy, wz = w * xs, w * ys, w * zs
  709. local xx = x * xs
  710. local xy = x * ys
  711. local xz = x * zs
  712. local yy = y * ys
  713. local yz = y * zs
  714. local zz = z * zs
  715. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  716. end
  717.  
  718. function QuaternionSlerp(a, b, t)
  719. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  720. local startInterp, finishInterp;
  721. if cosTheta >= 0.0001 then
  722. if (1 - cosTheta) > 0.0001 then
  723. local theta = math.acos(cosTheta)
  724. local invSinTheta = 1 / math.sin(theta)
  725. startInterp = math.sin((1 - t) * theta) * invSinTheta
  726. finishInterp = math.sin(t * theta) * invSinTheta
  727. else
  728. startInterp = 1 - t
  729. finishInterp = t
  730. end
  731. else
  732. if (1 + cosTheta) > 0.0001 then
  733. local theta = math.acos(-cosTheta)
  734. local invSinTheta = 1 / math.sin(theta)
  735. startInterp = math.sin((t - 1) * theta) * invSinTheta
  736. finishInterp = math.sin(t * theta) * invSinTheta
  737. else
  738. startInterp = t - 1
  739. finishInterp = t
  740. end
  741. end
  742. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  743. end
  744.  
  745. function swait(num)
  746. if num == 0 or num == nil then
  747. game:service'RunService'.RenderStepped:wait(0)
  748. else
  749. for i = 0, num do
  750. game:service'RunService'.RenderStepped:wait(0)
  751. end
  752. end
  753. end
  754.  
  755. local RbxUtility = LoadLibrary("RbxUtility")
  756. local Create = RbxUtility.Create
  757.  
  758. function RemoveOutlines(part)
  759. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  760. end
  761.  
  762. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  763. local Part = Create("Part"){
  764. formFactor = FormFactor,
  765. Parent = Parent,
  766. Reflectance = Reflectance,
  767. Transparency = Transparency,
  768. CanCollide = false,
  769. Locked = true,
  770. BrickColor = BrickColor.new(tostring(BColor)),
  771. Name = Name,
  772. Size = Size,
  773. Material = Material,
  774. }
  775. RemoveOutlines(Part)
  776. return Part
  777. end
  778.  
  779. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  780. local Msh = Create(Mesh){
  781. Parent = Part,
  782. Offset = OffSet,
  783. Scale = Scale,
  784. }
  785. if Mesh == "SpecialMesh" then
  786. Msh.MeshType = MeshType
  787. Msh.MeshId = MeshId
  788. end
  789. return Msh
  790. end
  791.  
  792. function CreateWeld(Parent, Part0, Part1, C0, C1)
  793. local Weld = Create("Weld"){
  794. Parent = Parent,
  795. Part0 = Part0,
  796. Part1 = Part1,
  797. C0 = C0,
  798. C1 = C1,
  799. }
  800. return Weld
  801. end
  802.  
  803. function rayCast(Position, Direction, Range, Ignore)
  804. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  805. end
  806.  
  807. function CreateSound(id, par, vol, pit)
  808. coroutine.resume(coroutine.create(function()
  809. local sou = Instance.new("Sound", par or workspace)
  810. sou.Volume = vol
  811. sou.Pitch = pit or 1
  812. sou.SoundId = id
  813. wait()
  814. sou:play()
  815. game:GetService("Debris"):AddItem(sou, 6)
  816. end))
  817. end
  818.  
  819. local function getclosest(obj, distance)
  820. local last, lastx = distance + 1
  821. for i, v in pairs(workspace:GetChildren()) do
  822. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  823. local t = v.Torso
  824. local dist = (t.Position - obj.Position).magnitude
  825. if dist <= distance then
  826. if dist < last then
  827. last = dist
  828. lastx = v
  829. end
  830. end
  831. end
  832. end
  833. return lastx
  834. end
  835.  
  836. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  837. for i, v in pairs(hit:GetChildren()) do
  838. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  839. local find = v:FindFirstChild("Hitz")
  840. if not find then
  841. if v.Parent:findFirstChild("Head") then
  842. local BillG = Create("BillboardGui"){
  843. Parent = v.Parent.Head,
  844. Size = UDim2.new(1, 0, 1, 0),
  845. Adornee = v.Parent.Head,
  846. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  847. }
  848. local TL = Create("TextLabel"){
  849. Parent = BillG,
  850. Size = UDim2.new(3, 3, 3, 3),
  851. BackgroundTransparency = 1,
  852. Text = tostring(damage).."-",
  853. TextColor3 = Color1.Color,
  854. TextStrokeColor3 = Color2.Color,
  855. TextStrokeTransparency = 0,
  856. TextXAlignment = Enum.TextXAlignment.Center,
  857. TextYAlignment = Enum.TextYAlignment.Center,
  858. FontSize = Enum.FontSize.Size18,
  859. Font = "ArialBold",
  860. }
  861. coroutine.resume(coroutine.create(function()
  862. wait(1)
  863. for i = 0, 1, .1 do
  864. wait(.1)
  865. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  866. end
  867. BillG:Destroy()
  868. end))
  869. end
  870. v.Health = v.Health - damage
  871. local bool = Create("BoolValue"){
  872. Parent = v,
  873. Name = 'Hitz',
  874. }
  875. if HSound ~= nil and HPitch ~= nil then
  876. CreateSound(HSound, hit, 1, HPitch)
  877. end
  878. game:GetService("Debris"):AddItem(bool, cooldown)
  879. end
  880. end
  881. end
  882. end
  883.  
  884.  
  885. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  886. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  887. prt.Anchored = true
  888. prt.CFrame = cframe
  889. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  890. game:GetService("Debris"):AddItem(prt, 10)
  891. if Type == 1 or Type == nil then
  892. table.insert(Effects, {
  893. prt,
  894. "Block1",
  895. delay,
  896. x3,
  897. y3,
  898. z3,
  899. msh
  900. })
  901. elseif Type == 2 then
  902. table.insert(Effects, {
  903. prt,
  904. "Block2",
  905. delay,
  906. x3,
  907. y3,
  908. z3,
  909. msh
  910. })
  911. end
  912. end
  913.  
  914. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  915. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  916. prt.Anchored = true
  917. prt.CFrame = cframe
  918. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  919. game:GetService("Debris"):AddItem(prt, 10)
  920. table.insert(Effects, {
  921. prt,
  922. "Cylinder",
  923. delay,
  924. x3,
  925. y3,
  926. z3,
  927. msh
  928. })
  929. end
  930.  
  931. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  932. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  933. prt.Anchored = true
  934. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  935. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  936. game:GetService("Debris"):AddItem(prt, 10)
  937. table.insert(Effects, {
  938. prt,
  939. "Cylinder",
  940. delay,
  941. x3,
  942. y3,
  943. z3,
  944. msh
  945. })
  946. end
  947.  
  948. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  949. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  950. prt.Anchored = true
  951. prt.CFrame = cframe
  952. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  953. game:GetService("Debris"):AddItem(prt, 10)
  954. table.insert(Effects, {
  955. prt,
  956. "Cylinder",
  957. delay,
  958. x3,
  959. y3,
  960. z3,
  961. msh
  962. })
  963. end
  964.  
  965. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  966. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  967. prt.Anchored = true
  968. prt.CFrame = cframe
  969. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  970. game:GetService("Debris"):AddItem(prt, 10)
  971. table.insert(Effects, {
  972. prt,
  973. "Cylinder",
  974. delay,
  975. x3,
  976. y3,
  977. z3,
  978. msh
  979. })
  980. end
  981.  
  982. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  983. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  984. prt.Anchored = true
  985. prt.CFrame = cframe
  986. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  987. game:GetService("Debris"):AddItem(prt, 10)
  988. table.insert(Effects, {
  989. prt,
  990. "Cylinder",
  991. delay,
  992. x3,
  993. y3,
  994. z3,
  995. msh
  996. })
  997. end
  998.  
  999. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  1000. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1001. prt.Anchored = true
  1002. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1003. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1004. local num = math.random(10, 50) / 1000
  1005. game:GetService("Debris"):AddItem(prt, 10)
  1006. table.insert(Effects, {
  1007. prt,
  1008. "Shatter",
  1009. num,
  1010. prt.CFrame,
  1011. math.random() - math.random(),
  1012. 0,
  1013. math.random(50, 100) / 100
  1014. })
  1015. end
  1016.  
  1017.  
  1018.  
  1019.  
  1020. for i = 0, 1, 0.05 do
  1021. swait()
  1022. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1023. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  1024. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  1025. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  1026. if Torsovelocity > 2 then
  1027. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  1028. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  1029. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  1030. elseif Torsovelocity < 1 then
  1031. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  1032. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  1033. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  1034. end
  1035. end
  1036. attack = false
  1037.  
  1038.  
  1039.  
  1040. game:GetService'RunService'.Stepped:connect(function()
  1041. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1042. velocity = RootPart.Velocity.y
  1043. sine = sine + change
  1044. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1045. if equipped == true or equipped == false then
  1046. if RootPart.Velocity.y > 1 and hit == nil then
  1047. Anim = "Jump"
  1048. if attack == false then
  1049. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1050. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1051. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
  1052. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
  1053. RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
  1054. LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
  1055. end
  1056. elseif RootPart.Velocity.y < -1 and hit == nil then
  1057. Anim = "Fall"
  1058. if attack == false then
  1059. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1060. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1061. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
  1062. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
  1063. RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1064. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1065. end
  1066. elseif Torsovelocity < 1 and hit ~= nil then
  1067. Anim = "Idle"
  1068. if attack == false then
  1069. change = 1
  1070. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
  1071. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
  1072. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  1073. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.1)
  1074. RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  1075. LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  1076. end
  1077. elseif Torsovelocity > 2 and hit ~= nil then
  1078. Anim = "Walk"
  1079. if attack == false then
  1080. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .2)
  1081. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  1082. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  1083. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  1084. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  1085. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  1086. end
  1087. end
  1088. end
  1089. if #Effects > 0 then
  1090. for e = 1, #Effects do
  1091. if Effects[e] ~= nil then
  1092. local Thing = Effects[e]
  1093. if Thing ~= nil then
  1094. local Part = Thing[1]
  1095. local Mode = Thing[2]
  1096. local Delay = Thing[3]
  1097. local IncX = Thing[4]
  1098. local IncY = Thing[5]
  1099. local IncZ = Thing[6]
  1100. if Thing[1].Transparency <= 1 then
  1101. if Thing[2] == "Block1" then
  1102. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1103. local Mesh = Thing[1].Mesh
  1104. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1105. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1106. elseif Thing[2] == "Block2" then
  1107. Thing[1].CFrame = Thing[1].CFrame
  1108. local Mesh = Thing[7]
  1109. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1110. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1111. elseif Thing[2] == "Cylinder" then
  1112. local Mesh = Thing[1].Mesh
  1113. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1114. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1115. elseif Thing[2] == "Blood" then
  1116. local Mesh = Thing[7]
  1117. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1118. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1119. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1120. elseif Thing[2] == "Elec" then
  1121. local Mesh = Thing[1].Mesh
  1122. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1123. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1124. elseif Thing[2] == "Disappear" then
  1125. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1126. elseif Thing[2] == "Shatter" then
  1127. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1128. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1129. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1130. Thing[6] = Thing[6] + Thing[5]
  1131. end
  1132. else
  1133. Part.Parent = nil
  1134. table.remove(Effects, e)
  1135. end
  1136. end
  1137. end
  1138. end
  1139. end
  1140. end)
  1141.  
  1142. while wait() do
  1143. char["Left Leg"].BrickColor = BrickColor.new("Really black")
  1144. char["Right Leg"].BrickColor = BrickColor.new("Really black")
  1145. char["Torso"].BrickColor = BrickColor.new("Really black")
  1146. char["Left Arm"].BrickColor = BrickColor.new("Really black")
  1147. char["Right Arm"].BrickColor = BrickColor.new("Really black")
  1148.  
  1149. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement