SheeityArtist

WHY AY DEE KYU

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