Advertisement
ForkFullFight

basic combat script

Jul 29th, 2023 (edited)
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3.  
  4. lol = getcustomasset or getsynasset
  5. getgenv().LoadLibrary = function(lib) return loadstring(game:HttpGet("https://raw.githubusercontent.com/Roblox/Core-Scripts/master/CoreScriptsRoot/Libraries/" .. lib .. ".lua"))() end
  6.  
  7. player = game:GetService("Players").LocalPlayer
  8. char = player.Character
  9. mouse = player:GetMouse()
  10. idleq = false
  11. local skl = false
  12. parts = {}
  13. poses = {}
  14. local obj3
  15. local TARG10
  16. local TARG11
  17. stun = Instance.new("BoolValue",char)
  18. stun.Name = "Stunned"
  19. stun.Value = false
  20. atk = Instance.new("NumberValue",char)
  21. atk.Name = "Attack"
  22. atk.Value = 1
  23. def = Instance.new("NumberValue",char)
  24. def.Name = "Defense"
  25. def.Value = 1
  26. spd = Instance.new("NumberValue",char)
  27. spd.Name = "Speed"
  28. spd.Value = 1
  29. deft = Instance.new("NumberValue",char)
  30. deft.Name = "DefenseTime"
  31. deft.Value = 0
  32. atkt = Instance.new("NumberValue",char)
  33. atkt.Name = "AttackTime"
  34. atkt.Value = 0
  35. spdt = Instance.new("NumberValue",char)
  36. spdt.Name = "SpeedTime"
  37. spdt.Value = 0
  38.  
  39.  
  40. --POISION VARS
  41. posd = Instance.new("BoolValue",char)
  42. posd.Name = "Posioned"
  43. posd.Value = false
  44.  
  45. pt = Instance.new("NumberValue",char)
  46. pt.Name = "PoisonTime"
  47. pt.Value = 0
  48.  
  49.  
  50. bl = Instance.new("BoolValue",char)
  51. bl.Name = "Blocking"
  52. bl.Value = false
  53.  
  54. bll = Instance.new("BoolValue",char)
  55. bll.Name = "BlockingLabel"
  56. bll.Value = false
  57.  
  58. blt = Instance.new("NumberValue",char)
  59. blt.Name = "BlockingLeft"
  60. blt.Value = 50
  61.  
  62.  
  63. pb = Instance.new("BoolValue",char)
  64. pb.Name = "PauseBlock"
  65. pb.Value = false
  66. blm = 100
  67.  
  68. gd = Instance.new("BoolValue",char)
  69. gd.Name = "Ground"
  70.  
  71. local TARG7
  72. local obj
  73. local TARG8
  74. local obj2
  75. for i,v in pairs (char:GetChildren())do
  76. if v.ClassName == "Weld" then
  77. v:destroy()
  78. end
  79. end
  80. ----OPEN
  81. local tr = char:WaitForChild("Torso")
  82. local lr = char:WaitForChild("Left Arm")
  83. local ra = char:WaitForChild("Right Arm")
  84.  
  85. local s1 = Instance.new("Sound",char.Head)
  86. s1.Volume = 1
  87. s1.SoundId = "rbxassetid://419372077"
  88. s1.Pitch = 1.0
  89. local s2 = Instance.new("Sound",char.Head)
  90. s2.Volume = 1
  91. s2.SoundId = "rbxassetid://419378177"
  92. local s3 = Instance.new("Sound",char.Head)
  93. s3.Volume = 1
  94. s3.SoundId = "rbxassetid://"
  95. local s4 = Instance.new("Sound",char.Head)
  96. s4.Volume = 1
  97. s4.SoundId = "rbxassetid://"
  98. local s5 = Instance.new("Sound",char.Head)
  99. s5.Volume = 1
  100. s5.SoundId = "rbxassetid://"
  101. --WELDS --
  102. local w3 = Instance.new("Weld",char)
  103. run = game:GetService("RunService")
  104. w3.Part0 = lr
  105. w3.Part1 = tr
  106. w3.C0 = CFrame.new(1.5,0,0)
  107.  
  108. local w4= Instance.new("Weld",char)
  109. w4.Part0 = ra
  110. w4.Part1 = tr
  111. w4.C0 = CFrame.new(-1.5,0,0)
  112.  
  113. local nc = Instance.new("Weld",char)
  114. nc.Part0 = char.Torso
  115. nc.Part1 = char.Head
  116. nc.C0 = CFrame.new(0,1.5,0)
  117.  
  118. local ll = Instance.new("Weld",char)
  119. ll.Part0 = char.Torso
  120. ll.Part1 = char["Left Leg"]
  121. ll.C0 = CFrame.new(-.5,-2,0)
  122.  
  123. local rl = Instance.new("Weld",char)
  124. rl.Part0 = char.Torso
  125. rl.Part1 = char["Right Leg"]
  126. rl.C0 = CFrame.new(.5,-2,0)
  127.  
  128. local ts = Instance.new("Weld",char)
  129. ts.Part0 = char.HumanoidRootPart
  130. ts.Part1 = char.Torso
  131. ts.C0 = CFrame.new(0,0,0)* CFrame.Angles(0,0,0)
  132. --MAKE AND UNDO WELDS
  133.  
  134. turnonwelds = function()
  135. w3.Part1 = tr
  136. w4.Part1 = tr
  137. nc.Part1 = char.Head
  138. ll.Part1 = char["Left Leg"]
  139. rl.Part1 = char["Right Leg"]
  140. end
  141. turnoffwelds = function()
  142. w3.Part1 = nil
  143. w4.Part1 = nil
  144. nc.Part1 = nil
  145. ll.Part1 = nil
  146. rl.Part1 = nil
  147. end
  148.  
  149. turnoffwelds()
  150. ----LERP POSES
  151. ------- CFRAMES FOR LERP
  152.  
  153. local walk = {
  154. --Left
  155. ll.C0 * CFrame.new(0,0,-.5) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(0)), -- LEFT LEG
  156. rl.C0 * CFrame.new(0,0,.5) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)), -- RIGHT LEG
  157. --Right
  158. ll.C0 * CFrame.new(0,0,.5) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)), -- LEFT LEG
  159. rl.C0 * CFrame.new(0,0,-.5) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(0)), -- RIGHT LEG
  160. -----------------------------------------------------------------------------------------------
  161. ts.C0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-30),0,0) , -- Torso Tilt
  162. nc.C0 * CFrame.Angles(math.rad(20),math.rad(0),0), -- HEAD TILT UP
  163. w4.C0 * CFrame.new(0,.2,-.4) * CFrame.Angles(math.rad(60),math.rad(0),math.rad(0)), -- ARM MOVEMENT
  164. w3.C0 * CFrame.new(0,.2,-.4) * CFrame.Angles(math.rad(60),math.rad(0),math.rad(0)) -- ARM MOVEMENT
  165.  
  166. }
  167. local equip = {
  168. nc.C0 * CFrame.Angles(math.rad(-10),math.rad(0),0), -- HEAD BOB EQUIP
  169. w3.C0 * CFrame.new(-1.1,-.1,-1.2) * CFrame.Angles(math.rad(-160),0,math.rad(90)), -- LEFT ARM FOLD
  170. w4.C0 * CFrame.new(1.1,-.2,-1.2) * CFrame.Angles(math.rad(-160),0,math.rad(-90)) -- RIGHT ARM FOLD
  171. }
  172. local idle = {
  173. ts.C0 * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(-40),0), -- TORSO TILT
  174. nc.C0 * CFrame.Angles(0,math.rad(30),0), -- HEAD BOB EQUIP
  175. ll.C0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-5),math.rad(30),math.rad(-10)), -- LEFT LEG idle
  176. rl.C0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(5),math.rad(-30),math.rad(10)), -- RIGHT LEG Idle
  177. w3.C0 * CFrame.new(0,.5,0) * CFrame.Angles(math.rad(-90),math.rad(20),math.rad(30)), -- LEFT ARM Idle
  178. w4.C0 * CFrame.new(0,.5,-.2) * CFrame.Angles(math.rad(-120),math.rad(-20),math.rad(-30)), -- RIGHT ARM Idle w4.C0 * CFrame.new(0,.5,-.2) * CFrame.Angles(math.rad(-100),math.rad(-30),math.rad(-30))
  179. }
  180. local PA1 = {
  181. ts.C0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-30),math.rad(40),math.rad(30)), -- TORSO TILT
  182. ll.C0 * CFrame.new(0,0,-.5) * CFrame.Angles(math.rad(20),math.rad(30),math.rad(-10)), -- LEFT LEG PUNCH1
  183. rl.C0 * CFrame.new(0,-.05,-.5) * CFrame.Angles(math.rad(20),math.rad(-30),math.rad(10)), -- RIGHT LEG PUNCH
  184. nc.C0 * CFrame.Angles(math.rad(-7),math.rad(20),0), -- HEAD BOB PUNCH
  185. w3.C0 * CFrame.new(0,.6,0) * CFrame.Angles(math.rad(30),0,math.rad(20)), -- LEFT ARM Idle
  186. w4.C0 * CFrame.new(0,.5,-.2) * CFrame.Angles(math.rad(-100),math.rad(-20),math.rad(-30)), -- RIGHT ARM
  187. }
  188. local PA2 = {
  189. ts.C0 * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(-35),0), -- TORSO TILT
  190. ll.C0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-5),math.rad(30),math.rad(-10)), -- LEFT LEG idle
  191. rl.C0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(5),math.rad(-30),math.rad(10)), -- RIGHT LEG Idle
  192. CFrame.new(0,1.5,0)* CFrame.Angles(math.rad(20),math.rad(20),0), -- HEAD BOB PUNCH
  193. w4.C0 * CFrame.new(0,1,0) * CFrame.Angles(math.rad(30),0,math.rad(-40)), -- LEFT ARM Idle
  194. w3.C0 * CFrame.new(-.5,1.5,-.3) * CFrame.Angles(math.rad(-150),0,math.rad(-10)), -- RIGHT ARM Idle
  195. }
  196. local PA3 = {
  197. ts.C0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(10),math.rad(15),0), -- TORSO TILT
  198. nc.C0 * CFrame.Angles(math.rad(-15),math.rad(-5),0), -- HEAD BOB PUNCH
  199. w4.C0 * CFrame.new(.4,1,.7) * CFrame.Angles(math.rad(40),math.rad(20),math.rad(-50)), -- LEFT ARM PUNCH 3
  200. w3.C0 * CFrame.new(-.3,1.5,0) * CFrame.Angles(math.rad(40),math.rad(20),math.rad(50)), -- RIGHT ARM PUNCH 3
  201. ll.C0 * CFrame.new(-.3,0,.3) * CFrame.Angles(math.rad(-20),math.rad(30),math.rad(-10)), -- LEFT LEG
  202. rl.C0 * CFrame.new(0,1,-.5) * CFrame.Angles(math.rad(-40),0,math.rad(0)), -- RIGHT LEG Idle
  203. }
  204. local PA4 = {
  205. ts.C0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(60),math.rad(-60),0), -- TORSO TILT
  206. nc.C0 * CFrame.Angles(math.rad(-25),math.rad(50),0), -- HEAD BOB PUNCH
  207. w4.C0 * CFrame.new(.4,1,.7) * CFrame.Angles(math.rad(50),0,math.rad(-70)), -- LEFT ARM PUNCH 3
  208. w3.C0 * CFrame.new(-1.2,-.2,1) * CFrame.Angles(math.rad(-40),math.rad(20),math.rad(-50)), -- RIGHT ARM PUNCH 3
  209. ll.C0 * CFrame.new(-1.0,.5,0) * CFrame.Angles(0,math.rad(0),math.rad(-30)), -- LEFT LEG
  210. rl.C0 * CFrame.new(1,.5,.5) * CFrame.Angles(0,math.rad(-20),math.rad(40)), -- RIGHT LEG Idle
  211. }
  212. local jump = {
  213. nc.C0 * CFrame.Angles(math.rad(20),0,0), -- HEAD BOB EQUIP
  214. w4.C0 * CFrame.new(0,.5,0) * CFrame.Angles(0,0,math.rad(-30)), -- LEFT ARM Idle
  215. w3.C0 * CFrame.new(0,.5,0) * CFrame.Angles(0,0,math.rad(30)), -- RIGHT ARM Idle
  216. ll.C0 * CFrame.new(-.3,0,0) * CFrame.Angles(0,0,math.rad(-20)), -- LEFT LEG idle
  217. rl.C0 * CFrame.new(.3,0,0) * CFrame.Angles(0,0,math.rad(20)), -- RIGHT LEG Idle
  218. }
  219. local stunned = {
  220. nc.C0 * CFrame.Angles(0,math.rad(90),0), -- HEAD BOB EQUIP
  221. w4.C0 * CFrame.new(0,1,0) * CFrame.Angles(0,0,math.rad(-50)), -- LEFT ARM Idle
  222. w3.C0 * CFrame.new(0,1,0) * CFrame.Angles(0,0,math.rad(50)), -- RIGHT ARM Idle
  223. ll.C0 * CFrame.new(-.3,0,0) * CFrame.Angles(0,0,math.rad(-20)), -- LEFT LEG idle
  224. rl.C0 * CFrame.new(.3,0,0) * CFrame.Angles(0,0,math.rad(20)), -- RIGHT LEG Idle
  225. ts.C0 * CFrame.new(0,-2.5,0) * CFrame.Angles(math.rad(90),0,0), -- TORSO TILT
  226. }
  227. local PA1C = {
  228. ts.C0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-30),math.rad(-40),math.rad(-30)), -- TORSO TILT
  229. ll.C0 * CFrame.new(0,0,-.5) * CFrame.Angles(math.rad(20),math.rad(30),math.rad(-10)), -- LEFT LEG PUNCH1
  230. rl.C0 * CFrame.new(0,-.05,-.5) * CFrame.Angles(math.rad(20),math.rad(-30),math.rad(10)), -- RIGHT LEG PUNCH
  231. nc.C0 * CFrame.Angles(math.rad(-7),math.rad(-20),0), -- HEAD BOB PUNCH
  232. w3.C0 * CFrame.new(0,.5,-.2) * CFrame.Angles(math.rad(-100),math.rad(40),math.rad(30)), -- RIGHT ARM
  233. w4.C0 * CFrame.new(0,.6,0) * CFrame.Angles(math.rad(30),0,math.rad(-20)), -- LEFT ARM Idle
  234. }
  235. local Stomp = {
  236. ts.C0 * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(0),0), -- TORSO TILT ~ NONE REQUIRED
  237. nc.C0 * CFrame.Angles(math.rad(-13),math.rad(-20),0), -- HEAD BOB EQUIP
  238. ll.C0 * CFrame.new(-.05,0,0) * CFrame.new(math.rad(0),math.rad(0),math.rad(00)), -- LEFT LEG
  239. rl.C0 * CFrame.new(0,.6,-.6) * CFrame.Angles(math.rad(-0),0,math.rad(0)), -- RIGHT LEG Idle
  240. w3.C0 * CFrame.new(0,.7,0) * CFrame.Angles(math.rad(-30),0,math.rad(30)), -- LEFT ARM Idle
  241. w4.C0 * CFrame.new(0,.7,0) * CFrame.Angles(math.rad(-30),0,math.rad(-30)), -- RIGHT ARM Idle
  242. }
  243. local Stomp2 = {
  244. ts.C0 * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(0),0), -- TORSO TILT ~ NONE REQUIRED
  245. nc.C0 * CFrame.Angles(math.rad(-25),math.rad(-20),0), -- HEAD BOB EQUIP
  246. ll.C0 * CFrame.new(-.05,0,0) * CFrame.new(math.rad(0),math.rad(0),math.rad(00)), -- LEFT LEG
  247. rl.C0 * CFrame.new(0,0,-.6) * CFrame.Angles(math.rad(-0),0,math.rad(0)), -- RIGHT LEG Idle
  248. w3.C0 * CFrame.new(0,.7,0) * CFrame.Angles(math.rad(-30),0,math.rad(35)), -- LEFT ARM Idle
  249. w4.C0 * CFrame.new(0,.7,0) * CFrame.Angles(math.rad(-30),0,math.rad(-35)), -- RIGHT ARM Idle
  250. }
  251. local dropkick = {
  252. ts.C0 * CFrame.new(0,.8,0) * CFrame.Angles(math.rad(90),math.rad(45),0), -- TORSO TILT ~ NONE REQUIRED
  253. nc.C0 * CFrame.new(0,0,-.2) * CFrame.Angles(math.rad(-30),math.rad(-20),0), -- HEAD BOB EQUIP
  254. ll.C0 * CFrame.new(-.2,0,-.3) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), -- LEFT LEG
  255. rl.C0 * CFrame.new(-.05,0,0) * CFrame.Angles(math.rad(00),math.rad(20),math.rad(0)), -- RIGHT LEG Idle
  256. w3.C0 * CFrame.new(-2.7,1.5,0) * CFrame.Angles(math.rad(0),0,math.rad(170)), -- LEFT ARM Idle
  257. w4.C0 * CFrame.new(2.7,1.5,0) * CFrame.Angles(math.rad(0),0,math.rad(-160)), -- RIGHT ARM Idle
  258. }
  259. local block = {
  260. ts.C0 * CFrame.new(0,0,0) * CFrame.Angles(0,0,0), -- TORSO TILT ~ NONE REQUIRED
  261. nc.C0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-9),math.rad(-0),0), -- HEAD BOB EQUIP
  262. ll.C0 * CFrame.new(0,0,0) * CFrame.Angles(0,0,0), -- LEFT LEG idle
  263. rl.C0 * CFrame.new(0,0,0) * CFrame.Angles(0,0,0), -- RIGHT LEG Idle
  264. w3.C0 * CFrame.new(-.8,1.3,-.6) * CFrame.Angles(math.rad(-160),math.rad(0),math.rad(0)), -- LEFT ARM Idle
  265. w4.C0 * CFrame.new(.8,1.3,-.6) * CFrame.Angles(math.rad(-160),math.rad(0),math.rad(0)), -- RIGHT ARM Idle
  266. }
  267. local sjump = {
  268. ts.C0 * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-10),0,0), -- TORSO TILT ~ NONE REQUIRED
  269. nc.C0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-15),math.rad(-0),0), -- HEAD BOB EQUIP
  270. ll.C0 * CFrame.new(0,.4,.8) * CFrame.Angles(math.rad(-70),0,0), -- LEFT LEG idle
  271. rl.C0 * CFrame.new(0,.8,-.5) * CFrame.Angles(math.rad(-10),0,0), -- RIGHT LEG Idle
  272. w3.C0 * CFrame.new(0,.5,.5) * CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), -- LEFT ARM Idle
  273. w4.C0 * CFrame.new(0,0,-.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(0)), -- RIGHT ARM Idle
  274. }
  275. local UpSideDownPunch = {
  276. ts.C0 * CFrame.new(0,-.5,0) * CFrame.Angles(math.rad(180),0,0), -- TORSO TILT ~ NONE REQUIRED
  277. nc.C0 * CFrame.new(0,0,0) * CFrame.Angles(0,0,0), -- HEAD BOB EQUIP
  278. ll.C0 * CFrame.new(-.4,0,0) * CFrame.Angles(0,0,math.rad(-20)), -- LEFT LEG idle
  279. rl.C0 * CFrame.new(.4,0,0) * CFrame.Angles(0,0,math.rad(20)), -- RIGHT LEG Idle
  280. w3.C0 * CFrame.new(0,1.7,0) * CFrame.Angles(math.rad(180),math.rad(0),math.rad(0)), -- LEFT ARM Idle
  281. w4.C0 * CFrame.new(0,1.7,0) * CFrame.Angles(math.rad(180),math.rad(0),math.rad(0)), -- RIGHT ARM Idle
  282. }
  283. local BackBreaker = {
  284. ts.C0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(10),math.rad(15),0), -- TORSO TILT
  285. nc.C0 * CFrame.Angles(math.rad(-15),math.rad(-5),0), -- HEAD BOB PUNCH
  286. w4.C0 * CFrame.new(0,.1,.3) * CFrame.Angles(math.rad(-90),math.rad(-00),math.rad(0)), -- LEFT ARM PUNCH 3
  287. w3.C0 * CFrame.new(0,.5,.5) * CFrame.Angles(math.rad(-90),math.rad(20),math.rad(0)), -- LEFT ARM PUNCH 3
  288. ll.C0 * CFrame.new(-.3,0,.3) * CFrame.Angles(math.rad(-20),math.rad(30),math.rad(-10)), -- LEFT LEG
  289. rl.C0 * CFrame.new(-.2,1,-.5) * CFrame.Angles(math.rad(-40),0,math.rad(0)), -- RIGHT LEG Idle
  290. }
  291. local FrontFlipKick1 = {
  292. ts.C0 * CFrame.new(0,2,0) * CFrame.Angles(math.rad(-8),math.rad(0),0), -- TORSO TILT
  293. nc.C0 * CFrame.Angles(math.rad(-15),math.rad(-5),0), -- HEAD BOB PUNCH
  294. w4.C0 * CFrame.new(0,1,-.3) * CFrame.Angles(math.rad(140),math.rad(0),math.rad(0)), -- LEFT ARM PUNCH 3
  295. w3.C0 * CFrame.new(0,1,-.3) * CFrame.Angles(math.rad(140),math.rad(0),math.rad(0)), -- LEFT ARM PUNCH 3
  296. ll.C0 * CFrame.new(0,1,1) * CFrame.Angles(math.rad(-110),0,math.rad(0)), -- RIGHT LEG Idle
  297. rl.C0 * CFrame.new(0,1,-1) * CFrame.Angles(math.rad(110),0,math.rad(0)), -- RIGHT LEG Idle
  298. }
  299. --[[for i = 0,1,wait() do
  300. wait()
  301. ts.C0 = ts.C0:lerp(FrontFlipKick1[1],.4)
  302. nc.C0 = nc.C0:lerp(FrontFlipKick1[2],.4)
  303. ll.C0 = ll.C0:lerp(FrontFlipKick1[5],.4)
  304. rl.C0 = rl.C0:lerp(FrontFlipKick1[6],.4)
  305. w3.C0 = w3.C0:lerp(FrontFlipKick1[4],.4)
  306. w4.C0 = w4.C0:lerp(FrontFlipKick1[3],.4)
  307. end--]]
  308.  
  309. --[[
  310. --END
  311. ts.C0 = ts.C0:lerp(UpSideDownPunch[1],.4)
  312. nc.C0 = nc.C0:lerp(UpSideDownPunch[2],.4)
  313. ll.C0 = ll.C0:lerp(UpSideDownPunch[3],.4)
  314. rl.C0 = rl.C0:lerp(UpSideDownPunch[4],.4)
  315. w3.C0 = w3.C0:lerp(UpSideDownPunch[5],.4)
  316. w4.C0 = w4.C0:lerp(UpSideDownPunch[6],.4)
  317. --START
  318. ts.C0 = ts.C0:lerp(sjump[1],.4)
  319. nc.C0 = nc.C0:lerp(sjump[2],.4)
  320. ll.C0 = ll.C0:lerp(sjump[3],.4)
  321. rl.C0 = rl.C0:lerp(sjump[4],.4)
  322. w3.C0 = w3.C0:lerp(sjump[5],.4)
  323. w4.C0 = w4.C0:lerp(sjump[6],.4)
  324. --]]
  325. -- CFrame.new(-.05,0,0) * CFrame.new(math.rad(0),math.rad(0),math.rad(00)), -- LEFT LEG
  326. ------------------------------------CLASS UI ------------------------------------
  327.  
  328.  
  329.  
  330. f = Instance.new("ScreenGui",player.PlayerGui)
  331. f.Name = "UI"
  332.  
  333. f1 = Instance.new("Frame",f)
  334. f1.BorderSizePixel = 0
  335. f1.BackgroundColor3 = Color3.new(0,0,0)
  336. f1.Size = UDim2.new(0.3,0,0.05,0)
  337. f1.Position = UDim2.new(0.2,0,0.84,0)
  338.  
  339. f1f = Instance.new("Frame",f1)
  340. f1f.BorderSizePixel = 0
  341. f1f.BackgroundColor3 = Color3.new(255,255,255)
  342. f1f.Size = UDim2.new(1,0,1,0)
  343.  
  344. f1l = Instance.new("TextLabel",f1)
  345. f1l.TextScaled = true
  346. f1l.TextStrokeTransparency = 0
  347. f1l.BackgroundTransparency = 1
  348. f1l.TextColor3 = Color3.new(255,255,255)
  349. f1l.BorderSizePixel = 0
  350. f1l.Size = UDim2.new(1,0,1,0)
  351. f1l.Text = "[Z] Punch Storm"
  352.  
  353.  
  354. f2 = Instance.new("Frame",f)
  355. f2.BorderSizePixel = 0
  356. f2.BackgroundColor3 = Color3.new(0,0,0)
  357. f2.Size = UDim2.new(0.3,0,0.05,0)
  358. f2.Position = UDim2.new(0.52, 0,0.84, 0)
  359.  
  360. f2f = Instance.new("Frame",f2)
  361. f2f.BorderSizePixel = 0
  362. f2f.BackgroundColor3 = Color3.new(255,255,255)
  363. f2f.Size = UDim2.new(1,0,1,0)
  364.  
  365. f2l = Instance.new("TextLabel",f2)
  366. f2l.TextScaled = true
  367. f2l.TextStrokeTransparency = 0
  368. f2l.BackgroundTransparency = 1
  369. f2l.TextColor3 = Color3.new(255,255,255)
  370. f2l.BorderSizePixel = 0
  371. f2l.Size = UDim2.new(1,0,1,0)
  372. f2l.Text = "[X] Ground Stomp"
  373.  
  374.  
  375. f3 = Instance.new("Frame",f)
  376. f3.BorderSizePixel = 0
  377. f3.BackgroundColor3 = Color3.new(0,0,0)
  378. f3.Size = UDim2.new(0.3,0,0.05,0)
  379. f3.Position = UDim2.new(0.2,0,0.9,0)
  380.  
  381. f3f = Instance.new("Frame",f3)
  382. f3f.BorderSizePixel = 0
  383. f3f.BackgroundColor3 = Color3.new(255,255,255)
  384. f3f.Size = UDim2.new(1,0,1,0)
  385.  
  386. f3l = Instance.new("TextLabel",f3)
  387. f3l.TextScaled = true
  388. f3l.TextStrokeTransparency = 0
  389. f3l.BackgroundTransparency = 1
  390. f3l.TextColor3 = Color3.new(255,255,255)
  391. f3l.BorderSizePixel = 0
  392. f3l.Size = UDim2.new(1,0,1,0)
  393. f3l.Text = "[C] Drop kick"
  394.  
  395.  
  396. f4 = Instance.new("Frame",f)
  397. f4.BorderSizePixel = 0
  398. f4.BackgroundColor3 = Color3.new(0,0,0)
  399. f4.Size = UDim2.new(0.3,0,0.05,0)
  400. f4.Position = UDim2.new(.52,0,.9,0)
  401.  
  402. f4f = Instance.new("Frame",f4)
  403. f4f.BorderSizePixel = 0
  404. f4f.BackgroundColor3 = Color3.new(255,255,255)
  405. f4f.Size = UDim2.new(1,0,1,0)
  406.  
  407. f4l = Instance.new("TextLabel",f4)
  408. f4l.TextScaled = true
  409. f4l.TextStrokeTransparency = 0
  410. f4l.BackgroundTransparency = 1
  411. f4l.TextColor3 = Color3.new(255,255,255)
  412. f4l.BorderSizePixel = 0
  413. f4l.Size = UDim2.new(1,0,1,0)
  414. f4l.Text = "[V] Jump-And-Explode"
  415.  
  416.  
  417. ---HEALTH BAR
  418.  
  419. f5 = Instance.new("Frame",f)
  420. f5.BorderSizePixel = 0
  421. f5.BackgroundColor3 = Color3.new(255,255,255)
  422. f5.Size = UDim2.new(0.3,0,0.03,0)
  423. f5.Position = UDim2.new(.52,0,.8,0)
  424.  
  425. f5f = Instance.new("Frame",f5)
  426. f5f.BorderSizePixel = 0
  427. f5f.BackgroundColor3 = Color3.new(0,255,0)
  428. f5f.Size = UDim2.new(1,0,1,0)
  429.  
  430. f5l = Instance.new("TextLabel",f5)
  431. f5l.TextScaled = true
  432. f5l.TextStrokeTransparency = 0
  433. f5l.BackgroundTransparency = 1
  434. f5l.TextColor3 = Color3.new(255,255,255)
  435. f5l.BorderSizePixel = 0
  436. f5l.Size = UDim2.new(1,0,1,0)
  437. f5l.Text = "Health"
  438.  
  439.  
  440. ---ENERGY BAR
  441.  
  442. f6 = Instance.new("Frame",f)
  443. f6.BorderSizePixel = 0
  444. f6.BackgroundColor3 = Color3.new(255,255,255)
  445. f6.Size = UDim2.new(0.3,0,0.03,0)
  446. f6.Position = UDim2.new(.2,0,.8,0)
  447.  
  448. f6f = Instance.new("Frame",f6)
  449. f6f.BorderSizePixel = 0
  450. f6f.BackgroundColor3 = BrickColor.new("Deep orange").Color
  451. f6f.Size = UDim2.new(1,0,1,0)
  452.  
  453. f6l = Instance.new("TextLabel",f6)
  454. f6l.TextScaled = true
  455. f6l.TextStrokeTransparency = 0
  456. f6l.BackgroundTransparency = 1
  457. f6l.TextColor3 = Color3.new(255,255,255)
  458. f6l.BorderSizePixel = 0
  459. f6l.Size = UDim2.new(1,0,1,0)
  460. f6l.Text = "Energy"
  461.  
  462.  
  463.  
  464. --BLOCK
  465. f9 = Instance.new("Frame",f)
  466. f9.BorderSizePixel = 0
  467. f9.BackgroundColor3 = Color3.new(255,255,255)
  468. f9.Size = UDim2.new(0.62,0,0.03,0)
  469. f9.Position = UDim2.new(.2,0,.96,0)
  470.  
  471. f9f = Instance.new("Frame",f9)
  472. f9f.BorderSizePixel = 0
  473. f9f.BackgroundColor3 = BrickColor.new("Forest green").Color
  474. f9f.Size = UDim2.new(1,0,1,0)
  475.  
  476. f9l = Instance.new("TextLabel",f9)
  477. f9l.TextScaled = true
  478. f9l.TextStrokeTransparency = 0
  479. f9l.BackgroundTransparency = 1
  480. f9l.TextColor3 = Color3.new(255,255,255)
  481. f9l.BorderSizePixel = 0
  482. f9l.Size = UDim2.new(1,0,1,0)
  483. f9l.Text = "Block"
  484.  
  485. ------------ATK
  486. fa = Instance.new("TextLabel",f)
  487. fa.TextScaled = true
  488. fa.TextStrokeTransparency = 0
  489. fa.BackgroundTransparency = .5
  490. fa.BackgroundColor3 = Color3.new(0,0,0)
  491. fa.TextColor3 = Color3.new(255,0,0)
  492. fa.BorderSizePixel = 0
  493. fa.Size = UDim2.new(.2,0,0.05,0)
  494. fa.Position = UDim2.new(0.2,0,0.74,0)
  495. fa.Text = "Attack : 1"
  496. ------------SPD
  497. fa2 = Instance.new("TextLabel",f)
  498. fa2.TextScaled = true
  499. fa2.TextStrokeTransparency = 0
  500. fa2.BackgroundTransparency = .5
  501. fa2.BackgroundColor3 = Color3.new(0,0,0)
  502. fa2.TextColor3 = Color3.new(0,255,0)
  503. fa2.BorderSizePixel = 0
  504. fa2.Size = UDim2.new(.2,0,0.05,0)
  505. fa2.Position = UDim2.new(0.41,0,0.74,0)
  506. fa2.Text = "Speed : 1"
  507. ------------DEF
  508. fa3 = Instance.new("TextLabel",f)
  509. fa3.TextScaled = true
  510. fa3.TextStrokeTransparency = 0
  511. fa3.BackgroundTransparency = .5
  512. fa3.BackgroundColor3 = Color3.new(0,0,0)
  513. fa3.TextColor3 = Color3.new(0,0,255)
  514. fa3.BorderSizePixel = 0
  515. fa3.Size = UDim2.new(.2,0,0.05,0)
  516. fa3.Position = UDim2.new(0.62,0,0.74,0)
  517. fa3.Text = "Defense : 1"
  518. -------------------CLASS VARS--------------------------
  519. S1 = true
  520. S1T = 0
  521. S1TF = 7
  522. S2 = true
  523. S2T = 0
  524. S2TF = 15
  525. S3 = true
  526. S3T = 0
  527. S3TF = 12
  528. S4 = true
  529. S4T = 0
  530. S4TF = 30
  531. energy = 0
  532. ------------------------------------EXTRA WELDS AREA ------------------------------------
  533.  
  534.  
  535.  
  536.  
  537.  
  538. ----EQUIP FUNCTION
  539. local Close1 = CFrame.new(1.5,0,0)
  540. local Close2 = CFrame.new(-1.5,0,0)
  541. local Speed = 0.3
  542. local Open4 = w4.C0 * CFrame.new(0,.5,0) * CFrame.Angles(0,0,math.rad(-30))
  543. local h1 = nc.C0 * CFrame.Angles(math.rad(20),math.rad(-30),0)
  544. local h2 = CFrame.new(0,1.5,0)
  545. local h3 = nc.C0 * CFrame.Angles(math.rad(-20),math.rad(30),0)
  546. --leg anims
  547. local opend = false
  548. local current = true
  549.  
  550.  
  551.  
  552.  
  553. ---------------------------------------------------------------------------------------
  554. ----DAMAGE UI N DMG
  555. local DGU = function(p,txt)
  556. s2:Play()
  557. local par = Instance.new("Part",game.Workspace)
  558. par.Transparency = 1
  559. par.Anchored = true
  560. par.CFrame = p.CFrame
  561. par.CanCollide = false
  562. game.Debris:AddItem(par,10)
  563. local f = Instance.new("BillboardGui",par)
  564. f.Size = UDim2.new(1.2,0,1.2,0)
  565. f.AlwaysOnTop = true
  566. f.StudsOffset = Vector3.new(0,2,0)
  567. local fr = Instance.new("Frame",f)
  568. fr.BackgroundTransparency = 1
  569. fr.Size = UDim2.new(1,0,1,0)
  570. fr.ClipsDescendants = true
  571. local fe = Instance.new("TextLabel",fr)
  572. fe.Size = UDim2.new(1,0,1,0)
  573. fe.BackgroundTransparency = 1
  574. fe.TextColor3 = BrickColor.new("Bright yellow").Color
  575. fe.TextStrokeTransparency = 0
  576. fe.Text = txt
  577. fe.TextScaled = true
  578. fe.Font = "Legacy"
  579. fe.Position = UDim2.new(0,0,1,0)
  580. fe:TweenPosition(UDim2.new(0,0,0,0),"In","Linear",.5)
  581. wait(2)
  582. fe:TweenPosition(UDim2.new(0,0,-1,0),"In","Linear",.4)
  583. for i = 0,10 do
  584. wait()
  585. fe.TextTransparency = fe.TextTransparency + .1
  586. end
  587. end
  588.  
  589.  
  590.  
  591. makeui = function(color,txt)
  592. local par = Instance.new("Part",game.Workspace)
  593. par.Transparency = 1
  594. par.Anchored = true
  595. par.CFrame = char.Head.CFrame
  596. par.CanCollide = false
  597. game.Debris:AddItem(par,10)
  598. local f = Instance.new("BillboardGui",par)
  599. f.Size = UDim2.new(1.2,0,1.2,0)
  600. f.AlwaysOnTop = true
  601. f.StudsOffset = Vector3.new(0,4,0)
  602. local fr = Instance.new("Frame",f)
  603. fr.BackgroundTransparency = 1
  604. fr.Size = UDim2.new(2,0,2,0)
  605. fr.ClipsDescendants = true
  606. local fe = Instance.new("TextLabel",fr)
  607. fe.Size = UDim2.new(1,0,1,0)
  608. fe.BackgroundTransparency = 1
  609. fe.TextColor3 = Color3.new(255,255,255)
  610. fe.TextStrokeTransparency = 0
  611. fe.Text = txt
  612. fe.TextScaled = true
  613. fe.Font = "SourceSansBold"
  614. game.Debris:AddItem(f,4)
  615. fe.Position = UDim2.new(0,0,1,0)
  616. fe:TweenPosition(UDim2.new(0,0,0,0),"In","Linear",.5)
  617. wait(2)
  618. fe:TweenPosition(UDim2.new(0,0,-1,0),"In","Linear",.4)
  619. for i = 0,10 do
  620. wait()
  621. fe.TextTransparency = fe.TextTransparency + .1
  622. end
  623. end
  624. ----TARG
  625. local TARG1
  626. local TARG2
  627. local TARG3
  628. local TARG4
  629. local TARG5
  630. local TARG6
  631. local IdleAndWalk = false
  632.  
  633.  
  634.  
  635. turnonwelds()
  636. opend = true
  637.  
  638. --------------SKILL/KEY EVENTS
  639. --------------MOUSE EVENTS , ATTACKS
  640. local wpb = true
  641. local num = 1
  642. mouse.Button1Down:connect(function()
  643. if current == true and idleq == false and opend == true and wpb == true and stun.Value == false and bl.Value == false then
  644. local fs
  645.  
  646. if num == 1 then
  647. wpb = false
  648. current = false
  649. fr = true
  650. char["Right Arm"].Touched:connect(function(hit)
  651. if not fr then return end
  652. if hit.Parent:FindFirstChild("Defense")then
  653. fs = math.floor(math.random(5,11) * atk.Value / hit.Parent:FindFirstChild("Defense").Value)
  654. else
  655. fs = math.floor(math.random(5,11) * atk.Value)
  656. end
  657.  
  658. if hit.Parent.Name ~= player.Name and hit.Parent:FindFirstChild("Humanoid") and fr == true then
  659. fr = false
  660. if hit.Parent:FindFirstChild("Blocking")then
  661. if hit.Parent:FindFirstChild("Blocking").Value == true then
  662. hit.Parent.PauseBlock.Value = true wait() wait() hit.Parent.BlockingLeft.Value = 5 wait() wait() hit.Parent.PauseBlock.Value = false
  663. hit.Parent.BlockingLabel.Value = true
  664. stun.Value = true
  665. else
  666. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fs
  667. DGU(hit,fs)
  668. fr = false
  669. end
  670. else
  671. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fs
  672. DGU(hit,fs)
  673. fr = false
  674. end
  675. --
  676. end
  677. end)
  678. s1.Pitch = 1
  679. s1:Play()
  680. wait(.1)
  681. TARG1 = PA1[5]
  682. TARG2 = PA1[6]
  683. TARG3 = PA1[4]
  684. TARG4 = PA1[3]
  685. TARG5 = PA1[2]
  686. TARG6 = PA1[1]
  687. wait(.1)
  688. TARG1 = PA1[5]
  689. TARG2 = PA1[6]
  690. TARG3 = PA1[4]
  691. TARG4 = PA1[3]
  692. TARG5 = PA1[2]
  693. TARG6 = PA1[1]
  694. wait(.1)
  695. TARG1 = PA1[5]
  696. TARG2 = PA1[6]
  697. TARG3 = PA1[4]
  698. TARG4 = PA1[3]
  699. TARG5 = PA1[2]
  700. TARG6 = PA1[1]
  701. wait(.1)
  702. TARG1 = PA1[5]
  703. TARG2 = PA1[6]
  704. TARG3 = PA1[4]
  705. TARG4 = PA1[3]
  706. TARG5 = PA1[2]
  707. TARG6 = PA1[1]
  708. wait(.2)
  709. current = true
  710. fr = false
  711. wait(.1)
  712. wpb = true
  713. num = num +1
  714. return
  715. end
  716. if num == 2 then
  717. wpb = false
  718. current = false
  719. fr = true
  720. char["Left Arm"].Touched:connect(function(hit)
  721. if not fr then return end
  722. if hit.Parent:FindFirstChild("Defense")then
  723. fs = math.floor(math.random(5,11) * atk.Value / hit.Parent:FindFirstChild("Defense").Value)
  724. else
  725. fs = math.floor(math.random(5,11) * atk.Value)
  726. end
  727. if hit.Parent.Name ~= player.Name and hit.Parent:FindFirstChild("Humanoid") and fr == true then
  728. fr = false
  729. if hit.Parent:FindFirstChild("Blocking")then
  730. if hit.Parent:FindFirstChild("Blocking").Value == true then
  731. hit.Parent.PauseBlock.Value = true wait() hit.Parent.BlockingLeft.Value = 5 wait() hit.Parent.PauseBlock.Value = true
  732. hit.Parent.BlockingLabel.Value = true
  733. stun.Value = true
  734. else
  735. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fs
  736. DGU(hit,fs)
  737. fr = false
  738. end
  739. else
  740. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fs
  741. DGU(hit,fs)
  742. fr = false
  743. end
  744. end
  745. end)
  746. s1.Pitch = 1.2
  747. s1:Play()
  748. wait(.1)
  749. TARG1 = PA2[6]
  750. TARG2 = PA2[5]
  751. TARG3 = PA2[4]
  752. TARG4 = PA2[3]
  753. TARG5 = PA2[2]
  754. TARG6 = PA2[1]
  755. wait(.1)
  756. TARG1 = PA2[6]
  757. TARG2 = PA2[5]
  758. TARG3 = PA2[4]
  759. TARG4 = PA2[3]
  760. TARG5 = PA2[2]
  761. TARG6 = PA2[1]
  762. wait(.1)
  763. TARG1 = PA2[6]
  764. TARG2 = PA2[5]
  765. TARG3 = PA2[4]
  766. TARG4 = PA2[3]
  767. TARG5 = PA2[2]
  768. TARG6 = PA2[1]
  769. wait(.1)
  770. TARG1 = PA2[6]
  771. TARG2 = PA2[5]
  772. TARG3 = PA2[4]
  773. TARG4 = PA2[3]
  774. TARG5 = PA2[2]
  775. TARG6 = PA2[1]
  776. wait(.2)
  777. current = true
  778. fr = false
  779. wait(.1)
  780. wpb = true
  781. num = num + 1
  782. return
  783. end
  784. if num == 3 then
  785. wpb = false
  786. current = false
  787. fr = true
  788. char["Right Leg"].Touched:connect(function(hit)
  789. if not fr then return end
  790. if hit.Parent:FindFirstChild("Defense")then
  791. fs = math.floor(math.random(5,11) * atk.Value / hit.Parent:FindFirstChild("Defense").Value)
  792. else
  793. fs = math.floor(math.random(5,11) * atk.Value)
  794. end
  795. if hit.Parent.Name ~= player.Name and hit.Parent:FindFirstChild("Humanoid") and fr == true then
  796. fr = false
  797. if hit.Parent:FindFirstChild("Blocking")then
  798. if hit.Parent:FindFirstChild("Blocking").Value == true then
  799. hit.Parent.PauseBlock.Value = true wait() hit.Parent.BlockingLeft.Value = 5 wait() hit.Parent.PauseBlock.Value = true
  800. hit.Parent.BlockingLabel.Value = true
  801. stun.Value = true
  802. else
  803. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fs
  804. DGU(hit,fs)
  805. fr = false
  806. end
  807. else
  808. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fs
  809. DGU(hit,fs)
  810. fr = false
  811. end
  812. --
  813. end
  814. end)
  815. s1.Pitch = 1.35
  816. s1:Play()
  817. wait(.1)
  818. TARG1 = PA3[3]
  819. TARG2 = PA3[4]
  820. TARG3 = PA3[2]
  821. TARG4 = PA3[6]
  822. TARG5 = PA3[5]
  823. TARG6 = PA3[1]
  824. wait(.1)
  825. TARG1 = PA3[3]
  826. TARG2 = PA3[4]
  827. TARG3 = PA3[2]
  828. TARG4 = PA3[6]
  829. TARG5 = PA3[5]
  830. TARG6 = PA3[1]
  831. wait(.1)
  832. TARG1 = PA3[3]
  833. TARG2 = PA3[4]
  834. TARG3 = PA3[2]
  835. TARG4 = PA3[6]
  836. TARG5 = PA3[5]
  837. TARG6 = PA3[1]
  838. wait(.1)
  839. TARG1 = PA3[3]
  840. TARG2 = PA3[4]
  841. TARG3 = PA3[2]
  842. TARG4 = PA3[6]
  843. TARG5 = PA3[5]
  844. TARG6 = PA3[1]
  845. wait(.2)
  846. current = true
  847. fr = false
  848. wait(.1)
  849. wpb = true
  850. num = num +1
  851. return
  852. end
  853. if num == 4 then
  854. wpb = false
  855. current = false
  856. fr = true
  857. char["Left Leg"].Touched:connect(function(hit)
  858. if not fr then return end
  859. if hit.Parent:FindFirstChild("Defense")then
  860. fs = math.floor(math.random(7,15) * atk.Value / hit.Parent:FindFirstChild("Defense").Value)
  861. else
  862. fs = math.floor(math.random(7,15) * atk.Value)
  863. end
  864. if hit.Parent.Name ~= player.Name and hit.Parent:FindFirstChild("Humanoid") and fr == true then
  865. fr = false
  866. if hit.Parent:FindFirstChild("Blocking")then
  867. if hit.Parent:FindFirstChild("Blocking").Value == true then
  868. hit.Parent.PauseBlock.Value = true wait() hit.Parent.BlockingLeft.Value = 5 wait() hit.Parent.PauseBlock.Value = true
  869. hit.Parent.BlockingLabel.Value = true
  870. stun.Value = true
  871. else
  872. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fs
  873. DGU(hit,fs)
  874. fr = false
  875. end
  876. else
  877. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fs
  878. DGU(hit,fs)
  879. fr = false
  880. end
  881. --
  882. end
  883. end)
  884. s1.Pitch = .8
  885. s1:Play()
  886. wait(.1)
  887. TARG1 = PA4[4]
  888. TARG2 = PA4[3]
  889. TARG3 = PA4[2]
  890. TARG4 = PA4[6]
  891. TARG5 = PA4[5]
  892. TARG6 = PA4[1]
  893. wait(.1)
  894. TARG1 = PA4[4]
  895. TARG2 = PA4[3]
  896. TARG3 = PA4[2]
  897. TARG4 = PA4[6]
  898. TARG5 = PA4[5]
  899. TARG6 = PA4[1]
  900. wait(.1)
  901. TARG1 = PA4[4]
  902. TARG2 = PA4[3]
  903. TARG3 = PA4[2]
  904. TARG4 = PA4[6]
  905. TARG5 = PA4[5]
  906. TARG6 = PA4[1]
  907. wait(.1)
  908. TARG1 = PA4[4]
  909. TARG2 = PA4[3]
  910. TARG3 = PA4[2]
  911. TARG4 = PA4[6]
  912. TARG5 = PA4[5]
  913. TARG6 = PA4[1]
  914. wait(.2)
  915. current = true
  916. fr = false
  917. wait(.1)
  918. wpb = true
  919. num = 1
  920. return
  921. end
  922. end
  923. end)
  924. local rtb = true
  925. mouse.KeyDown:connect(function(key)key = key:lower()
  926. if key == "e" then
  927. if current == true and opend == true and stun.Value == false and blt.Value > 20 and rtb == true then
  928. local sub
  929. if bl.Value == false then
  930. rtb = false
  931. bl.Value = true
  932. skl = true
  933. TARG1 = block[5]
  934. TARG2 = block[6]
  935. TARG3 = block[2]
  936. TARG4 = block[4]
  937. TARG5 = block[3]
  938. TARG6 = block[1]
  939. wait(.05)
  940. TARG1 = block[5]
  941. TARG2 = block[6]
  942. TARG3 = block[2]
  943. TARG4 = block[4]
  944. TARG5 = block[3]
  945. TARG6 = block[1]
  946. wait(.05)
  947. TARG1 = block[5]
  948. TARG2 = block[6]
  949. TARG3 = block[2]
  950. TARG4 = block[4]
  951. TARG5 = block[3]
  952. TARG6 = block[1]
  953. wait(.05)
  954. TARG1 = block[5]
  955. TARG2 = block[6]
  956. TARG3 = block[2]
  957. TARG4 = block[4]
  958. TARG5 = block[3]
  959. TARG6 = block[1]
  960. wait(.05)
  961. bl.Value = true
  962. skl = true
  963. char.Humanoid.WalkSpeed = 5
  964. wait(1)
  965. rtb = true
  966. else
  967. rtb = false
  968. skl = false
  969. bl.Value = false
  970. current = true
  971. wait(1)
  972. rtb = true
  973. end
  974. end
  975. end
  976. end)
  977. mouse.KeyDown:connect(function(key)key = key:lower()
  978. if key == "z" then
  979. if current == true and opend == true and stun.Value == false and energy > 19 and S1 == true then
  980. energy = energy - 20
  981. S1T = 0
  982. current = false
  983. local num = 0
  984. repeat
  985. fr = true
  986. local fs
  987. s1.Pitch = 1.2
  988. s1:Play()
  989. char["Right Arm"].Touched:connect(function(hit)
  990. if not fr then return end
  991. if hit.Parent.Name == player.Name then return end
  992. if hit.Parent:FindFirstChild("Defense") and hit.Parent.Name ~= player.Name then
  993.  
  994.  
  995. hit.Parent:FindFirstChild("Defense").Value = hit.Parent:FindFirstChild("Defense").Value -.02
  996. fs = math.floor(2 * atk.Value / hit.Parent:FindFirstChild("Defense").Value)
  997.  
  998.  
  999. else
  1000. fs = math.floor(2 * atk.Value)
  1001. end
  1002. if hit.Parent.Name ~= player.Name and hit.Parent:FindFirstChild("Humanoid") and fr == true then
  1003. fr = false
  1004. if hit.Parent:FindFirstChild("Blocking")then
  1005. if hit.Parent:FindFirstChild("Blocking").Value == true then
  1006. hit.Parent.PauseBlock.Value = true wait() hit.Parent.BlockingLeft.Value = 5 wait() hit.Parent.PauseBlock.Value = true
  1007. hit.Parent.BlockingLabel.Value = true
  1008. stun.Value = true
  1009. else
  1010. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fs
  1011. DGU(hit,fs)
  1012. fr = false
  1013. end
  1014. else
  1015. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fs
  1016. DGU(hit,fs)
  1017. fr = false
  1018. end
  1019. --
  1020. end
  1021. end)
  1022. TARG1 = PA1[5]
  1023. TARG2 = PA1[6]
  1024. TARG3 = PA1[4]
  1025. TARG4 = PA1[3]
  1026. TARG5 = PA1[2]
  1027. TARG6 = PA1[1]
  1028. wait(.11)
  1029. fr = false
  1030. wait(.11)
  1031. fr = true
  1032. local fs
  1033. s1.Pitch = 1.2
  1034. s1:Play()
  1035. char["Left Arm"].Touched:connect(function(hit)
  1036. if not fr then return end
  1037. if hit.Parent.Name == player.Name then return end
  1038. if hit.Parent:FindFirstChild("Defense")and hit.Parent.Name ~= player.Name then
  1039. hit.Parent:FindFirstChild("Defense").Value = hit.Parent:FindFirstChild("Defense").Value -.02
  1040. fs = math.floor(2 * atk.Value / hit.Parent:FindFirstChild("Defense").Value)
  1041. else
  1042. fs = math.floor(2 * atk.Value)
  1043. end
  1044. if hit.Parent.Name ~= player.Name and hit.Parent:FindFirstChild("Humanoid") and fr == true then
  1045. fr = false
  1046. if hit.Parent:FindFirstChild("Blocking")then
  1047. if hit.Parent:FindFirstChild("Blocking").Value == true then
  1048. hit.Parent.PauseBlock.Value = true wait() hit.Parent.BlockingLeft.Value = 5 wait() hit.Parent.PauseBlock.Value = true
  1049. hit.Parent.BlockingLabel.Value = true
  1050. stun.Value = true
  1051. else
  1052. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fs
  1053. DGU(hit,fs)
  1054. fr = false
  1055. end
  1056. else
  1057. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fs
  1058. DGU(hit,fs)
  1059. fr = false
  1060. end
  1061. --
  1062. end
  1063. end)
  1064. TARG1 = PA1C[5]
  1065. TARG2 = PA1C[6]
  1066. TARG3 = PA1C[4]
  1067. TARG4 = PA1C[3]
  1068. TARG5 = PA1C[2]
  1069. TARG6 = PA1C[1]
  1070. wait(.11)
  1071. fr = false
  1072. wait(.11)
  1073. num = num + 2
  1074. until num == 10
  1075. current = true
  1076. wait(3)
  1077. end
  1078. end
  1079. end)
  1080. --- KEYDOWN 2
  1081. mouse.KeyDown:connect(function(key)key = key:lower()
  1082. if key == "x" then
  1083. if current == true and opend == true and stun.Value == false and energy > 24 and S2 == true then
  1084. energy = energy - 25
  1085. S2T = 0
  1086. skl = true
  1087. char.Humanoid.WalkSpeed = 0
  1088. f = Instance.new("Part",game.Workspace)
  1089. f.Position = char.Torso.Position + Vector3.new(0, -2, -12)
  1090. f.CanCollide = false
  1091. f.Transparency = 1
  1092. local asdf
  1093. local cf
  1094. f.Touched:connect(function(hit)
  1095. if hit.Parent:FindFirstChild("Humanoid") then
  1096. else
  1097. cf = f.CFrame
  1098. asdf = hit.BrickColor
  1099. end
  1100. end)
  1101. current = false
  1102. TARG1 = Stomp[5]
  1103. TARG2 = Stomp[6]
  1104. TARG3 = Stomp[2]
  1105. TARG4 = Stomp[4]
  1106. TARG5 = Stomp[3]
  1107. TARG6 = Stomp[1]
  1108. wait(.05)
  1109. TARG1 = Stomp[5]
  1110. TARG2 = Stomp[6]
  1111. TARG3 = Stomp[2]
  1112. TARG4 = Stomp[4]
  1113. TARG5 = Stomp[3]
  1114. TARG6 = Stomp[1]
  1115. wait(.05)
  1116. TARG1 = Stomp[5]
  1117. TARG2 = Stomp[6]
  1118. TARG3 = Stomp[2]
  1119. TARG4 = Stomp[4]
  1120. TARG5 = Stomp[3]
  1121. TARG6 = Stomp[1]
  1122. wait(.05)
  1123. TARG1 = Stomp[5]
  1124. TARG2 = Stomp[6]
  1125. TARG3 = Stomp[2]
  1126. TARG4 = Stomp[4]
  1127. TARG5 = Stomp[3]
  1128. TARG6 = Stomp[1]
  1129. wait(.05)
  1130. TARG1 = Stomp[5]
  1131. TARG2 = Stomp[6]
  1132. TARG3 = Stomp[2]
  1133. TARG4 = Stomp[4]
  1134. TARG5 = Stomp[3]
  1135. TARG6 = Stomp[1]
  1136. wait(.05)
  1137. TARG1 = Stomp2[5]
  1138. TARG2 = Stomp2[6]
  1139. TARG3 = Stomp2[2]
  1140. TARG4 = Stomp2[4]
  1141. TARG5 = Stomp2[3]
  1142. TARG6 = Stomp2[1]
  1143. wait(.05)
  1144. TARG1 = Stomp2[5]
  1145. TARG2 = Stomp2[6]
  1146. TARG3 = Stomp2[2]
  1147. TARG4 = Stomp2[4]
  1148. TARG5 = Stomp2[3]
  1149. TARG6 = Stomp2[1]
  1150. wait(.05)
  1151. TARG1 = Stomp2[5]
  1152. TARG2 = Stomp2[6]
  1153. TARG3 = Stomp2[2]
  1154. TARG4 = Stomp2[4]
  1155. TARG5 = Stomp2[3]
  1156. TARG6 = Stomp2[1]
  1157. wait(.05)
  1158. TARG1 = Stomp2[5]
  1159. TARG2 = Stomp2[6]
  1160. TARG3 = Stomp2[2]
  1161. TARG4 = Stomp2[4]
  1162. TARG5 = Stomp2[3]
  1163. TARG6 = Stomp2[1]
  1164. wait(.05)
  1165. local fs = Instance.new("Part",char)
  1166. fs.BrickColor = asdf
  1167. fs.Size = Vector3.new(1,1,1)
  1168. fs.CanCollide = false
  1169. fs.Anchored = true
  1170. fs.Transparency = 1
  1171. fs.CFrame = char.Torso.CFrame * CFrame.new(0,-2.5,0)
  1172. obj2 = fs
  1173. TARG8 = Vector3.new(50,5,50)
  1174.  
  1175. fs.Touched:connect(function(hit)
  1176. if dmg == true and hit.Parent:FindFirstChild("Humanoid") then
  1177. if hit.Parent:FindFirstChild("Humanoid").Health ~= 0 and hit.Parent.Name ~= player.Name then
  1178. if hit.Parent:FindFirstChild("Speed")then
  1179. hit.Parent:FindFirstChild("Speed").Value = hit.Parent:FindFirstChild("Speed").Value -.1
  1180. hit.Parent:FindFirstChild("Speed").Value = hit.Parent:FindFirstChild("Speed").Value -.1
  1181. --- I made it do that so this would stick for 12 Seconds ~ Thats how the stats work
  1182. local fx = math.floor(12 * atk.Value / hit.Parent:FindFirstChild("Defense").Value)
  1183. dmg = false
  1184. if hit.Parent:FindFirstChild("Blocking")then
  1185. if hit.Parent:FindFirstChild("Blocking").Value == true then
  1186. hit.Parent.PauseBlock.Value = true wait() hit.Parent.BlockingLeft.Value = 5 wait() hit.Parent.PauseBlock.Value = true
  1187. hit.Parent.BlockingLabel.Value = true
  1188. stun.Value = true
  1189. else
  1190. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fx
  1191. DGU(hit,fx)
  1192. fr = false
  1193. end
  1194. else
  1195. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fx
  1196. DGU(hit,fx)
  1197. fr = false
  1198. end
  1199. else
  1200. local fx = math.floor(12 * atk.Value)
  1201. dmg = false
  1202. if hit.Parent:FindFirstChild("Blocking")then
  1203. if hit.Parent:FindFirstChild("Blocking").Value == true then
  1204. hit.Parent.PauseBlock.Value = true wait() hit.Parent.BlockingLeft.Value = 5 wait() hit.Parent.PauseBlock.Value = true
  1205. hit.Parent.BlockingLabel.Value = true
  1206. stun.Value = true
  1207. else
  1208. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fx
  1209. DGU(hit,fx)
  1210. fr = false
  1211. end
  1212. else
  1213. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fx
  1214. DGU(hit,fx)
  1215. fr = false
  1216. end
  1217. end
  1218. end
  1219. end
  1220. end)--]]
  1221. wait(.3)
  1222.  
  1223. game.Debris:AddItem(fr,8)
  1224. game.Debris:AddItem(fs,8)
  1225. skl = false
  1226. current = true
  1227. for i = 1,10 do
  1228. wait()
  1229. fr.Transparency = fr.Transparency + .1
  1230. end
  1231. wait(.4)
  1232. dmg = false
  1233. wait(3)
  1234. end
  1235. end
  1236. end)
  1237.  
  1238.  
  1239.  
  1240. mouse.KeyDown:connect(function(key)key = key:lower()
  1241. if key == "c" then
  1242. if current == true and opend == true and stun.Value == false and energy > 34 and S3 == true then
  1243. energy = energy - 35
  1244. S3T = 0
  1245. current = false
  1246. TARG1 = dropkick[5]
  1247. TARG2 = dropkick[6]
  1248. TARG3 = dropkick[2]
  1249. TARG4 = dropkick[4]
  1250. TARG5 = dropkick[3]
  1251. TARG6 = dropkick[1]
  1252. wait(.05)
  1253. TARG1 = dropkick[5]
  1254. TARG2 = dropkick[6]
  1255. TARG3 = dropkick[2]
  1256. TARG4 = dropkick[4]
  1257. TARG5 = dropkick[3]
  1258. TARG6 = dropkick[1]
  1259. wait(.05)
  1260. TARG1 = dropkick[5]
  1261. TARG2 = dropkick[6]
  1262. TARG3 = dropkick[2]
  1263. TARG4 = dropkick[4]
  1264. TARG5 = dropkick[3]
  1265. TARG6 = dropkick[1]
  1266. wait(.05)
  1267. TARG1 = dropkick[5]
  1268. TARG2 = dropkick[6]
  1269. TARG3 = dropkick[2]
  1270. TARG4 = dropkick[4]
  1271. TARG5 = dropkick[3]
  1272. TARG6 = dropkick[1]
  1273. wait(.05)
  1274. local dmg = true
  1275. char["Right Leg"].Touched:connect(function(hit)
  1276. if dmg == true and hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name then
  1277. local fn = Instance.new("Part",char)
  1278. fn.BrickColor = BrickColor.new("Medium stone grey")
  1279. fn.Size = Vector3.new(1,1,1)
  1280. fn.CanCollide = false
  1281. fn.Anchored = true
  1282. s2.Pitch = .9
  1283. s2:Play()
  1284. game.Debris:AddItem(fn,8)
  1285. fn.CFrame = char.Torso.CFrame * CFrame.new(0,-2.5,0)
  1286. local fms = Instance.new("SpecialMesh",fn)
  1287. fms.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1288. fms.Scale = Vector3.new(1,1,6)
  1289. TARG7 = Vector3.new(10,5,10)
  1290. obj = fms
  1291. if hit.Parent:FindFirstChild("Humanoid").Health ~= 0 and hit.Parent.Name ~= player.Name then
  1292. if hit.Parent:FindFirstChild("Stunned")then
  1293. hit.Parent:FindFirstChild("Stunned").Value = true
  1294. --- I made it do that so this would stick for 12 Seconds ~ Thats how the stats work
  1295. local fx = math.floor(13 * atk.Value / hit.Parent:FindFirstChild("Defense").Value)
  1296. dmg = false
  1297. --[[
  1298. if hit.Parent.Name ~= player.Name and hit.Parent:FindFirstChild("Humanoid") and fr == true then
  1299. fr = false
  1300. if hit.Parent:FindFirstChild("Blocking")then
  1301. if hit.Parent:FindFirstChild("Blocking").Value == true then
  1302. hit.Parent.PauseBlock.Value = true wait() hit.Parent.BlockingLeft.Value = 5 wait() hit.Parent.PauseBlock.Value = true
  1303. hit.Parent.BlockingLabel.Value = true
  1304. else
  1305. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fx
  1306. DGU(hit,fx)
  1307. fr = false
  1308. end
  1309. else
  1310. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fx
  1311. DGU(hit,fx)
  1312. fr = false
  1313. end
  1314. --
  1315. end
  1316. --]]
  1317. if hit.Parent:FindFirstChild("Blocking")then
  1318. if hit.Parent:FindFirstChild("Blocking").Value == true then
  1319. hit.Parent.PauseBlock.Value = true wait() hit.Parent.BlockingLeft.Value = 5 wait() hit.Parent.PauseBlock.Value = true
  1320. hit.Parent.BlockingLabel.Value = true
  1321. stun.Value = true
  1322. else
  1323. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fx
  1324. DGU(hit,fx)
  1325. fr = false
  1326. end
  1327. else
  1328. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fx
  1329. DGU(hit,fx)
  1330. fr = false
  1331. end
  1332. else
  1333. local fx = math.floor(13 * atk.Value)
  1334. dmg = false
  1335. if hit.Parent:FindFirstChild("Blocking")then
  1336. if hit.Parent:FindFirstChild("Blocking").Value == true then
  1337. hit.Parent.PauseBlock.Value = true wait() hit.Parent.BlockingLeft.Value = 5 wait() hit.Parent.PauseBlock.Value = true
  1338. hit.Parent.BlockingLabel.Value = true
  1339. stun.Value = true
  1340. else
  1341. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fx
  1342. DGU(hit,fx)
  1343. fr = false
  1344. end
  1345. else
  1346. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fx
  1347. DGU(hit,fx)
  1348. fr = false
  1349. end
  1350. end
  1351. end
  1352.  
  1353. for i = 1,10 do
  1354. wait()
  1355. fn.Transparency = fn.Transparency + .1
  1356. end
  1357. end
  1358. end)--]]
  1359. wait(.1)
  1360. skl = false
  1361. current = true
  1362. wait(.2)
  1363. dmg = false
  1364. wait(3)
  1365. end
  1366. end
  1367. end)
  1368.  
  1369.  
  1370.  
  1371.  
  1372. mouse.KeyDown:connect(function(key)key = key:lower()
  1373. if key == "v" then
  1374. if current == true and opend == true and stun.Value == false and energy > 49 and S4 == true then
  1375. current = false
  1376. wait(0.05)
  1377. skl = true
  1378. local dmg = true
  1379. S4T = 0
  1380. char.Humanoid.WalkSpeed = 22
  1381. char.Humanoid.JumpPower = 0
  1382. energy = energy - 59
  1383. wait()
  1384. TARG1 = sjump[5] -- LEFT ARM
  1385. TARG2 = sjump[6]-- RIGHT ARM
  1386. TARG3 = sjump[2] -- NECK
  1387. TARG4 = sjump[3] -- RIGHT LEG
  1388. TARG5 = sjump[4] -- LEFT LEG
  1389. TARG6 = sjump[1] -- TORSO
  1390. wait(0.05)
  1391. TARG1 = sjump[5] -- LEFT ARM
  1392. TARG2 = sjump[6]-- RIGHT ARM
  1393. TARG3 = sjump[2] -- NECK
  1394. TARG4 = sjump[3] -- RIGHT LEG
  1395. TARG5 = sjump[4] -- LEFT LEG
  1396. TARG6 = sjump[1] -- TORSO
  1397. wait(0.05)
  1398. TARG1 = sjump[5] -- LEFT ARM
  1399. TARG2 = sjump[6]-- RIGHT ARM
  1400. TARG3 = sjump[2] -- NECK
  1401. TARG4 = sjump[3] -- RIGHT LEG
  1402. TARG5 = sjump[4] -- LEFT LEG
  1403. TARG6 = sjump[1] -- TORSO
  1404. wait(0.05)
  1405. TARG1 = sjump[5] -- LEFT ARM
  1406. TARG2 = sjump[6]-- RIGHT ARM
  1407. TARG3 = sjump[2] -- NECK
  1408. TARG4 = sjump[3] -- RIGHT LEG
  1409. TARG5 = sjump[4] -- LEFT LEG
  1410. TARG6 = sjump[1] -- TORSO
  1411. wait(0.05)
  1412.  
  1413. wait(.5)
  1414. char.Humanoid.JumpPower = 200
  1415. char.Humanoid.Jump = true
  1416.  
  1417. TARG1 = jump[3] -- LEFT ARM
  1418. TARG2 = jump[2]-- RIGHT ARM
  1419. TARG3 = jump[1] -- NECK
  1420. TARG4 = jump[5] -- RIGHT LEG
  1421. TARG5 = jump[4] -- LEFT LEG
  1422. TARG6 = CFrame.new(0,0,0)
  1423. wait(0.05)
  1424.  
  1425. TARG1 = jump[3] -- LEFT ARM
  1426. TARG2 = jump[2]-- RIGHT ARM
  1427. TARG3 = jump[1] -- NECK
  1428. TARG4 = jump[5] -- RIGHT LEG
  1429. TARG5 = jump[4] -- LEFT LEG
  1430. TARG6 = CFrame.new(0,0,0)
  1431. wait(0.05)
  1432.  
  1433. wait(1)
  1434. local r = Instance.new("Part",char)
  1435. r.Size = Vector3.new(2,2,2)
  1436. game.Debris:AddItem(r,5)
  1437. r.CanCollide = false
  1438. r.Transparency = 1
  1439. r.Position = char.Torso.CFrame.p
  1440. local w = Instance.new("Weld",char)
  1441. w.Part0 = char.Torso
  1442. w.Part1 = r
  1443. w.C0 = CFrame.new(0,4,0)
  1444. r.Anchored = false
  1445. r.Touched:connect(function(hit)
  1446. r:remove()
  1447.  
  1448. local fs = Instance.new("Part",char)
  1449. fs.BrickColor = hit.BrickColor
  1450. fs.Size = Vector3.new(1,1,1)
  1451. fs.CanCollide = false
  1452. fs.Anchored = true
  1453. fs.Transparency = 1
  1454. fs.CFrame = char.Torso.CFrame * CFrame.new(0,0,0)
  1455. local fr = Instance.new("Part",char)
  1456. fr.BrickColor = hit.BrickColor
  1457. fr.Size = Vector3.new(1,1,1)
  1458. fr.CanCollide = false
  1459. fr.Anchored = true
  1460. fr.CFrame = r.CFrame * CFrame.new(0,-2,0)* CFrame.Angles(math.rad(90),0,0)
  1461. local fms = Instance.new("SpecialMesh",fr)
  1462. fms.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1463. fms.Scale = Vector3.new(1,1,6)
  1464. TARG7 = Vector3.new(90,90,10)
  1465. obj = fms
  1466. obj2 = fs
  1467. TARG8 = Vector3.new(90,5,90)
  1468. local dmg = true
  1469. game.Debris:AddItem(fr,8)
  1470. game.Debris:AddItem(fs,8)
  1471. current = true
  1472. skl = false
  1473. fs.Touched:connect(function(hit)
  1474. if dmg == true and hit.Parent:FindFirstChild("Humanoid") then
  1475. if hit.Parent:FindFirstChild("Humanoid").Health ~= 0 and hit.Parent.Name ~= player.Name then
  1476. if hit.Parent:FindFirstChild("Speed")then
  1477. hit.Parent:FindFirstChild("Speed").Value = hit.Parent:FindFirstChild("Speed").Value -.4
  1478.  
  1479. spd.Value = spd.Value + .1
  1480. --- I made it do that so this would stick for 12 Seconds ~ Thats how the stats work
  1481. local fx = math.floor(15 * atk.Value / hit.Parent:FindFirstChild("Defense").Value)
  1482. dmg = false
  1483. if hit.Parent:FindFirstChild("Blocking")then
  1484. if hit.Parent:FindFirstChild("Blocking").Value == true then
  1485. hit.Parent.PauseBlock.Value = true wait() hit.Parent.BlockingLeft.Value = 5 wait() hit.Parent.PauseBlock.Value = true
  1486. hit.Parent.BlockingLabel.Value = true
  1487. stun.Value = true
  1488. else
  1489. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fx
  1490. DGU(hit,fx)
  1491. fr = false
  1492. end
  1493. else
  1494. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fx
  1495. DGU(hit,fx)
  1496. fr = false
  1497. end
  1498. else
  1499. local fx = math.floor(15 * atk.Value)
  1500. dmg = false
  1501. if hit.Parent:FindFirstChild("Blocking")then
  1502. if hit.Parent:FindFirstChild("Blocking").Value == true then
  1503. hit.Parent.PauseBlock.Value = true wait() hit.Parent.BlockingLeft.Value = 5 wait() hit.Parent.PauseBlock.Value = true
  1504. hit.Parent.BlockingLabel.Value = true
  1505. stun.Value = true
  1506. else
  1507. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fx
  1508. DGU(hit,fx)
  1509. fr = false
  1510. end
  1511. else
  1512. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - fx
  1513. DGU(hit,fx)
  1514. fr = false
  1515. end
  1516. end
  1517. end
  1518. end
  1519. end)--]]
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527. for i = 1,20 do
  1528. wait()
  1529. fr.Transparency = fr.Transparency + .05
  1530. end
  1531. dmg = false
  1532. end)
  1533.  
  1534. TARG1 = UpSideDownPunch[5] -- LEFT ARM
  1535. TARG2 = UpSideDownPunch[6]-- RIGHT ARM
  1536. TARG3 = UpSideDownPunch[2] -- NECK
  1537. TARG4 = UpSideDownPunch[3] -- RIGHT LEG
  1538. TARG5 = UpSideDownPunch[4] -- LEFT LEG
  1539. TARG6 = UpSideDownPunch[1] -- TORSO
  1540. wait(1.6)
  1541. dmg = false
  1542. current = true
  1543. skl = false
  1544. end
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556. end
  1557. end)
  1558. --[[
  1559. --END
  1560. ts.C0 = ts.C0:lerp(UpSideDownPunch[1],.4)
  1561. nc.C0 = nc.C0:lerp(UpSideDownPunch[2],.4)
  1562. ll.C0 = ll.C0:lerp(UpSideDownPunch[3],.4)
  1563. rl.C0 = rl.C0:lerp(UpSideDownPunch[4],.4)
  1564. w3.C0 = w3.C0:lerp(UpSideDownPunch[5],.4)
  1565. w4.C0 = w4.C0:lerp(UpSideDownPunch[6],.4)
  1566. --START
  1567. ts.C0 = ts.C0:lerp(sjump[1],.4)
  1568. nc.C0 = nc.C0:lerp(sjump[2],.4)
  1569. ll.C0 = ll.C0:lerp(sjump[3],.4)
  1570. rl.C0 = rl.C0:lerp(sjump[4],.4)
  1571. w3.C0 = w3.C0:lerp(sjump[5],.4)
  1572. w4.C0 = w4.C0:lerp(sjump[6],.4)
  1573. --OTHER
  1574. TARG1 = walk[8] -- LEFT ARM
  1575. TARG2 = walk[7]-- RIGHT ARM
  1576. TARG3 = walk[6] -- NECK
  1577. TARG4 = walk[] -- RIGHT LEG
  1578. TARG5 = walk[] -- LEFT LEG
  1579. TARG6 = walk[5] -- TORSO
  1580. --]]
  1581. local Speed = .4
  1582. local lspeed = .2
  1583. game:GetService("RunService").RenderStepped:connect(function()
  1584. if Vector3.new(char.Torso.Velocity.X,0,char.Torso.Velocity.Z).magnitude > 2 then
  1585. IdleAndWalk = true
  1586. else
  1587. IdleAndWalk = false
  1588. end
  1589. if TARG4 ~= nil then
  1590. rl.C0 = rl.C0:lerp(TARG4,lspeed)
  1591. end
  1592. if TARG5 ~= nil then
  1593. ll.C0 = ll.C0:lerp(TARG5,lspeed)
  1594. end
  1595. if TARG3 ~= nil then
  1596. nc.C0 = nc.C0:lerp(TARG3,lspeed)
  1597. end
  1598. if TARG1 ~= nil then
  1599. w3.C0 = w3.C0:lerp(TARG1,Speed)
  1600. end
  1601. if TARG2 ~= nil then
  1602. w4.C0 = w4.C0:lerp(TARG2,Speed)
  1603. end
  1604. if TARG6 ~= nil then
  1605. ts.C0 = ts.C0:lerp(TARG6,Speed)
  1606. end
  1607. if TARG7 ~= nil and obj ~= nil then
  1608. obj.Scale = obj.Scale:lerp(TARG7,.05)
  1609. end
  1610. if TARG8 ~= nil and obj2 ~= nil then
  1611. obj2.Size = obj2.Size:lerp(TARG8,.05)
  1612. obj2.CFrame = char.Torso.CFrame * CFrame.new(0,-2.5,0)
  1613. end
  1614. if TARG10 ~= nil and obj3 ~= nil and TARG11 ~= nil then
  1615. obj3.Size = obj3.Size:lerp(TARG10,.05)
  1616. obj3.CFrame = char.Torso.CFrame * CFrame.new(0,-2.5,0) * TARG11
  1617. end
  1618. if TARG10 ~= nil and obj3 ~= nil and obj3.Transparency ~= 1 then
  1619. obj2.Transparency = obj2.Transparency + .05
  1620. obj3.Transparency = obj3.Transparency + .05
  1621. wait(.1)
  1622. end
  1623. if char.Humanoid.Jump == true then
  1624. gd.Value = true
  1625. else
  1626. gd.Value = false
  1627. end
  1628. if energy < 100 and current == true then
  1629. energy = energy + .05
  1630. end
  1631. for i=1,#parts do
  1632. local Part = parts[i]
  1633. Part.Size = Part.Size:lerp(Vector3.new(6, 32, 7),.05)
  1634. for x=1,#poses do
  1635. Part.CFrame = poses[i]
  1636. end
  1637. end
  1638. if blt.Value < 99 and bl.Value == false and stun.Value == false then
  1639. blt.Value = blt.Value + 0.03
  1640. end
  1641. if bl.Value == true and blt.Value < 5 then
  1642. bl.Value = false
  1643. current = true
  1644. skl = false
  1645. end
  1646. if posd.Value == true and pt.Value > 0 then
  1647. pt.Value = pt.Value - .02
  1648. char.Humanoid.Health = char.Humanoid.Health - .11
  1649. end
  1650. if pt.Value < 1 then
  1651. posd.Value = false
  1652. end
  1653. if bl.Value == true then
  1654. blt.Value = blt.Value - .5
  1655. end
  1656. if atkt.Value > 0 then
  1657. atkt.Value = atkt.Value - .02
  1658. else
  1659. atk.Value = 1
  1660. end
  1661. if deft.Value > 0 then
  1662. deft.Value = deft.Value - .02
  1663. else
  1664. def.Value = 1
  1665. end
  1666. if spdt.Value > 0 then
  1667. spdt.Value = spdt.Value - .02
  1668. else
  1669. wait()
  1670. if spdt.Value < 1 then
  1671. spd.Value = 1
  1672. end
  1673. end
  1674.  
  1675. --Skill 1
  1676. local DV2 = S1T / S1TF
  1677. local initX6 = f1.Size.X.Scale
  1678. f1f:TweenSize( UDim2.new( initX6*DV2* 1.665, 0, 1, 0),"In","Linear",1 )
  1679.  
  1680.  
  1681.  
  1682. if S1T < 14 then
  1683. S1T = S1T + .02
  1684. S1 = false
  1685. else
  1686. S1 = true
  1687. end
  1688. if S1T == 14 then
  1689. S1 = true
  1690. end
  1691.  
  1692.  
  1693. --Skill 2
  1694. local DV2 = S2T / S2TF
  1695. local initX6 = f2.Size.X.Scale
  1696. f2f:TweenSize( UDim2.new( initX6*DV2* 3.566, 0, 1, 0),"In","Linear",1 )
  1697.  
  1698.  
  1699.  
  1700. if S2T < 14 then
  1701. S2T = S2T + .01
  1702. S2 = false
  1703. else
  1704. S2 = true
  1705. end
  1706. if S2T == 15 then
  1707. S2 = true
  1708. end
  1709.  
  1710.  
  1711. --Skill 3
  1712. local DV2 = S3T / S3TF
  1713. local initX6 = f3.Size.X.Scale
  1714. f3f:TweenSize( UDim2.new( initX6*DV2* 2.855, 0, 1, 0),"In","Linear",1 )
  1715.  
  1716.  
  1717.  
  1718. if S3T < 14 then
  1719. S3T = S3T + .01
  1720. S3 = false
  1721. else
  1722. S3 = true
  1723. end
  1724. if S3T == 15 then
  1725. S3 = true
  1726. end
  1727.  
  1728. --Skill 4
  1729. local DV2 = S4T / S4TF
  1730. local initX6 = f4.Size.X.Scale
  1731. f4f:TweenSize( UDim2.new( initX6*DV2*3.45, 0, 1, 0),"In","Linear",1 )
  1732.  
  1733.  
  1734. if S4T < 29 then
  1735. S4T = S4T + .015
  1736. S4 = false
  1737. else
  1738. S4= true
  1739. end
  1740. if S4T == 30 then
  1741. S4 = true
  1742. end
  1743.  
  1744. end)
  1745. --SEC HANDLER
  1746. --[[
  1747. S1 = true
  1748. S1T = 7
  1749. S1TF = 7
  1750. S2 = true
  1751. S2T = 15
  1752. S2TF = 15
  1753. S3 = true
  1754. S3T = 12
  1755. S3TF = 12
  1756. S4 = true
  1757. S4T = 30
  1758. S4TF = 30
  1759. energy = 0
  1760. --]]
  1761.  
  1762.  
  1763.  
  1764.  
  1765. --makeui(Color3.new(0,255,0),"+Speed")
  1766. --makeui(Color3.new(255,0,0),"+Damage")
  1767. --makeui(Color3.new(0,0,255),"+Defense")
  1768. ---VALUE CHANGERS
  1769. satk = atk.Value
  1770. sdef = def.Value
  1771. sspd = spd.Value
  1772. atk.Changed:connect(function()
  1773. if satk > atk.Value then
  1774. atkt.Value = atkt.Value + 4
  1775. makeui(Color3.new(255,0,0),"-Damage")
  1776. satk = atk.Value
  1777. else
  1778. atkt.Value = atkt.Value + 4
  1779. makeui(Color3.new(255,0,0),"+Damage")
  1780. satk = atk.Value
  1781. end
  1782. end)
  1783. posd.Changed:connect(function()
  1784. if posd.Value == false then
  1785. makeui(Color3.new(255,0,0),"-Poison")
  1786. else
  1787. makeui(Color3.new(255,0,0),"+Poison")
  1788. end
  1789. end)
  1790.  
  1791. def.Changed:connect(function()
  1792. if sdef > def.Value then
  1793. deft.Value = deft.Value + 4
  1794. makeui(Color3.new(0,0,255),"-Defense")
  1795. sdef = def.Value
  1796. else
  1797. deft.Value = deft.Value + 4
  1798. makeui(Color3.new(0,0,255),"+Defense")
  1799. sdef = def.Value
  1800. end
  1801. end)
  1802. spd.Changed:connect(function()
  1803. if sspd > spd.Value then
  1804. spdt.Value = spdt.Value + 4
  1805. makeui(Color3.new(0,255,0),"-Speed")
  1806. sspd = spd.Value
  1807. else
  1808. spdt.Value = spdt.Value + 4
  1809. makeui(Color3.new(0,255,0),"+Speed")
  1810. sspd = spd.Value
  1811. end
  1812. end)
  1813. bll.Changed:connect(function()
  1814. if bll.Value == true then
  1815.  
  1816. local c = Instance.new("Part",game.Workspace)
  1817. c.Anchored = true
  1818. c.CanCollide = false
  1819. c.BrickColor = BrickColor.new("Medium stone grey")
  1820. c.Shape = "Ball"
  1821. c.Size = Vector3.new(1,1,1)
  1822. c.CFrame = char.Torso.CFrame
  1823. c.TopSurface = "Smooth"
  1824. c.BottomSurface = "Smooth"
  1825. c.Transparency = .1
  1826. local v = Instance.new("Part",game.Workspace)
  1827. v.Anchored = true
  1828. v.CanCollide = false
  1829. v.BrickColor = BrickColor.new("Medium stone grey")
  1830. v.Size = Vector3.new(1,1,1)
  1831. v.CFrame = char.Torso.CFrame
  1832. v.TopSurface = "Smooth"
  1833. v.BottomSurface = "Smooth"
  1834. v.Transparency = .1
  1835. obj2 = c
  1836. TARG8 = Vector3.new(30,30,30)
  1837. obj3 = v
  1838. TARG10 = Vector3.new(15,21,15)
  1839. TARG11 = CFrame.new(0,0,0)
  1840. makeui(BrickColor.new("Bright bluish green").Color,"Blocked!")
  1841. bll.Value = false
  1842. end
  1843. end)
  1844. stun.Changed:connect(function()
  1845. if stun.Value == true then
  1846. makeui(Color3.new(255,255,0),"+Stunned")
  1847. wait(2)
  1848. if opend == true then
  1849. stun.Value = false
  1850. end
  1851. end
  1852. if stun.Value == false then
  1853. makeui(Color3.new(255,255,0),"-Stunned")
  1854. end
  1855. end)
  1856. -------------------
  1857. while wait() do
  1858. wait()
  1859. fa.Text = "Attack : "..atk.Value
  1860. fa2.Text = "Speed : "..spd.Value
  1861. fa3.Text = "Defense : "..def.Value
  1862. ----HP
  1863. local initX5 = f5.Size.X.Scale
  1864. local maxhp = char.Humanoid.MaxHealth
  1865. local hp = char.Humanoid.Health
  1866. local Pie = (hp / maxhp)
  1867. f5f:TweenSize( UDim2.new( initX5*Pie*3.33, 0, 1, 0),"In","Linear",1 )
  1868. ---Energy
  1869. local DV1 = energy / 100
  1870. local initX6 = f6.Size.X.Scale
  1871. f6f:TweenSize( UDim2.new( initX6*DV1*3.33, 0, 1, 0),"In","Linear",1 )
  1872. ---Block
  1873. local DV1 = blt.Value / blm
  1874. local initX6 = f9.Size.X.Scale
  1875. f9f:TweenSize( UDim2.new( initX6*DV1*1.63, 0, 1, 0),"In","Linear",1 )
  1876. if opend == true and current == true and idleq == false then
  1877. if stun.Value == true then
  1878. TARG1 = stunned[3] -- LEFT ARM
  1879. TARG2 = stunned[2]-- RIGHT ARM
  1880. TARG3 = stunned[1] -- NECK
  1881. TARG4 = stunned[5] -- RIGHT LEG
  1882. TARG5 = stunned[4] -- LEFT LEG
  1883. TARG6 = stunned[6] -- TORSO TILT
  1884. char.Humanoid.WalkSpeed = 0
  1885. end
  1886. if stun.Value == true then
  1887. char.Humanoid.JumpPower = 0
  1888. else
  1889. char.Humanoid.JumpPower = 50
  1890. end
  1891. if stun.Value == false and skl == false then
  1892. char.Humanoid.WalkSpeed = 16 * spd.Value
  1893. end
  1894. if char.Humanoid.Jump == true and stun.Value == false and bl.Value == false then
  1895. TARG1 = jump[3] -- LEFT ARM
  1896. TARG2 = jump[2]-- RIGHT ARM
  1897. TARG3 = jump[1] -- NECK
  1898. TARG4 = jump[5] -- RIGHT LEG
  1899. TARG5 = jump[4] -- LEFT LEG
  1900. TARG6 = CFrame.new(0,0,0)
  1901. end
  1902. --ts.C0 = ts.C0:lerp(stunned[6],.4)
  1903. --nc.C0 = nc.C0:lerp(stunned[1],.4)
  1904. --ll.C0 = ll.C0:lerp(stunned[4],.4)
  1905. --rl.C0 = rl.C0:lerp(stunned[5],.4)
  1906. --w3.C0 = w3.C0:lerp(stunned[3],.4)
  1907. --w4.C0 = w4.C0:lerp(stunned[2],.4)
  1908. local lilwl = ll.C0 * CFrame.new(0,0,-.5) * CFrame.Angles(math.rad(30),math.rad(0),math.rad(0))
  1909. local lirwl = rl.C0 * CFrame.new(0,0,.5) * CFrame.Angles(math.rad(-30),math.rad(0),math.rad(0))
  1910.  
  1911. --RIGHT
  1912. local lilwr = ll.C0 * CFrame.new(0,0,.5) * CFrame.Angles(math.rad(-30),math.rad(0),math.rad(0))
  1913. local lirwr = rl.C0 * CFrame.new(0,0,-.5) * CFrame.Angles(math.rad(30),math.rad(0),math.rad(0))
  1914.  
  1915.  
  1916. --
  1917. if bl.Value == false then
  1918. if IdleAndWalk == true and char.Humanoid.Jump == false and stun.Value == false then
  1919. TARG1 = walk[8] -- LEFT ARM
  1920. TARG2 = walk[7]-- RIGHT ARM
  1921. TARG3 = walk[6] -- NECK
  1922. TARG4 = walk[4] -- RIGHT LEG
  1923. TARG5 = walk[3] -- LEFT LEG
  1924. TARG6 = walk[5] -- TORSO
  1925. if IdleAndWalk == true and char.Humanoid.Jump == false and stun.Value == false and bl.Value == false then
  1926. wait(.05)
  1927. end
  1928. if IdleAndWalk == true and char.Humanoid.Jump == false and stun.Value == false and bl.Value == false then
  1929. wait(.05)
  1930. end
  1931. if IdleAndWalk == true and char.Humanoid.Jump == false and stun.Value == false and bl.Value == false then
  1932. wait(.05)
  1933. end
  1934. if IdleAndWalk == true and char.Humanoid.Jump == false and stun.Value == false and bl.Value == false then
  1935. wait(.05)
  1936. end
  1937. if IdleAndWalk == true and char.Humanoid.Jump == false and stun.Value == false and bl.Value == false then
  1938. TARG1 = walk[8] -- LEFT ARM
  1939. TARG2 = walk[7]-- RIGHT ARM
  1940. TARG3 = walk[6] -- NECK
  1941. TARG4 = walk[2] -- RIGHT LEG
  1942. TARG5 = walk[1] -- LEFT LEG
  1943. TARG6 = walk[5] -- TORSO
  1944. end
  1945. if IdleAndWalk == true and char.Humanoid.Jump == false and stun.Value == false and bl.Value == false then
  1946. wait(.05)
  1947. end
  1948. if IdleAndWalk == true and char.Humanoid.Jump == false and stun.Value == false and bl.Value == false then
  1949. wait(.05)
  1950. end
  1951. if IdleAndWalk == true and char.Humanoid.Jump == false and stun.Value == false and bl.Value == false then
  1952. wait(.05)
  1953. end
  1954. if IdleAndWalk == true and char.Humanoid.Jump == false and stun.Value == false and bl.Value == false then
  1955. wait(.05)
  1956. end
  1957. else
  1958. if IdleAndWalk == false and char.Humanoid.Jump == false and stun.Value == false and bl.Value == false then
  1959. TARG1 = idle[5]
  1960. TARG2 = idle[6]
  1961. TARG3 = idle[2]
  1962. TARG4 = idle[4]
  1963. TARG5 = idle[3]
  1964. TARG6 = idle[1]
  1965. end
  1966. end
  1967. end
  1968. --
  1969. end
  1970. end
  1971.  
  1972. --[[
  1973.  
  1974.  
  1975.  
  1976.  
  1977. ts.C0 = ts.C0:lerp(idle[1],.4)
  1978. nc.C0 = nc.C0:lerp(idle[2],.4)
  1979. ll.C0 = ll.C0:lerp(idle[3],.4)
  1980. rl.C0 = rl.C0:lerp(idle[4],.4)
  1981. w3.C0 = w3.C0:lerp(idle[5],.4)
  1982. w4.C0 = w4.C0:lerp(idle[6],.4)
  1983.  
  1984. TARG1 = idle[5]
  1985. TARG2 = idle[6]
  1986. TARG3 = idle[2]
  1987. TARG4 = idle[5]
  1988. TARG5 = idle[3]
  1989. TARG6 = idle[2]
  1990. if TARG4 ~= nil then
  1991. rl.C0 = rl.C0:lerp(TARG4,lspeed)
  1992. end
  1993. if TARG5 ~= nil then
  1994. ll.C0 = ll.C0:lerp(TARG5,lspeed)
  1995. end
  1996. if TARG3 ~= nil then
  1997. nc.C0 = nc.C0:lerp(TARG3,lspeed)
  1998. end
  1999. if TARG1 ~= nil then
  2000. w3.C0 = w3.C0:lerp(TARG1,Speed)
  2001. end
  2002. if TARG2 ~= nil then
  2003. w4.C0 = w4.C0:lerp(TARG2,Speed)
  2004. end
  2005.  
  2006. ll.C0 = ll.C0:lerp(walk[3],.4)
  2007. rl.C0 = rl.C0:lerp(walk[4],.4)
  2008. ---OTHER ANIMS
  2009. ts.C0 = ts.C0:lerp(walk[5],.4)
  2010. nc.C0 = nc.C0:lerp(walk[6],.4)
  2011. w4.C0 = w4.C0:lerp(walk[7],.4)
  2012. w3.C0 = w3.C0:lerp(walk[8],.4)
  2013.  
  2014. TARG1 = walk[8] -- LEFT ARM
  2015. TARG2 = walk[7]-- RIGHT ARM
  2016. TARG3 = walk[6] -- NECK
  2017. TARG4 = walk[] -- RIGHT LEG
  2018. TARG5 = walk[] -- LEFT LEG
  2019. TARG6 = walk[5] -- TORSO
  2020.  
  2021. for i = 0,1,wait() do
  2022. wait()
  2023. ll.C0 = ll.C0:lerp(walk[3],.4)
  2024. rl.C0 = rl.C0:lerp(walk[4],.4)
  2025. ---OTHER ANIMS
  2026. ts.C0 = ts.C0:lerp(walk[5],.4)
  2027. nc.C0 = nc.C0:lerp(walk[6],.4)
  2028. w4.C0 = w4.C0:lerp(walk[7],.4)
  2029. w3.C0 = w3.C0:lerp(walk[8],.4)
  2030. end--]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement