Advertisement
SheeityArtist

basic fighting

Sep 4th, 2017
4,006
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.07 KB | None | 0 0
  1. ------------------
  2. --Basic Fighting--
  3. ------------------
  4. --By CKbackup--
  5. ---------------
  6.  
  7. player = game.Players.LocalPlayer
  8. mouse = player:GetMouse()
  9. chara = player.Character
  10. equipped = false
  11. del = false
  12. attacking = false
  13. atkd = false
  14. hum = chara:FindFirstChildOfClass("Humanoid")
  15. debby = game.Debris
  16. ws = 16
  17. if hum.WalkSpeed > 16 then
  18. ws = hum.WalkSpeed
  19. end
  20.  
  21. ArtificialHB = Instance.new("BindableEvent", script)
  22. ArtificialHB.Name = "Heartbeat"
  23. script:WaitForChild("Heartbeat")
  24. frame = 0.03333333333333
  25. tf = 0
  26. allowframeloss = false
  27. tossremainder = false
  28. lastframe = tick()
  29. script.Heartbeat:Fire()
  30. game:GetService("RunService").Heartbeat:connect(function(s, p)
  31. tf = tf + s
  32. if tf >= frame then
  33. if allowframeloss then
  34. script.Heartbeat:Fire()
  35. lastframe = tick()
  36. else
  37. for i = 1, math.floor(tf / frame) do
  38. script.Heartbeat:Fire()
  39. end
  40. lastframe = tick()
  41. end
  42. if tossremainder then
  43. tf = 0
  44. else
  45. tf = tf - frame * math.floor(tf / frame)
  46. end
  47. end
  48. end)
  49. function swait(num)
  50. if num == 0 or num == nil then
  51. ArtificialHB.Event:wait()
  52. else
  53. for i = 0, num*30 do
  54. ArtificialHB.Event:wait()
  55. end
  56. end
  57. end
  58.  
  59. New = function(Object, Parent, Name, Data)
  60. local Object = Instance.new(Object)
  61. for Index, Value in pairs(Data or {}) do
  62. Object[Index] = Value
  63. end
  64. Object.Parent = Parent
  65. Object.Name = Name
  66. return Object
  67. end
  68.  
  69. RightArm = New("Model",chara,"RightArm",{})
  70. MainPart = New("Part",RightArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(0.5, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  71. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  72. Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("New Yeller"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(0.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
  73. Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
  74. Weld = New("ManualWeld",Emit2Part,"Weld",{Part0 = Emit2Part,Part1 = MainPart,C1 = CFrame.new(0, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  75. LeftArm = New("Model",chara,"LeftArm",{})
  76. MainPart = New("Part",LeftArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(-2.50000024, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  77. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Left Arm"],C1 = CFrame.new(-2.38418579e-007, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  78. EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("New Yeller"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-2.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
  79. Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
  80. Weld = New("ManualWeld",EmitPart,"Weld",{Part0 = EmitPart,Part1 = MainPart,C1 = CFrame.new(2.38418579e-007, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  81.  
  82. lach = LeftArm:GetChildren()
  83. rach = RightArm:GetChildren()
  84.  
  85. local pemit = Instance.new("ParticleEmitter")
  86. pemit.Enabled = false
  87. pemit.Color = ColorSequence.new(Color3.new(255,255,0))
  88. pemit.LightEmission = 1
  89. pemit.Size = NumberSequence.new(1.5,0)
  90. pemit.Texture = "http://www.roblox.com/asset/?id=243098098"
  91. pemit.Lifetime = NumberRange.new(.2)
  92. pemit.Rate = 100
  93. pemit.Rotation = NumberRange.new(0,360)
  94. pemit.Speed = NumberRange.new(0)
  95.  
  96. local p1 = pemit:Clone()
  97. p1.Parent = EmitPart
  98. local p2 = pemit:Clone()
  99. p2.Parent = Emit2Part
  100. local p3 = pemit:Clone()
  101. p3.Parent = chara["Right Leg"]
  102. p3.Rate = 10000
  103. local p4 = pemit:Clone()
  104. p4.Parent = chara["Left Leg"]
  105. p4.Rate = 10000
  106.  
  107. --Sounds--
  108. function LoadSnd(id,loop,vol,pit)
  109. local snd = New("Sound",chara.Head,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
  110. return snd
  111. end
  112. Swing2Snd = LoadSnd(536642316,false,1,1)
  113. HitPunchSnd = LoadSnd(153092227,false,1,1)
  114. HitHamonSnd = LoadSnd(260433624,false,1,1)
  115. HamonSnd = LoadSnd(876570589,false,1,1)
  116. SHamonSnd = LoadSnd(379557765,true,.5,1)
  117.  
  118. --Play Sound in Part--
  119. function PlaySnd(snd,part)
  120. local sound = snd:Clone()
  121. sound.PlayOnRemove = true
  122. sound.Parent = part
  123. sound:Destroy()
  124. end
  125.  
  126. maincol = "White"
  127.  
  128. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  129. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  130. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  131. local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
  132. return TEff
  133. end
  134.  
  135. RPunchT = CreateTrailObj(chara["Right Arm"],"White","White",0,0)
  136. LPunchT = CreateTrailObj(chara["Left Arm"],"White","White",0,0)
  137. RKickT = CreateTrailObj(chara["Right Leg"],"White","White",0,0)
  138. LKickT = CreateTrailObj(chara["Left Leg"],"White","White",0,0)
  139.  
  140. --Punch Hit Effect--
  141. function PunchEff(pos)
  142. local p = Instance.new("Part",game.Workspace)
  143. p.Size = Vector3.new(1,1,1)
  144. p.BrickColor = BrickColor.new(maincol)
  145. p.Material = "Neon"
  146. p.Anchored = true
  147. p.CanCollide = false
  148. p.CFrame = pos
  149. local pm = Instance.new("SpecialMesh",p)
  150. pm.MeshType = "Sphere"
  151. coroutine.resume(coroutine.create(function()
  152. for i = 0,1,.05 do
  153. swait()
  154. p.Transparency = i
  155. pm.Scale = Vector3.new(2*i,2*i,2*i)
  156. end
  157. swait()
  158. p:Destroy()
  159. end))
  160. end
  161.  
  162. --Damage Function--
  163. function dealdmg(dude,damage,env,toim,kby,kbx)
  164. coroutine.resume(coroutine.create(function()
  165. if dude ~= chara and dude:FindFirstChild("IsHit") == nil then
  166. finaldmg = damage + math.random(-env,env)
  167. dudehum = dude:FindFirstChildOfClass("Humanoid")
  168. dudehum.MaxHealth = 100
  169. dudehum.Health = dudehum.Health - finaldmg
  170. local vall = Instance.new("ObjectValue",dude)
  171. vall.Name = "IsHit"
  172. game.Debris:AddItem(vall,toim)
  173. local bfos = Instance.new("BodyVelocity",dude.Head)
  174. bfos.P = 20000
  175. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  176. bfos.Velocity = Vector3.new(0,kby,0) + chara.HumanoidRootPart.CFrame.lookVector * kbx
  177. game.Debris:AddItem(bfos,.1)
  178. local naeeym2 = Instance.new("BillboardGui",dude)
  179. naeeym2.Size = UDim2.new(0,100,0,40)
  180. naeeym2.StudsOffset = Vector3.new(0,3,0)
  181. naeeym2.Adornee = dude.Head
  182. naeeym2.Name = "TalkingBillBoard"
  183. local tecks2 = Instance.new("TextLabel",naeeym2)
  184. tecks2.BackgroundTransparency = 1
  185. tecks2.BorderSizePixel = 0
  186. tecks2.Text = "-"..finaldmg
  187. tecks2.Font = "Fantasy"
  188. tecks2.FontSize = "Size24"
  189. tecks2.TextStrokeTransparency = 0
  190. tecks2.TextColor3 = Color3.new(1,0.6,0)
  191. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  192. tecks2.Size = UDim2.new(1,0,0.5,0)
  193. for i = 1, 5 do
  194. wait(.1)
  195. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  196. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  197. tecks2.TextTransparency = tecks2.TextTransparency + .2
  198. end
  199. naeeym2:Destroy()
  200. end
  201. end))
  202. end
  203.  
  204. --Explode Hitbox--
  205. function ExHitbox(rad,pos,damage,env,toim,kby,kbx)
  206. local E = Instance.new("Explosion")
  207. E.Position = pos
  208. E.Parent = game.Workspace
  209. E.BlastRadius = rad
  210. E.BlastPressure = 0
  211. E.Visible = false
  212. E.Hit:connect(function(hit)
  213. if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  214. dealdmg(hit.Parent,damage,env,toim,kby,kbx)
  215. end
  216. end)
  217. end
  218.  
  219. --Punch Touch--
  220. dela = .5
  221. punchactive = false
  222. function punchhit(hit)
  223. if punchactive == true then
  224. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  225. dealdmg(hit.Parent,15,2,dela,0,5)
  226. PlaySnd(HitPunchSnd,hit.Parent.Head)
  227. if maincol == "New Yeller" then
  228. PlaySnd(HitHamonSnd,hit.Parent.Head)
  229. end
  230. PunchEff(hit.CFrame)
  231. end
  232. end
  233. end
  234. Emit2Part.Touched:connect(punchhit)
  235. EmitPart.Touched:connect(punchhit)
  236.  
  237. --Kick Touch--
  238. kickactive = false
  239. function kickhit(hit)
  240. if kickactive == true then
  241. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  242. PlaySnd(HitPunchSnd,hit.Parent.Head)
  243. PunchEff(hit.CFrame)
  244. if maincol == "New Yeller" then
  245. PlaySnd(HitHamonSnd,hit.Parent.Head)
  246. end
  247. dealdmg(hit.Parent,20,2,dela,0,20)
  248. end
  249. end
  250. end
  251. chara["Right Leg"].Touched:connect(kickhit)
  252. chara["Left Leg"].Touched:connect(kickhit)
  253.  
  254. --Chat Function--
  255. function chatfunc(text)
  256. coroutine.resume(coroutine.create(function()
  257. if chara:FindFirstChild("TalkingBillBoard")~= nil then
  258. chara:FindFirstChild("TalkingBillBoard"):destroy()
  259. end
  260. local naeeym2 = Instance.new("BillboardGui",chara)
  261. naeeym2.Size = UDim2.new(0,100,0,40)
  262. naeeym2.StudsOffset = Vector3.new(0,3,0)
  263. naeeym2.Adornee = chara.Head
  264. naeeym2.Name = "TalkingBillBoard"
  265. local tecks2 = Instance.new("TextLabel",naeeym2)
  266. tecks2.BackgroundTransparency = 1
  267. tecks2.BorderSizePixel = 0
  268. tecks2.Text = ""
  269. tecks2.Font = "Fantasy"
  270. tecks2.FontSize = "Size24"
  271. tecks2.TextStrokeTransparency = 0
  272. tecks2.TextColor3 = Color3.new(1,1,1)
  273. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  274. tecks2.Size = UDim2.new(1,0,0.5,0)
  275. coroutine.resume(coroutine.create(function()
  276. for i = 1,string.len(text),1 do
  277. tecks2.Text = string.sub(text,1,i)
  278. swait(0.01)
  279. end
  280. swait(1)
  281. for i = 1, 5 do
  282. swait(.01)
  283. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  284. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  285. tecks2.TextTransparency = tecks2.TextTransparency + .2
  286. end
  287. naeeym2:Destroy()
  288. end))
  289. end))
  290. end
  291.  
  292. function onChatted(msg)
  293. --chatfunc(msg)
  294. if msg == "Hamon!" then
  295. HamonSnd:Play()
  296. maincol = "New Yeller"
  297. for i = 0,.1,.01 do
  298. swait()
  299. EmitPart.Transparency = 1-i
  300. Emit2Part.Transparency = 1-i
  301. end
  302. p1.Enabled = true
  303. p2.Enabled = true
  304. RPunchT.Color = ColorSequence.new(Color3.new(1,1,0))
  305. LPunchT.Color = ColorSequence.new(Color3.new(1,1,0))
  306. RKickT.Color = ColorSequence.new(Color3.new(1,1,0))
  307. LKickT.Color = ColorSequence.new(Color3.new(1,1,0))
  308. elseif msg == "Hamon off." then
  309. maincol = "White"
  310. p1.Enabled = false
  311. p2.Enabled = false
  312. for i = .9,1,.01 do
  313. swait()
  314. EmitPart.Transparency = i
  315. Emit2Part.Transparency = i
  316. end
  317. RPunchT.Color = ColorSequence.new(BrickColor.new("White").Color)
  318. LPunchT.Color = ColorSequence.new(BrickColor.new("White").Color)
  319. RKickT.Color = ColorSequence.new(BrickColor.new("White").Color)
  320. LKickT.Color = ColorSequence.new(BrickColor.new("White").Color)
  321. end
  322. end
  323. player.Chatted:connect(onChatted)
  324.  
  325. --Clerp Animations--
  326. TC = chara.HumanoidRootPart.RootJoint
  327. HC = chara.Torso.Neck
  328. RAC = chara.Torso["Right Shoulder"]
  329. LAC = chara.Torso["Left Shoulder"]
  330. RLC = chara.Torso["Right Hip"]
  331. LLC = chara.Torso["Left Hip"]
  332. TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  333. HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  334. RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  335. LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  336. RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  337. LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  338. RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  339. LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  340. RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  341. LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  342. RW = Instance.new("Weld",HC.Parent)
  343. RW.Part1 = HC.Parent
  344. RW.Part0 = chara["Right Arm"]
  345. RW.C0 = RWF
  346. LW = Instance.new("Weld",HC.Parent)
  347. LW.Part1 = HC.Parent
  348. LW.Part0 = chara["Left Arm"]
  349. LW.C0 = LWF
  350. RLW = nil
  351. LLW = nil
  352. grp = Instance.new("Model",chara)
  353.  
  354. function AddLegWelds()
  355. RLW = Instance.new("Weld",chara["Right Leg"])
  356. RLW.Part1 = HC.Parent
  357. RLW.Part0 = chara["Right Leg"]
  358. RLW.C0 = RLWF
  359. LLW = Instance.new("Weld",chara["Left Leg"])
  360. LLW.Part1 = HC.Parent
  361. LLW.Part0 = chara["Left Leg"]
  362. LLW.C0 = LLWF
  363. end
  364.  
  365. function DestroyLegWelds()
  366. RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),})
  367. LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
  368. RLW:Destroy()
  369. LLW:Destroy()
  370. end
  371.  
  372. function clerp(a,b,c)
  373. return a:lerp(b,c)
  374. end
  375.  
  376. ITCF = TCF
  377. IHCF = HCF
  378. IRWF = RWF
  379. ILWF = LWF
  380.  
  381. function res()
  382. TC.C0 = ITCF
  383. HC.C0 = IHCF
  384. RW.C0 = IRWF
  385. LW.C0 = ILWF
  386. end
  387. res()
  388.  
  389. --Flip--
  390. function Flip()
  391. del = true
  392. res()
  393. hum.WalkSpeed = 0
  394. AddLegWelds()
  395. Swing2Snd:Play()
  396. for i = 0,.6,.2 do
  397. swait()
  398. TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.4+i)
  399. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.4+i)
  400. RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i)
  401. LW.C0 = clerp(ILWF,LWF,.4+i)
  402. RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.4+i)
  403. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i)
  404. end
  405. local bf = Instance.new("BodyVelocity",chara.Torso)
  406. bf.P = 100000
  407. bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
  408. bf.Velocity = Vector3.new(0,60,0) + chara.HumanoidRootPart.CFrame.lookVector*30
  409. debby:AddItem(bf,.5)
  410. for i = 0,1,.25 do
  411. swait()
  412. TC.C0 = clerp(TCF - Vector3.new(0,1,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
  413. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i)
  414. RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
  415. LW.C0 = clerp(LWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
  416. LLW.C0 = clerp((LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),LLWF,i)
  417. end
  418. bf.MaxForce = Vector3.new(bf.P,0,bf.P)
  419. for i = 0,1,.25 do
  420. swait()
  421. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-360),0,0),i)
  422. end
  423. swait(.5)
  424. bf:Destroy()
  425. for i = 0,1,.25 do
  426. swait()
  427. TC.C0 = clerp(TCF,TCF - Vector3.new(0,1,0),i)
  428. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i)
  429. RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),i)
  430. LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),LWF,i)
  431. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i)
  432. end
  433. for i = 0,.6,.2 do
  434. swait()
  435. TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.6-i)
  436. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.6-i)
  437. RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i)
  438. LW.C0 = clerp(ILWF,LWF,.6-i)
  439. RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.6-i)
  440. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.6-i)
  441. end
  442. DestroyLegWelds()
  443. res()
  444. hum.WalkSpeed = ws
  445. walking = false
  446. del = false
  447. end
  448. function BackFlip()
  449. del = true
  450. res()
  451. hum.WalkSpeed = 0
  452. AddLegWelds()
  453. Swing2Snd:Play()
  454. for i = 0,.6,.2 do
  455. swait()
  456. TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.4+i)
  457. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.4+i)
  458. RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i)
  459. LW.C0 = clerp(ILWF,LWF,.4+i)
  460. RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.4+i)
  461. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i)
  462. end
  463. local bf = Instance.new("BodyVelocity",chara.Torso)
  464. bf.P = 100000
  465. bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
  466. bf.Velocity = Vector3.new(0,60,0) + chara.HumanoidRootPart.CFrame.lookVector*-30
  467. for i = 0,1,.25 do
  468. swait()
  469. TC.C0 = clerp(TCF - Vector3.new(0,1,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),i)
  470. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i)
  471. RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
  472. LW.C0 = clerp(LWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
  473. LLW.C0 = clerp((LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),LLWF,i)
  474. end
  475. bf.MaxForce = Vector3.new(bf.P,0,bf.P)
  476. for i = 0,1,.25 do
  477. swait()
  478. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(360),0,0),i)
  479. end
  480. swait(.5)
  481. bf:Destroy()
  482. for i = 0,1,.25 do
  483. swait()
  484. TC.C0 = clerp(TCF,TCF - Vector3.new(0,1,0),i)
  485. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i)
  486. RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),i)
  487. LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),LWF,i)
  488. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i)
  489. end
  490. for i = 0,.6,.2 do
  491. swait()
  492. TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.6-i)
  493. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.6-i)
  494. RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i)
  495. LW.C0 = clerp(ILWF,LWF,.6-i)
  496. RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.6-i)
  497. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.6-i)
  498. end
  499. DestroyLegWelds()
  500. res()
  501. hum.WalkSpeed = ws
  502. walking = false
  503. del = false
  504. end
  505.  
  506. --Keys--
  507. combo = 0
  508. function onKeyDown(key)
  509. if del == false then
  510. if key == "r" then
  511. BackFlip()
  512. elseif key == "t" then
  513. Flip()
  514. end
  515. end
  516. end
  517. function onButton1Down()
  518. if del == false then
  519. del = true
  520. torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(0,1,0)).magnitude
  521. res()
  522. if torvel > 3 then
  523. Swing2Snd:Play()
  524. kickactive = true
  525. RKickT.Enabled = true
  526. if maincol == "New Yeller" then
  527. SHamonSnd:Play()
  528. p3.Enabled = true
  529. end
  530. AddLegWelds()
  531. for i = 0,1,.2 do
  532. swait()
  533. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
  534. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i)
  535. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
  536. LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
  537. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i)
  538. end
  539. for i = 0,1,.2 do
  540. swait()
  541. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-360),0,0),i)
  542. end
  543. DestroyLegWelds()
  544. kickactive = false
  545. RKickT.Enabled = false
  546. p3.Enabled = false
  547. SHamonSnd:Stop()
  548. elseif torvel < 3 then
  549. if combo == 0 then
  550. for i = 0,.6,.2 do
  551. swait()
  552. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  553. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  554. LW.C0 = clerp(ILWF,(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.4+i)
  555. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  556. end
  557. swait(.1)
  558. Swing2Snd:Play()
  559. punchactive = true
  560. LPunchT.Enabled = true
  561. if maincol == "New Yeller" then
  562. SHamonSnd:Play()
  563. end
  564. for i = 0,.6,.3 do
  565. swait()
  566. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(80)),TCF,.4+i)
  567. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-80)),HCF,.4+i)
  568. LW.C0 = clerp((LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  569. RW.C0 = clerp((RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.4+i)
  570. end
  571. LW.C0 = (LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  572. for i = 0,.6,.2 do
  573. swait()
  574. TC.C0 = clerp(TCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  575. HC.C0 = clerp(HCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  576. end
  577. TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  578. HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  579. swait(.1)
  580. for i = 0,.6,.2 do
  581. swait()
  582. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  583. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  584. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  585. RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.6-i)
  586. end
  587. punchactive = false
  588. LPunchT.Enabled = false
  589. SHamonSnd:Stop()
  590. combo = 1
  591. elseif combo == 1 then
  592. hum.WalkSpeed = 0
  593. AddLegWelds()
  594. for i = 0,.6,.2 do
  595. swait()
  596. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),.4+i)
  597. HC.C0 = clerp(IHCF,HCF,.4+i)
  598. LLW.C0 = clerp(LLWF,LLWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),.4+i)
  599. RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),.4+i)
  600. end
  601. swait(.1)
  602. Swing2Snd:Play()
  603. kickactive = true
  604. RKickT.Enabled = true
  605. if maincol == "New Yeller" then
  606. SHamonSnd:Play()
  607. p3.Enabled = true
  608. end
  609. local bfos = Instance.new("BodyVelocity",chara.HumanoidRootPart)
  610. bfos.P = 10000
  611. bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P)
  612. bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 200
  613. debby:AddItem(bfos,.1)
  614. for i = 0,.6,.2 do
  615. swait()
  616. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),.4+i)
  617. LLW.C0 = clerp(LLWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),LLWF * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),.4+i)
  618. RLW.C0 = clerp((RLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),(RLWF - Vector3.new(0,1,1))*CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
  619. end
  620. swait(.3)
  621. for i = 0,.6,.2 do
  622. swait()
  623. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),ITCF,.4+i)
  624. HC.C0 = clerp(HCF,IHCF,.4+i)
  625. LLW.C0 = clerp(LLWF * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),LLWF,.4+i)
  626. RLW.C0 = clerp((RLWF - Vector3.new(0,1,1))*CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,.4+i)
  627. end
  628. DestroyLegWelds()
  629. kickactive = false
  630. RKickT.Enabled = false
  631. p3.Enabled = false
  632. SHamonSnd:Stop()
  633. combo = 2
  634. elseif combo == 2 then
  635. for i = 0,.6,.2 do
  636. swait()
  637. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  638. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  639. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  640. RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.4+i)
  641. end
  642. swait(.1)
  643. Swing2Snd:Play()
  644. punchactive = true
  645. RPunchT.Enabled = true
  646. if maincol == "New Yeller" then
  647. SHamonSnd:Play()
  648. end
  649. for i = 0,.6,.3 do
  650. swait()
  651. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-80)),TCF,.4+i)
  652. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(80)),HCF,.4+i)
  653. LW.C0 = clerp((LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.4+i)
  654. RW.C0 = clerp((RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  655. end
  656. RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  657. for i = 0,.6,.2 do
  658. swait()
  659. TC.C0 = clerp(TCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  660. HC.C0 = clerp(HCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  661. end
  662. TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  663. HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  664. swait(.1)
  665. for i = 0,.6,.2 do
  666. swait()
  667. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  668. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  669. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  670. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  671. end
  672. punchactive = false
  673. RPunchT.Enabled = false
  674. SHamonSnd:Stop()
  675. combo = 3
  676. elseif combo == 3 then
  677. hum.WalkSpeed = 0
  678. AddLegWelds()
  679. for i = 0,.6,.2 do
  680. swait()
  681. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  682. HC.C0 = clerp(IHCF,HCF,.4+i)
  683. LLW.C0 = clerp(LLWF,LLWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-60)),.4+i)
  684. RLW.C0 = clerp(RLWF,RLWF*CFrame.fromEulerAnglesXYZ(0,0,math.rad(60)),.4+i)
  685. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  686. RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.4+i)
  687. end
  688. Swing2Snd:Play()
  689. kickactive = true
  690. LKickT.Enabled = true
  691. if maincol == "New Yeller" then
  692. SHamonSnd:Play()
  693. p4.Enabled = true
  694. end
  695. local bfos = Instance.new("BodyVelocity",chara.HumanoidRootPart)
  696. bfos.P = 10000
  697. bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P)
  698. bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 200
  699. debby:AddItem(bfos,.1)
  700. for i = 0,.6,.1 do
  701. swait()
  702. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-100)),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-60),0,math.rad(90)),.4+i)
  703. end
  704. TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(math.rad(-60),0,math.rad(90))
  705. swait(.2)
  706. for i = 0,.6,.1 do
  707. swait()
  708. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-60),0,math.rad(90)),.6-i)
  709. HC.C0 = clerp(IHCF,HCF,.6-i)
  710. LLW.C0 = clerp(LLWF,LLWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-60)),.6-i)
  711. RLW.C0 = clerp(RLWF,RLWF*CFrame.fromEulerAnglesXYZ(0,0,math.rad(60)),.6-i)
  712. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  713. RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.6-i)
  714. end
  715. DestroyLegWelds()
  716. kickactive = false
  717. LKickT.Enabled = false
  718. p4.Enabled = false
  719. SHamonSnd:Stop()
  720. combo = 0
  721. end
  722. end
  723. res()
  724. hum.WalkSpeed = ws
  725. walking = false
  726. del = false
  727. end
  728. end
  729. if mouse then
  730. mouse.Button1Down:connect(onButton1Down)
  731. mouse.KeyDown:connect(onKeyDown)
  732. end
  733.  
  734. --Loop Function--
  735. walking = false
  736. toim = 0
  737. while true do
  738. swait()
  739. toim = toim + .1
  740. if del == false then attacking = false elseif del == true then attacking = true end
  741. if atkd == true then
  742. TC.C0 = TCF
  743. HC.C0 = HCF
  744. RW.C0 = RWF
  745. LW.C0 = LWF
  746. atkd = false
  747. end
  748. if atkdd == true then
  749. TC.C0 = ITCF
  750. HC.C0 = IHCF
  751. RW.C0 = IRWF
  752. LW.C0 = ILWF
  753. atkdd = false
  754. end
  755. torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
  756. if torvel < 1 and walking == true and del == false and atkd == false and attacking == false then
  757. for i = 0,1,.25 do
  758. swait(.001)
  759. if del == false and attacking == false then
  760. TC.C0 = clerp(TCF,ITCF,i)
  761. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,i)
  762. RW.C0 = clerp((RWF - Vector3.new(-1,0,.7)) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,math.rad(45)),IRWF,i)
  763. LW.C0 = clerp((LWF - Vector3.new(1,0,.7)) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,math.rad(-45)),ILWF,i)
  764. end
  765. end
  766. walking = false
  767. elseif torvel > 1 and walking == false and del == false and atkd == false and attacking == false then
  768. for i = 0,1,.25 do
  769. swait(.001)
  770. if del == false and attacking == false then
  771. TC.C0 = clerp(ITCF,TCF,i)
  772. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),i)
  773. RW.C0 = clerp((RWF - Vector3.new(-1,0,.7)) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,math.rad(45)),IRWF,1-i)
  774. LW.C0 = clerp((LWF - Vector3.new(1,0,.7)) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,math.rad(-45)),ILWF,1-i)
  775. end
  776. end
  777. walking = true
  778. else
  779. end
  780. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement