Advertisement
Guest User

Untitled

a guest
Jun 8th, 2018
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.76 KB | None | 0 0
  1. --[[Salvo_Starly[Salvy].Weaponry_2018.2]]--
  2. --[[Project Name: Spearman from Critical Strike]]--
  3. --[[ukznhf]]--
  4. wait(.2)
  5. plr=game.Players.LocalPlayer
  6. chr=plr.Character
  7. Head=chr.Head
  8. Root=chr.HumanoidRootPart
  9. Torso=chr.Torso
  10. RArm=chr["Right Arm"]
  11. LArm=chr["Left Arm"]
  12. RLeg=chr["Right Leg"]
  13. LLeg=chr["Left Leg"]
  14. RJ=Root.RootJoint
  15. Neck=Torso.Neck
  16. LS=Torso["Left Shoulder"]
  17. LH=Torso["Left Hip"]
  18. RS=Torso["Right Shoulder"]
  19. RH=Torso["Right Hip"]
  20. hum=chr:FindFirstChildOfClass("Humanoid")
  21. mouse=plr:GetMouse()
  22. Pose="Idle"
  23. attack=false
  24. combo=1
  25. skilldoing=false
  26. skilldoing2=false
  27. wat=true
  28. comb=1
  29. sin=0
  30. cha=1
  31. create=LoadLibrary("RbxUtility").Create
  32. wa=false
  33. chr.Animate:Remove()
  34. hum.Animator:Remove()
  35.  
  36. function clerp(a,b,t)
  37. return a:lerp(b,t)
  38. end
  39.  
  40. local newMotor=function(p0,p1,c0,c1)
  41. local w=Instance.new('Motor',p0)
  42. w.Part0=p0
  43. w.Part1=p1
  44. w.C0=c0
  45. w.C1=c1
  46. return w
  47. end
  48.  
  49. RJ.C0,RJ.C1=CFrame.new(0,0,0),CFrame.new(0,0,0)
  50. Neck.C0,Neck.C1=CFrame.new(0,1.5,0),CFrame.new(0,0,0)
  51. --[[RS.C0,RS.C1=CFrame.new(1.5,0,0),CFrame.new(0,0,0)
  52. LS.C0,LS.C1=CFrame.new(-1.5,0,0),CFrame.new(0,0,0)
  53. RH.C0,RH.C1=CFrame.new(.5,-2,0),CFrame.new(0,0,0)
  54. LH.C0,LH.C1=CFrame.new(-.5,-2,0),CFrame.new(0,0,0)]]
  55. local RS=newMotor(Torso, RArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  56. local LS=newMotor(Torso, LArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  57. local RH=newMotor(Torso, RLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  58. local LH=newMotor(Torso, LLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  59.  
  60. function NoOutline(Part)
  61. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface=10,10,10,10,10,10
  62. end
  63.  
  64. function rayCast(Position,Direction,Range,Ignore)
  65. return game:service("Workspace"):FindPartOnRay(Ray.new(Position,Direction.unit*(Range or 999.999)),Ignore)
  66. end
  67.  
  68. function swait(num)
  69. if num==0 or num==nil then
  70. game:service'RunService'.Stepped:wait(0)
  71. else
  72. for i=0,num do
  73. game:service'RunService'.Stepped:wait(0)
  74. end
  75. end
  76. end
  77.  
  78. function parts(Par,name,size,color,mat,ref,tra)
  79. local part=create("Part"){
  80. Parent=Par,
  81. Name=name,
  82. Size=size,
  83. CanCollide=false,
  84. Anchored=false,
  85. BrickColor=BrickColor.new(color),
  86. Material=mat,
  87. Reflectance=ref,
  88. Transparency=tra}
  89. --Position=Torso.Position}
  90. NoOutline(part)
  91. part:BreakJoints()
  92. return part
  93. end
  94.  
  95. function meshs(Par,name,scale,mtype,id)
  96. local mesh=create("SpecialMesh"){
  97. Parent=Par,
  98. Name=name,
  99. Scale=scale,
  100. MeshType=mtype}
  101. if id~="" then
  102. mesh.MeshId="rbxassetid://"..id
  103. end
  104. return meshs
  105. end
  106.  
  107. function welds(Par,name,p0,p1,c0,c1)
  108. local weld=create("Weld"){
  109. Parent=Par,
  110. Name=name,
  111. Part0=p0,
  112. Part1=p1,
  113. C0=c0,
  114. C1=c1}
  115. return weld
  116. end
  117.  
  118. function sounds(Par,id,vol,pit)
  119. local sound=create("Sound"){
  120. Parent=Par,
  121. SoundId=id,
  122. Volume=vol,
  123. PlaybackSpeed=pit}
  124. sound:Play()
  125. game:GetService("Debris"):AddItem(sound,10)
  126. return sound
  127. end
  128. m=Instance.new("Model",chr)
  129. m.Name="Suit"
  130. e=Instance.new("Model",chr)
  131. e.Name="Effect"
  132.  
  133. S2T=parts(m,"S2T",Vector3.new(2.10000014, 0.199999928, 1.20000005),"Medium stone grey",Enum.Material.SmoothPlastic,0,0)
  134. S2TWeld=welds(S2T,"S2TWeld",Torso,S2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.00002193, -7.62939453e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  135. meshs(S2T,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Brick,"")
  136. S2T=parts(m,"S2T",Vector3.new(0.899999976, 2.39999962, 1.20000005),"Medium stone grey",Enum.Material.SmoothPlastic,0,0)
  137. S2TWeld=welds(S2T,"S2TWeld",Torso,S2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0499954224, 0.300019979, -7.62939453e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  138. meshs(S2T,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Brick,"")
  139. S2T=parts(m,"S2T",Vector3.new(2.10000014, 0.89999938, 1.30000007),"Medium stone grey",Enum.Material.SmoothPlastic,0,0)
  140. S2TWeld=welds(S2T,"S2TWeld",Torso,S2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-05, -0.549978018, 0.0499954224, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  141. meshs(S2T,"Mesh",Vector3.new(1, 1.00999999, 1),Enum.MeshType.Brick,"")
  142. S2T=parts(m,"S2T",Vector3.new(2.10000014, 0.89999938, 1.30000007),"Medium stone grey",Enum.Material.SmoothPlastic,0,0)
  143. S2TWeld=welds(S2T,"S2Weld",Torso,S2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-05, -0.549978018, 0.0499954224, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  144. meshs(S2T,"Mesh",Vector3.new(1, 1.00999999, 1),Enum.MeshType.Brick,"")
  145. S2=parts(m,"S2",Vector3.new(0.499999911, 1.09999943, 1.4000001),"Institutional white",Enum.Material.SmoothPlastic,0,0)
  146. S2Weld=welds(S2,"S2Weld",Torso,S2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0499954224, -0.549978018, -7.62939453e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  147. meshs(S2,"Mesh",Vector3.new(1, 1, 1.00999999),Enum.MeshType.Brick,"")
  148. S2=parts(m,"S2",Vector3.new(0.200000003, 1.00000012, 0.200000003),"Institutional white",Enum.Material.SmoothPlastic,0,0)
  149. S2Weld=welds(S2,"S2Weld",Torso,S2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.424274445, 0.494991302, -0.600006104, 0.707106829, -0.707106829, -0, 0.707106829, 0.707106829, 0, 0, 0, 1))
  150. meshs(S2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Brick,"")
  151. S2=parts(m,"S2",Vector3.new(0.200000003, 1.00000012, 0.200000003),"Institutional white",Enum.Material.SmoothPlastic,0,0)
  152. S2Weld=welds(S2,"S2Weld",Torso,S2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.494991302, -0.424274445, -0.600006104, -0.707106829, -0.707106829, 0, 0.707106829, -0.707106829, -0, 0, 0, 1))
  153. meshs(S2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Brick,"")
  154. S2H=parts(m,"S2H",Vector3.new(0.300000012, 0.300000012, 6.89999914),"Really black",Enum.Material.SmoothPlastic,0,0)
  155. S2HWeld=welds(S2H,"S2HWeld",RArm,S2H,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-05, 0.949999094, 0.749977112, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  156. meshs(S2,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Brick,"")
  157. S2T=parts(m,"S2T",Vector3.new(0.400000006, 0.400000006, 0.399999559),"Medium stone grey",Enum.Material.SmoothPlastic,0,0)
  158. S2TWeld=welds(S2T,"S2TWeld",RArm,S2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-05, 0.949999094, -2.90003204, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  159. meshs(S2T,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Brick,"")
  160. S2T=parts(m,"S2T",Vector3.new(0.400000006, 0.600000024, 1.19999969),"Medium stone grey",Enum.Material.SmoothPlastic,0,0)
  161. S2TWeld=welds(S2T,"S2TWeld",RArm,S2T,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-05, 0.849999905, 4.29997253, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  162. meshs(S2T,"Mesh",Vector3.new(1, 1, 1),Enum.MeshType.Brick,"")
  163. S2=parts(m,"S2",Vector3.new(0.100000001, 0.700000048, 1.00000012),"Mid gray",Enum.Material.SmoothPlastic,0,0)
  164. S2Weld=welds(S2,"S2Weld",RArm,S2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-05, 0.500000954, -4.59996796, -1, 0, 0, 0, 1, 0, 0, 0, -1))
  165. meshs(S2,"Mesh",Vector3.new(0.5, 1, 1),Enum.MeshType.Wedge,"")
  166. S2=parts(m,"S2",Vector3.new(0.100000001, 0.700000048, 1.60000026),"Mid gray",Enum.Material.SmoothPlastic,0,0)
  167. S2Weld=welds(S2,"S2Weld",RArm,S2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-05, 0.500000954, 5.89997101, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  168. meshs(S2,"Mesh",Vector3.new(0.5, 1, 1),Enum.MeshType.Wedge,"")
  169. S2=parts(m,"S2",Vector3.new(0.100000001, 1.00000012, 1.30000019),"Institutional white",Enum.Material.SmoothPlastic,0,0)
  170. S2Weld=welds(S2,"S2Weld",RArm,S2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-05, -1.35000098, -4.44997406, 1, 0, 0, 0, -1, 0, 0, 0, -1))
  171. meshs(S2,"Mesh",Vector3.new(0.5, 1, 1),Enum.MeshType.Wedge,"")
  172. S2=parts(m,"S2",Vector3.new(0.100000001, 1.00000012, 2.99999928),"Institutional white",Enum.Material.SmoothPlastic,0,0)
  173. S2Weld=welds(S2,"S2Weld",RArm,S2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-05, -1.35000098, 6.59997559, -1, 0, 0, 0, -1, 0, 0, 0, 1))
  174. meshs(S2,"Mesh",Vector3.new(0.5, 1, 1),Enum.MeshType.Wedge,"")
  175. S2=parts(m,"S2",Vector3.new(0.100000001, 0.400000006, 0.400000006),"Institutional white",Enum.Material.SmoothPlastic,0,0)
  176. S2Weld=welds(S2,"S2Weld",RArm,S2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-05, -1.35000098, -2.90002441, -1, 0, 0, 0, -1, 0, 0, 0, 1))
  177. meshs(S2,"Mesh",Vector3.new(0.5, 1, 1),Enum.MeshType.Wedge,"")
  178. S2=parts(m,"S2",Vector3.new(0.100000001, 0.600000024, 1.40000021),"Institutional white",Enum.Material.SmoothPlastic,0,0)
  179. S2Weld=welds(S2,"S2Weld",RArm,S2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-05, -1.25000095, -3.80002594, -1, 0, 0, 0, -1, 0, 0, 0, 1))
  180. meshs(S2,"Mesh",Vector3.new(0.5, 1, 1),Enum.MeshType.Brick,"")
  181. S2=parts(m,"S2",Vector3.new(0.100000001, 0.300000012, 1.00000012),"Mid gray",Enum.Material.SmoothPlastic,0,0)
  182. S2Weld=welds(S2,"S2Weld",RArm,S2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-05, -0.800002098, -3.60002518, -1, 0, 0, 0, -1, 0, 0, 0, 1))
  183. meshs(S2,"Mesh",Vector3.new(0.5, 1, 1),Enum.MeshType.Brick,"")
  184. S2=parts(m,"S2",Vector3.new(0.100000001, 0.600000024, 1.90000021),"Institutional white",Enum.Material.SmoothPlastic,0,0)
  185. S2Weld=welds(S2,"S2Weld",RArm,S2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-05, -1.25000095, 5.45002365, 1, 0, 0, 0, -1, 0, 0, 0, -1))
  186. meshs(S2,"Mesh",Vector3.new(0.5, 1, 1),Enum.MeshType.Wedge,"")
  187. S2=parts(m,"S2",Vector3.new(0.100000001, 0.300000012, 1.60000014),"Mid gray",Enum.Material.SmoothPlastic,0,0)
  188. S2Weld=welds(S2,"S2Weld",RArm,S2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-05, 0.800000906, 4.90002441, -1, 0, 0, 0, 1, 0, 0, 0, -1))
  189. meshs(S2,"Mesh",Vector3.new(0.5, 1, 1),Enum.MeshType.Wedge,"")
  190. S21=parts(m,"S21",Vector3.new(0.200000003, 0.200000003, 0.200000003),"Institutional white",Enum.Material.SmoothPlastic,0,0)
  191. S21Weld=welds(S21,"S21Weld",RArm,S21,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-05, -0.95000124, 7.39996338, -1, 0, 0, 0, -1, 0, 0, 0, 1))
  192. meshs(S21,"Mesh",Vector3.new(0.5, 1, 1),Enum.MeshType.Wedge,"")
  193. S22=parts(m,"S22",Vector3.new(0.200000003, 0.200000003, 0.200000003),"Institutional white",Enum.Material.SmoothPlastic,0,0)
  194. S22Weld=welds(S22,"S22Weld",RArm,S22,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-05, -0.95000124, 3.30000305, -1, 0, 0, 0, -1, 0, 0, 0, 1))
  195. meshs(S22,"Mesh",Vector3.new(0.5, 1, 1),Enum.MeshType.Wedge,"")
  196.  
  197. for _,v in pairs(m:children()) do
  198. if v:IsA("Part")and v.Name=="S2T"then
  199. v.BrickColor=Torso.BrickColor
  200. end
  201. end
  202.  
  203. aaa=NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(1, 0)})
  204. bbb=NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  205. local Efect=create("ParticleEmitter"){
  206. Color=ColorSequence.new(Color3.new(1, 0, 0)),
  207. LightEmission=.5,
  208. Texture="rbxassetid://50657528",
  209. Transparency=bbb,
  210. Size=aaa,
  211. ZOffset=0,
  212. Acceleration=Vector3.new(0, 0, 0),
  213. LockedToPart=false,
  214. EmissionDirection="Top",
  215. Lifetime=NumberRange.new(.2,.2),
  216. Rate=100,
  217. Rotation=NumberRange.new(-100, 100),
  218. RotSpeed=NumberRange.new(-50, 50),
  219. Speed=NumberRange.new(40),
  220. VelocitySpread=40,
  221. Enabled=false,
  222. Parent=Root
  223. }
  224.  
  225. local Buff=create("BillboardGui"){
  226. Size=UDim2.new(5, 0, 15, 0),
  227. Adornee=Root,
  228. Parent=Root,
  229. ExtentsOffset=Vector3.new(0, 3, 0),
  230. AlwaysOnTop=true
  231. }
  232. local BuffLabel=create("TextLabel"){
  233. AnchorPoint=Vector2.new(.5,.5),
  234. BackgroundTransparency=1,
  235. TextStrokeTransparency=1,
  236. TextTransparency=1,
  237. TextColor3=Color3.new(1, 1, 0),
  238. TextStrokeColor3=Color3.new(0, 0, 0),
  239. Position=UDim2.new(.5, 0, .5, 0),
  240. Size=UDim2.new(1.5, 0, .2, 0),
  241. Text="0",
  242. Font="SourceSansBold",
  243. TextScaled=true,
  244. Parent=Buff,
  245. }
  246.  
  247. function Damage(Type,Part,hit,dmg,delet)
  248. if hit.Parent==nil then
  249. return
  250. end
  251. local h=hit.Parent:FindFirstChildOfClass("Humanoid")
  252. for _,v in pairs(hit.Parent:children()) do
  253. if v:IsA("Humanoid")then
  254. h=v
  255. end
  256. end
  257. if h~=nil and hit.Parent.Name~=chr.Name then
  258. if hit.Parent:findFirstChild("AHit")==nil then
  259. h.Health=h.Health-dmg
  260. if h.Health==math.huge then
  261. hit.Parent:BreakJoints()
  262. elseif wa==true then
  263. sounds(Root,"rbxassetid://874866480",9,1)
  264. hit.Parent:BreakJoints()
  265. end
  266. end
  267. if Type=="Disappear"then
  268. Part.Parent=nil
  269. if hit.Parent:findFirstChild("AHit")==nil then
  270. local c=create("BoolValue"){
  271. Name="AHit",
  272. Value=true,
  273. Parent=hit.Parent}
  274. game:GetService("Debris"):AddItem(c,.1)
  275. end
  276. elseif Type=="None"then
  277. if hit.Parent:findFirstChild("AHit")==nil then
  278. local c=create("BoolValue"){
  279. Name="AHit",
  280. Value=true,
  281. Parent=hit.Parent}
  282. game:GetService("Debris"):AddItem(c,.25)
  283. end
  284. elseif Type=="None2"then
  285. if hit.Parent:findFirstChild("AHit")==nil then
  286. local c=create("BoolValue"){
  287. Name="AHit",
  288. Value=true,
  289. Parent=hit.Parent}
  290. game:GetService("Debris"):AddItem(c,.05)
  291. end
  292. end
  293. end
  294. end
  295.  
  296. function Mdamage(Type,Part,Magn,Dmg)
  297. for _,c in pairs(workspace:children()) do
  298. local hum=c:findFirstChildOfClass("Humanoid")
  299. if hum~=nil then
  300. local ddee=c:findFirstChild("Torso")
  301. if ddee~=nil then
  302. local targ=ddee.Position-Part.Position
  303. local mag=targ.magnitude
  304. if mag<=Magn and c.Name~=plr.Name then
  305. Damage(Type,Part,ddee,Dmg)
  306. if hum.Health==math.huge then
  307. ddee:BreakJoints()
  308. end
  309. end
  310. end
  311. end
  312. end
  313. end
  314.  
  315. --v efec
  316. function effect(par,color,CF,x,y,z,x1,y1,z1,de,mtyp,typ,id)
  317. local ex=create("Part"){
  318. Size=Vector3.new(.2,.2,.2),
  319. BrickColor=color,
  320. CanCollide=false,
  321. Material="Neon",
  322. Anchored=true,
  323. CFrame=CF,
  324. Parent=par}
  325. NoOutline(ex)
  326. local exe=create("SpecialMesh"){
  327. Scale=Vector3.new(x,y,z),
  328. MeshType=mtyp,
  329. Parent=ex,
  330. MeshId="rbxassetid://"..id}
  331. game:GetService("Debris"):AddItem(ex,10)
  332. coroutine.resume(coroutine.create(function()
  333. for i=0,1.1,de do
  334. swait()
  335. ex.Transparency=i
  336. exe.Scale=exe.Scale+Vector3.new(x1,y1,z1)
  337. if typ==1 then
  338. ex.CFrame=ex.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
  339. end
  340. end
  341. ex:Remove()
  342. end))
  343. end
  344. --v atak
  345. function Spear_Skill(Combo)
  346. attack=true
  347. skilldoing=false
  348. sounds(Root,"rbxasset://sounds/swordslash.wav",1.2,1)
  349. if Combo==1 then
  350. for i=0,1,0.25 do
  351. swait()
  352. RJ.C0=clerp(RJ.C0,CFrame.new(-8.2590617e-07, -4.76837158e-07, 4.76837386e-07, 0.500000238, 0, -0.866025388, 0, 1, 0, 0.866025388, 0, 0.500000238)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
  353. Neck.C0=clerp(Neck.C0,CFrame.new(4.76837386e-07, 1.50000429, -8.2590617e-07, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
  354. RS.C0=clerp(RS.C0,CFrame.new(1.68119287, 0.500001192, -0.676144481, 0.707106769, -0.707107008, -0, 0, 0, -1, 0.707107008, 0.707106769, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
  355. LS.C0=clerp(LS.C0,CFrame.new(-1.6348331, 0.166505516, -0.533010244, 0.866025567, 0.433012754, -0.249999866, -0.49999994, 0.750000179, -0.433012605, -5.96046448e-08, 0.499999911, 0.866025627)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
  356. if skilldoing==true or skilldoing2==true then
  357. break
  358. end
  359. end
  360. for i=0,1,0.06 do
  361. swait()
  362. Mdamage("None",S22,4,15)
  363. Mdamage("None",S21,2,30)
  364. RJ.C0=clerp(RJ.C0,CFrame.new(-1.5348196e-06, -4.76837158e-07, -1.200005078, 0.258818984, 0, 0.965925872, 0, 1, 0, -0.965925872, 0, 0.258818984)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  365. Neck.C0=clerp(Neck.C0,CFrame.new(0, 1.50000429, 0, 0.258818984, 0, -0.965925872, 0, 1, 0, 0.965925872, 0, 0.258818984)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  366. RS.C0=clerp(RS.C0,CFrame.new(0.905513525, 0.500001192, -0.999117136, 0, 0.499999911, -0.866025507, -1, 0, 0, -0, 0.866025507, 0.499999911)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  367. LS.C0=clerp(LS.C0,CFrame.new(-1.86745083, 0.212133825, 1.9046164e-06, 0.258818954, 0.965925872, 9.983778e-07, -0.965925872, 0.258818954, -6.6800121e-09, -2.68220901e-07, -9.83476639e-07, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  368. if skilldoing==true or skilldoing2==true then
  369. break
  370. end
  371. end
  372. elseif Combo==2 then
  373. for i=0,1,0.25 do
  374. swait()
  375. RJ.C0=clerp(RJ.C0,CFrame.new(-0.00797060784, 0, 0.0159379058, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
  376. Neck.C0=clerp(Neck.C0,CFrame.new(-0.0688118488, 1.49997687, 0.0489302538, 0.500000238, 0, -0.866025388, 0, 1, 0, 0.866025388, 0, 0.500000238)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
  377. RS.C0=clerp(RS.C0,CFrame.new(0.881370544, 0.499999046, -0.989105582, 0, 0.500000238, 0.866025388, 1, 0, 0, 0, 0.866025388, -0.500000238)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
  378. LS.C0=clerp(LS.C0,CFrame.new(-1.64070654, 0.0988676846, -0.0363707393, 0.94015497, 0.320339173, 0.116154164, -0.279362053, 0.919801831, -0.275538623, -0.195104659, 0.226599932, 0.9542467)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
  379. if skilldoing==true then
  380. break
  381. end
  382. end
  383. for i=0,1,0.06 do
  384. swait()
  385. Mdamage("None",S22,4,15)
  386. Mdamage("None",S21,2,30)
  387. RJ.C0=clerp(RJ.C0,CFrame.new(-0.141819328, -0, -1.26099586, 0.500000238, 0, -0.866025388, 0, 1, 0, 0.866025388, 0, 0.500000238)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  388. Neck.C0=clerp(Neck.C0,CFrame.new(0.123729445, 1.49997687, -0.0923232585, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  389. RS.C0=clerp(RS.C0,CFrame.new(1.93757987, 0.499999046, -0.559692025, 0, -0.866024375, 0.500002086, 1, 0, 0, 0, 0.500002086, 0.866024375)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  390. LS.C0=clerp(LS.C0,CFrame.new(-1.86749184, 0.219548419, 0.235672072, 0.228143245, 0.95387888, 0.195105106, -0.970870256, 0.23795332, -0.0280933026, -0.0732235089, -0.183012426, 0.980380058)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  391. if skilldoing==true then
  392. break
  393. end
  394. end
  395. elseif Combo==3 then
  396. for i=0,1,0.25 do
  397. swait()
  398. RJ.C0=clerp(RJ.C0,CFrame.new(-2.82967085e-06, -2.38418352e-07, -3.19105675e-06, 0.258818746, 0, -0.965924978, 0, 0.999999046, 0, 0.965925872, 0, 0.258818984)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
  399. Neck.C0=clerp(Neck.C0,CFrame.new(4.42520104e-06, 1.50000095, -1.77621746e-06, 0.258818746, 0, 0.965925872, 0, 0.999999046, 0, -0.965924978, 0, 0.258818984)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
  400. RS.C0=clerp(RS.C0,CFrame.new(1.57334232, 0.104150996, 0.0242375731, 0.424949139, -0.345915258, 0.836517155, 0.250000149, 0.933012784, 0.258818448, -0.870010555, 0.0991447195, 0.482961833)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
  401. LS.C0=clerp(LS.C0,CFrame.new(-1.50002849, 2.26497605e-06, -1.20686684e-06, 0.866025388, 0.500000179, 4.61935997e-07, -0.500000119, 0.866025388, 2.72390196e-07, -2.68220901e-07, -4.69386578e-07, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.45)
  402. if skilldoing==true then
  403. break
  404. end
  405. end
  406. for i=0,1,0.06 do
  407. swait()
  408. Mdamage("None",S22,4,15)
  409. Mdamage("None",S21,2,30)
  410. RJ.C0=clerp(RJ.C0,CFrame.new(-4.76836703e-06, -0.287998855, -1.13958561, 0, 0, 0.999999046, -0.258818746, 0.965924978, 0, -0.965925872, -0.258818984, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  411. Neck.C0=clerp(Neck.C0,CFrame.new(-2.25305557e-05, 1.50000334, 5.7220459e-06, 0, 2.38418579e-07, -1, 0, 1, 2.38418579e-07, 1, 0, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  412. RS.C0=clerp(RS.C0,CFrame.new(1.68703485, 0.29010281, -0.0508945547, 0.00987713691, -0.448736727, -0.893609405, 0.0155336829, 0.893614173, -0.448567331, 0.999830544, -0.00945048407, 0.0157968812)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  413. LS.C0=clerp(LS.C0,CFrame.new(-1.67049909, 0.0182256922, -0.0468431562, 0.485112011, 0.874422491, 0.00720833708, -0.874105573, 0.485135376, -0.0241507925, -0.0246150084, 0.00541499071, 0.999682367)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  414. if skilldoing==true then
  415. break
  416. end
  417. end
  418. end
  419. attack=false
  420. end
  421. --20 15
  422.  
  423. --15
  424. function Spear_Flip()
  425. if skilldoing==true then
  426. return
  427. end
  428. skilldoing=true
  429. sounds(Root,"rbxassetid://380362900",1.2,1)
  430. hum.Jump=true
  431. Torso.Velocity=(Root.CFrame.lookVector*120)+(Vector3.new(0,1,0)*50)
  432. for i=0,1,0.04 do
  433. swait()
  434. Mdamage("None",S2H,6,15)
  435. Mdamage("None",S21,2,30)
  436. RJ.C0=clerp(RJ.C0,CFrame.new(0.0147208329, 0.214689702, -3.81469727e-06, 0, 0.999994278, 0, 0, 0, 0.999994278, 1, 0, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(0-720*i),0),.4)
  437. Neck.C0=clerp(Neck.C0,CFrame.new(0, 1.49999189, 8.82148743e-06, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  438. RS.C0=clerp(RS.C0,CFrame.new(1.4000144, 0.54017067, -0.696429133, 0, 0, 1, 1, 0, 0, 0, 1, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  439. LS.C0=clerp(LS.C0,CFrame.new(-1.40001774, 0.526784897, -0.746401191, 0, 0, 1, 1, 0, 0, 0, 1, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  440. end
  441. skilldoing=false
  442. end
  443.  
  444. function Spear_Stab()
  445. if skilldoing2==true then
  446. return
  447. end
  448. skilldoing2=true
  449. for i=1,5 do
  450. sounds(Root,"rbxassetid://957193342",1.2,1.1)
  451. for i=0,1,0.3 do--lazzy
  452. swait()
  453. RJ.C0=clerp(RJ.C0,CFrame.new(0, -0, -0, 0, 0, -1, 0, 1, 0, 1, 0, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  454. Neck.C0=clerp(Neck.C0,CFrame.new(0, 1.50000381, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  455. RS.C0=clerp(RS.C0,CFrame.new(1.37073517, 0.0462374538, -0.435195684, 0, 0, 1, 0.500000238, 0.866025388, 0, -0.866025388, 0.500000238, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  456. LS.C0=clerp(LS.C0,CFrame.new(-1.30331612, 0.0468284041, -0.550320625, 0, 0, 1, 0.500000238, 0.866025388, 0, -0.866025388, 0.500000238, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  457. end
  458. for i=0,1,0.3 do
  459. swait()
  460. Mdamage("None2",S22,4,15)
  461. Mdamage("None2",S21,2,30)
  462. RJ.C0=clerp(RJ.C0,CFrame.new(0, -0, -3.50000801, 0, 0, -1, 0, 1, 0, 1, 0, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  463. Neck.C0=clerp(Neck.C0,CFrame.new(0, 1.50000381, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  464. RS.C0=clerp(RS.C0,CFrame.new(1.37073517, 0.0462374538, -0.435195684, 0, 0, 1, 0.500000238, 0.866025388, 0, -0.866025388, 0.500000238, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  465. LS.C0=clerp(LS.C0,CFrame.new(-1.30331612, 0.0468284041, -0.550320625, 0, 0, 1, 0.500000238, 0.866025388, 0, -0.866025388, 0.500000238, 0)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.4)
  466. end
  467. end
  468. swait(20)
  469. skilldoing2=false
  470. end
  471. --25 7.5
  472.  
  473. mouse.Button1Down:connect(function()
  474. if attack==false then
  475. if combo==1 then
  476. combo=2
  477. Spear_Skill(1)
  478. elseif combo==2 then
  479. combo=3
  480. Spear_Skill(2)
  481. elseif combo==3 then
  482. combo=1
  483. Spear_Skill(3)
  484. end
  485. end
  486. end)
  487.  
  488. mouse.KeyDown:connect(function(k)
  489. k=k:lower()
  490. if k=="z" and skilldoing==false then
  491. Spear_Flip()
  492. elseif k=="x" and skilldoing2==false then
  493. Spear_Stab()
  494. elseif k=="j" and wa==false then
  495. wa=true
  496. sounds(Root,"rbxassetid://409594107",6,1)
  497. print'AAAAAAAAAAAAAAAAAAAAAAAAAA'
  498. warn'AAAAAAAAAAAAAAAAAAAAAAAAAA'
  499. for _,v in pairs(m:children()) do
  500. if v:IsA("Part")and (v.Name=="S2H"or v.Name=="S22"or v.Name=="S21"or v.Name=="S2"or v.Name=="S2T")then
  501. v.BrickColor=BrickColor.new("Toothpaste")
  502. v.Material="Neon"
  503.  
  504. end
  505. end
  506. local sound=create("Sound"){
  507. Parent=Root,
  508. SoundId="rbxassetid://304767488",
  509. Volume=7,
  510. PlaybackSpeed=1,
  511. Looped=true}
  512. sound:Play()
  513. end
  514. end)
  515.  
  516. while chr.Humanoid.Health>=0 do
  517. swait()
  518. sin=sin+cha
  519. if wa==false then
  520. hum.WalkSpeed=35
  521. else
  522. hum.WalkSpeed=200
  523. hum.JumpPower=280
  524. end
  525. local torvel=(Root.Velocity*Vector3.new(1,0,1)).magnitude
  526. local velderp=Root.Velocity.y
  527. hitfloor,posfloor=rayCast(Root.Position,(CFrame.new(Root.Position,Root.Position-Vector3.new(0,1,0))).lookVector,4,chr)
  528. if Root.Velocity.y>1 and hitfloor==nil then
  529. Pose="Jump"
  530. if attack==false and skilldoing==false and skilldoing2==false then
  531. RJ.C0=clerp(RJ.C0,CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
  532. Neck.C0=clerp(Neck.C0,CFrame.new(0, 1.49998474, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
  533. RS.C0=clerp(RS.C0,CFrame.new(1.70980763, 0.236601114, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
  534. LS.C0=clerp(LS.C0,CFrame.new(-1.70980763, 0.236601114, -0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
  535. end
  536. RH.C0=clerp(RH.C0,CFrame.new(0.5, -1.99998808, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
  537. LH.C0=clerp(LH.C0,CFrame.new(-0.5, -1.99998808, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
  538. elseif Root.Velocity.y<-1 and hitfloor==nil then
  539. Pose="Fall"
  540. if attack==false and skilldoing==false and skilldoing2==false then
  541. RJ.C0=clerp(RJ.C0,CFrame.new(-0.034501072, -0, -0.0986937582, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
  542. Neck.C0=clerp(Neck.C0,CFrame.new(0.0941823646, 1.49998474, 0.0453972146, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
  543. RS.C0=clerp(RS.C0,CFrame.new(1.63909817, 0.114127249, -2.24583914e-07, 0.965925992, -0.258818954, 1.78813934e-07, 0.258818924, 0.965925932, -6.76490401e-07, 0, 7.15255737e-07, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
  544. LS.C0=clerp(LS.C0,CFrame.new(-1.63910222, 0.114126861, 2.24584937e-07, 0.965925992, 0.258818954, 1.78813934e-07, -0.258818924, 0.965925932, 6.76490401e-07, 0, -7.15255737e-07, 1)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
  545. end
  546. RH.C0=clerp(RH.C0,CFrame.new(0.499996245, -1.99998808, -7.62939544e-06, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
  547. LH.C0=clerp(LH.C0,CFrame.new(-0.499994338, -1.19998801, -0.500003874, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
  548. elseif torvel<1 and hitfloor~=nil then
  549. Pose="Idle"
  550. if attack==false and skilldoing==false and skilldoing2==false then
  551. RJ.C0=clerp(RJ.C0,CFrame.new(0, -0.1, -0, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388)*CFrame.new(0,0-.05*math.cos(sin/18),0)*CFrame.Angles(0,0,0),.3)
  552. Neck.C0=clerp(Neck.C0,CFrame.new(-9.53674771e-07, 1.49998951, -1.65181234e-06, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388)*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
  553. RS.C0=clerp(RS.C0,CFrame.new(1.67320299, 0.10000509, 3.71405895e-06, 0.866025567, -0.5, 8.94069672e-08, 0.49999994, 0.866025507, -2.49183756e-07, 5.96046448e-08, 2.5331974e-07, 1.00000012)*CFrame.new(0-.05*math.cos(sin/18),0,0) * CFrame.Angles(0,0,math.rad(0-8*math.cos(sin/18))),.3)
  554. LS.C0=clerp(LS.C0,CFrame.new(-1.67320156, 0.0999999046, 1.0063988e-07, 0.866025567, 0.5, 8.94069672e-08, -0.49999994, 0.866025507, 2.50893436e-07, 5.96046448e-08, -2.5331974e-07, 1.00000012)*CFrame.new(0+.05*math.cos(sin/18),0,0) * CFrame.Angles(0,0,math.rad(0+8*math.cos(sin/18))),.3)
  555. end
  556. RH.C0=clerp(RH.C0,CFrame.new(0.500003934, -1.89999309, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024)*CFrame.new(0,0+.05*math.cos(sin/18),0)*CFrame.Angles(0,0,0),.3)
  557. LH.C0=clerp(LH.C0,CFrame.new(-0.500000119, -1.89999309, -0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024)*CFrame.new(0,0+.05*math.cos(sin/18),0)*CFrame.Angles(0,0,0),.3)
  558. elseif torvel>2 and hitfloor~=nil then
  559. Pose="Walk"
  560. if attack==false and skilldoing==false and skilldoing2==false then
  561. RJ.C0=clerp(RJ.C0,CFrame.new(0, -0.0669884086-.1*math.cos(sin/3), -0.249999404, 1, 0, 0, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388)*CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(0)+Root.RotVelocity.Y/15,0),.3)
  562. Neck.C0=clerp(Neck.C0,CFrame.new(0, 1.47410548, 0.096591115, 1, 0, 0, 0, 0.965925872, -0.258819342, 0, 0.258819342, 0.965925872)*CFrame.new(0,0,0)*CFrame.Angles(0,0+Head.RotVelocity.Y/25,0),.3)
  563. RS.C0=clerp(RS.C0,CFrame.new(1.50000083, -1.7881257e-07, -7.55374003e-07, 0.866024852, -0.500000954, -3.31524848e-06, 0.500000954, 0.866024971, -2.38418579e-07, 2.98023224e-06, -1.4603138e-06, 1.00000012)*CFrame.new(.2,.1,0+.8*math.cos(sin/6)) * CFrame.Angles(math.rad(0-70*math.cos(sin/6)),0,0),.3)
  564. LS.C0=clerp(LS.C0,CFrame.new(-1.5, 7.74863224e-07, -2.42472197e-07, 0.86602515, 0.500000536, -1.43179045e-06, -0.500000536, 0.866025209, 1.49011612e-06, 1.98185444e-06, -5.66244125e-07, 1.00000012)*CFrame.new(-.2,.1,0-.8*math.cos(sin/6)) * CFrame.Angles(math.rad(0+70*math.cos(sin/6)),0,0),.3)
  565. end
  566. RH.C0=clerp(RH.C0,CFrame.new(0.5, -1.79998903, 0, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024)*CFrame.new(0,0+.5*math.cos(sin/2.5),0-1*math.cos(sin/5)) * CFrame.Angles(math.rad(0+85*math.cos(sin/5)),0,0),.3)
  567. LH.C0=clerp(LH.C0,CFrame.new(-0.5, -1.79998903, -0, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024)*CFrame.new(0,0+.5*math.cos(sin/2.5),0+1*math.cos(sin/5)) * CFrame.Angles(math.rad(0-85*math.cos(sin/5)),0,0),.3)
  568. end
  569. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement