SheeityArtist

nibbarainbows

Jun 4th, 2017 (edited)
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.67 KB | None | 0 0
  1. -----------------
  2. --Rainbow Kitty--
  3. -----------------
  4. --By --
  5. --CKbackup-
  6. -----------
  7.  
  8. player = game.Players.LocalPlayer
  9. chara = player.Character
  10. debby = game.Debris
  11. Mouse = player:GetMouse()
  12. chara.Humanoid.WalkSpeed = 24
  13. atkd = false
  14. atkdd = false
  15. targetted = nil
  16. exed = false
  17. exeact = false
  18.  
  19. --Outfit--
  20. New = function(Object, Parent, Name, Data)
  21. local Object = Instance.new(Object)
  22. for Index, Value in pairs(Data or {}) do
  23. Object[Index] = Value
  24. end
  25. Object.Parent = Parent
  26. Object.Name = Name
  27. return Object
  28. end
  29.  
  30. RightArm = New("Model",chara,"RightArm",{})
  31. 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,})
  32. 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),})
  33. Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("Hot pink"),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),})
  34. Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
  35. 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),})
  36. LeftArm = New("Model",chara,"LeftArm",{})
  37. 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,})
  38. 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),})
  39. EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("Hot pink"),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),})
  40. Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
  41. 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),})
  42.  
  43. lach = LeftArm:GetChildren()
  44. rach = RightArm:GetChildren()
  45. ch = chara:GetChildren()
  46.  
  47. crosshair = Instance.new("BillboardGui",chara)
  48. crosshair.Size = UDim2.new(10,0,10,0)
  49. crosshair.Enabled = false
  50. imgl = Instance.new("ImageLabel",crosshair)
  51. imgl.Position = UDim2.new(0,0,0,0)
  52. imgl.Size = UDim2.new(1,0,1,0)
  53. imgl.Image = "http://www.roblox.com/asset/?id=26356341"
  54. imgl.BackgroundTransparency = 1
  55.  
  56. --Za Effects--
  57. color3colour = {BrickColor.new("Really red").Color,BrickColor.new("Neon orange").Color,BrickColor.new("New yeller").Color,BrickColor.new("Lime green").Color,BrickColor.new("Really blue").Color,BrickColor.new("Alder").Color}
  58. breekcolour = {BrickColor.new("Really red"),BrickColor.new("Neon orange"),BrickColor.new("New yeller"),BrickColor.new("Lime green"),BrickColor.new("Really blue"),BrickColor.new("Alder")}
  59. firecolour = {ColorSequenceKeypoint.new(0,BrickColor.new("Really red").Color),ColorSequenceKeypoint.new(.05,BrickColor.new("Neon orange").Color),ColorSequenceKeypoint.new(.1,BrickColor.new("New yeller").Color),ColorSequenceKeypoint.new(.15,BrickColor.new("Lime green").Color),ColorSequenceKeypoint.new(.2,BrickColor.new("Really blue").Color),ColorSequenceKeypoint.new(.25,BrickColor.new("Alder").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Alder").Color)}
  60. barcolour = {ColorSequenceKeypoint.new(0,BrickColor.new("Really red").Color),ColorSequenceKeypoint.new(.2,BrickColor.new("Neon orange").Color),ColorSequenceKeypoint.new(.4,BrickColor.new("New yeller").Color),ColorSequenceKeypoint.new(.6,BrickColor.new("Lime green").Color),ColorSequenceKeypoint.new(.8,BrickColor.new("Really blue").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Alder").Color)}
  61. normallife = {NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)}
  62. extendlife = {NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)}
  63. tailfireseq = {NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.4,2),NumberSequenceKeypoint.new(1,0)}
  64. normalslife = {NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,1)}
  65. normaldlife = {NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}
  66. function createrainbow(color,part,texture,size,trans,life,face,speed,accel,velsp,lock,name)
  67. local fira = Instance.new("ParticleEmitter",part)
  68. fira.Name = name
  69. fira.Color = ColorSequence.new(color)
  70. fira.Size = size
  71. fira.Texture = texture
  72. fira.Transparency = trans
  73. fira.Lifetime = life
  74. fira.EmissionDirection = face
  75. fira.Rate = 100000000
  76. fira.RotSpeed = NumberRange.new(100)
  77. fira.Speed = speed
  78. fira.VelocitySpread = velsp
  79. fira.Acceleration = accel
  80. fira.LightEmission = 1
  81. fira.LockedToPart = lock
  82. return fira
  83. end
  84. handfire1 = createrainbow(firecolour,EmitPart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Left",NumberRange.new(1),Vector3.new(0,2,0),0,false,"FireEffect")
  85. handfire2 = createrainbow(firecolour,Emit2Part,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Right",NumberRange.new(1),Vector3.new(0,2,0),0,false,"FireEffect")
  86.  
  87. chara.Chest.Tail.Transparency = 1
  88. Wings = New("Model",chara,"Wings",{})
  89. MainPart = New("Part",Wings,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(2, 2, 1),CFrame = CFrame.new(67.400032, 1.00001299, -47.2999992, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  90. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara.Torso,})
  91. TailPart = New("Part",Wings,"TailPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(67.400032, 0.100013539, -46.7000008, 1, 1.21357175e-06, -2.47496246e-06, -1.21356493e-06, 1, 3.06692482e-06, 2.47496951e-06, -3.06691618e-06, 1),})
  92. createrainbow(barcolour,TailPart,"rbxasset://textures/particles/sparkles_main.dds",NumberSequence.new(tailfireseq),NumberSequence.new(0),NumberRange.new(1),"Back",NumberRange.new(10),Vector3.new(0,10,0),0,true,"Fire")
  93. Weld = New("ManualWeld",TailPart,"Weld",{Part0 = TailPart,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, 1, -1.21356493e-06, 2.47496951e-06, 1.21357175e-06, 1, -3.06691618e-06, -2.47496246e-06, 3.06692482e-06, 1),C1 = CFrame.new(0, -0.89999944, 0.599998474, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  94. Wing1Part = New("Part",Wings,"Wing1Part",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.2041626, 2.02130413, -46.7787056, 0.866025448, 0.35355404, 0.35355413, -0.353553772, 0.933016062, -0.0669873655, -0.353553891, -0.0669873059, 0.933015943),})
  95. createrainbow(barcolour,Wing1Part,"rbxasset://textures/particles/sparkles_main.dds",NumberSequence.new(normalslife),NumberSequence.new(0),NumberRange.new(1),"Back",NumberRange.new(5),Vector3.new(0,10,0),0,true,"Fire")
  96. Weld = New("ManualWeld",Wing1Part,"Weld",{Part0 = Wing1Part,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, 0.866025448, -0.353553772, -0.353553891, 0.35355404, 0.933016062, -0.0669873059, 0.35355413, -0.0669873655, 0.933015943),C1 = CFrame.new(0.804130554, 1.02129114, 0.52129364, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  97. Wing2Part = New("Part",Wings,"Wing2Part",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(70.4018326, 6.17824459, -42.6217613, 0.866025448, -0.433013618, 0.250000477, 0.353553772, 0.176777452, -0.918561935, 0.353553891, 0.883886695, 0.306187093),})
  98. createrainbow(barcolour,Wing2Part,"rbxasset://textures/particles/sparkles_main.dds",NumberSequence.new(normaldlife),NumberSequence.new(0),NumberRange.new(1.5),"Back",NumberRange.new(10),Vector3.new(0,10,0),0,true,"Fire")
  99. Weld = New("ManualWeld",Wing2Part,"Weld",{Part0 = Wing2Part,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, 0.866025448, 0.353553772, 0.353553891, -0.433013618, 0.176777452, 0.883886695, 0.250000477, -0.918561935, 0.306187093),C1 = CFrame.new(3.00180054, 5.17823172, 4.67823792, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  100. Wing2Part = New("Part",Wings,"Wing2Part",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(70.4018326, 6.17824459, -42.6217613, 0.866025448, -0.482963979, 0.12940979, 0.353553772, 0.408495188, -0.841509461, 0.353553891, 0.774522126, 0.524520695),})
  101. createrainbow(barcolour,Wing2Part,"rbxasset://textures/particles/sparkles_main.dds",NumberSequence.new(normaldlife),NumberSequence.new(0),NumberRange.new(1.5),"Back",NumberRange.new(10),Vector3.new(0,10,0),0,true,"Fire")
  102. Weld = New("ManualWeld",Wing2Part,"Weld",{Part0 = Wing2Part,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, 0.866025448, 0.353553772, 0.353553891, -0.482963979, 0.408495188, 0.774522126, 0.12940979, -0.841509461, 0.524520695),C1 = CFrame.new(3.00180054, 5.17823172, 4.67823792, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  103. Wing2Part = New("Part",Wings,"Wing2Part",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(70.4018326, 6.17824459, -42.6217613, 0.866025448, -0.500001192, 3.06954462e-12, 0.353553772, 0.612374902, -0.707109571, 0.353553891, 0.61237514, 0.707109332),})
  104. createrainbow(barcolour,Wing2Part,"rbxasset://textures/particles/sparkles_main.dds",NumberSequence.new(normaldlife),NumberSequence.new(0),NumberRange.new(1.5),"Back",NumberRange.new(10),Vector3.new(0,10,0),0,true,"Fire")
  105. Weld = New("ManualWeld",Wing2Part,"Weld",{Part0 = Wing2Part,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, 0.866025448, 0.353553772, 0.353553891, -0.500001192, 0.612374902, 0.61237514, 3.06954462e-12, -0.707109571, 0.707109332),C1 = CFrame.new(3.00180054, 5.17823172, 4.67823792, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  106. Wing1Part = New("Part",Wings,"Wing1Part",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(66.3959503, 2.02130365, -46.778698, 0.866025448, -0.35355404, -0.35355413, 0.353553772, 0.933016062, -0.0669873655, 0.353553891, -0.0669873059, 0.933015943),})
  107. createrainbow(barcolour,Wing1Part,"rbxasset://textures/particles/sparkles_main.dds",NumberSequence.new(normalslife),NumberSequence.new(0),NumberRange.new(1),"Back",NumberRange.new(5),Vector3.new(0,10,0),0,true,"Fire")
  108. Weld = New("ManualWeld",Wing1Part,"Weld",{Part0 = Wing1Part,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, 0.866025448, 0.353553772, 0.353553891, -0.35355404, 0.933016062, -0.0669873059, -0.35355413, -0.0669873655, 0.933015943),C1 = CFrame.new(-1.00408173, 1.02129066, 0.52130127, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  109. Wing2Part = New("Part",Wings,"Wing2Part",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(63.998291, 6.17824411, -42.6217651, 0.866025448, 0.433013618, -0.250000477, -0.353553772, 0.176777452, -0.918561935, -0.353553891, 0.883886695, 0.306187093),})
  110. createrainbow(barcolour,Wing2Part,"rbxasset://textures/particles/sparkles_main.dds",NumberSequence.new(normaldlife),NumberSequence.new(0),NumberRange.new(1.5),"Back",NumberRange.new(10),Vector3.new(0,10,0),0,true,"Fire")
  111. Weld = New("ManualWeld",Wing2Part,"Weld",{Part0 = Wing2Part,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, 0.866025448, -0.353553772, -0.353553891, 0.433013618, 0.176777452, 0.883886695, -0.250000477, -0.918561935, 0.306187093),C1 = CFrame.new(-3.40174103, 5.17823124, 4.6782341, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  112. Wing2Part = New("Part",Wings,"Wing2Part",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(63.998291, 6.17824411, -42.6217651, 0.866025448, 0.482963979, -0.12940979, -0.353553772, 0.408495188, -0.841509461, -0.353553891, 0.774522126, 0.524520695),})
  113. createrainbow(barcolour,Wing2Part,"rbxasset://textures/particles/sparkles_main.dds",NumberSequence.new(normaldlife),NumberSequence.new(0),NumberRange.new(1.5),"Back",NumberRange.new(10),Vector3.new(0,10,0),0,true,"Fire")
  114. Weld = New("ManualWeld",Wing2Part,"Weld",{Part0 = Wing2Part,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, 0.866025448, -0.353553772, -0.353553891, 0.482963979, 0.408495188, 0.774522126, -0.12940979, -0.841509461, 0.524520695),C1 = CFrame.new(-3.40174103, 5.17823124, 4.6782341, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  115. Wing2Part = New("Part",Wings,"Wing2Part",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(63.998291, 6.17824411, -42.6217651, 0.866025448, 0.500001192, 3.06954462e-12, -0.353553772, 0.612374902, -0.707109571, -0.353553891, 0.61237514, 0.707109332),})
  116. createrainbow(barcolour,Wing2Part,"rbxasset://textures/particles/sparkles_main.dds",NumberSequence.new(normaldlife),NumberSequence.new(0),NumberRange.new(1.5),"Back",NumberRange.new(10),Vector3.new(0,10,0),0,true,"Fire")
  117. Weld = New("ManualWeld",Wing2Part,"Weld",{Part0 = Wing2Part,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, 0.866025448, -0.353553772, -0.353553891, 0.500001192, 0.612374902, 0.61237514, 3.06954462e-12, -0.707109571, 0.707109332),C1 = CFrame.new(-3.40174103, 5.17823124, 4.6782341, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  118.  
  119.  
  120. --Sounds--
  121. function LoadSnd(id,loop,vol,pit)
  122. local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
  123. return snd
  124. end
  125. Music = LoadSnd(248456266,true,1,1)
  126. StartUpSnd = LoadSnd(153092315,false,1,.8)
  127. SwingSnd = LoadSnd(158037267,false,1,1)
  128. Swing2Snd = LoadSnd(12222208,false,1,1)
  129. HitSnd = LoadSnd(153092274,false,1,1)
  130. HitPunchSnd = LoadSnd(153092227,false,1,1)
  131. DodgeSnd = LoadSnd(232210079,false,1,1)
  132. ExpSnd = LoadSnd(142070127,false,1,1)
  133. FlySnd = LoadSnd(169445602,false,1,1)
  134. BExpSnd = LoadSnd(258057783,false,5,1)
  135. ClawDashSnd = LoadSnd(62339698,false,1,.5)
  136. deathmus = LoadSnd(395580552,true,5,1)
  137. deathex = LoadSnd(258057783,false,5,1)
  138. --Grunt1Snd = LoadSnd(159882486,false,1,1.1)
  139. --Grunt2Snd = LoadSnd(159882466,false,1,1.1)
  140. --Grunt3Snd = LoadSnd(159972643,false,1,1.1)
  141. --Grunt4Snd = LoadSnd(159882584,false,1,1.1)
  142. --YouIdiotSnd = LoadSnd(160212768,false,1,1.1)
  143. --DieSnd = LoadSnd(159882598,false,1,1.1)
  144. --Laugh1Snd = LoadSnd(160212549,false,1,1.1)
  145. --Laugh2Snd = LoadSnd(159882561,false,1,1.1)
  146. --Laugh3Snd = LoadSnd(160212812,false,1,1.1)
  147. ChargeSnd = LoadSnd(137463716,false,1,1)
  148. LasSnd = LoadSnd(162246701,false,1,1)
  149. LasLoopSnd = LoadSnd(162246683,true,1,1)
  150. RStompSnd = LoadSnd(2760979,false,1,1)
  151. GunFlameSnd = LoadSnd(200633327,false,1,1)
  152. OrbSnd = LoadSnd(233091161,false,1,1)
  153. ElectricSnd = LoadSnd(231917975,false,1,1)
  154. LightsOutSnd = LoadSnd(231917794,false,1,1)
  155. SkyBeamSnd = LoadSnd(260433522,false,1,1)
  156. TargetSnd = LoadSnd(613361563,false,1,1)
  157. SV1Snd = LoadSnd(28144425,false,1,.265)
  158. SV2Snd = LoadSnd(2697431,false,1,.3)
  159. SVHitSnd = LoadSnd(62339698,false,1,.3)
  160. IceBreakSnd = LoadSnd(357568316,false,1,1)
  161. FreezeSnd = LoadSnd(203936153,false,1,1)
  162. IceBreak2Snd = LoadSnd(87015121,false,1,1)
  163. BlockedSnd = LoadSnd(357622136,false,1,1)
  164. BulletGSnd = LoadSnd(131072992,false,1,2)
  165. MinigunSnd = LoadSnd(146830867,false,1,1)
  166. MiniStopSnd = LoadSnd(295843191,false,1,1)
  167. BulletLSnd = LoadSnd(144884872,false,1,1)
  168. MissileSnd = LoadSnd(137991337,false,1,1)
  169. Music:Play()
  170.  
  171. --Play Sound in Part--
  172. function PlaySnd(snd,part)
  173. local sound = snd:Clone()
  174. sound.PlayOnRemove = true
  175. sound.Parent = part
  176. sound:Destroy()
  177. end
  178.  
  179. --Target Select--
  180. function TargetSelect(person)
  181. local dd=coroutine.wrap(function()
  182. if targetted ~= person then
  183. targetted = person
  184. for i = 0,30,10 do
  185. wait(.05)
  186. crosshair.Size = UDim2.new(40-i,0,40-i,0)
  187. end
  188. end
  189. end)
  190. dd()
  191. end
  192.  
  193. --Damage Function--
  194. function dealdmg(dude,damage,env,toim,kby,kbx)
  195. hurt = coroutine.wrap(function(dude2,damage2,env2,toim2)
  196. if dude ~= chara and dude:FindFirstChild("IsHit") == nil then
  197. TargetSelect(dude)
  198. dude.Humanoid.MaxHealth = 100
  199. finaldmg = damage + math.random(-env,env)
  200. if berserkmode == true then
  201. finaldmg = finaldmg * 1.5
  202. end
  203. dude.Humanoid.Health = dude.Humanoid.Health - finaldmg
  204. local vall = Instance.new("ObjectValue",dude)
  205. vall.Name = "IsHit"
  206. debby:AddItem(vall,toim)
  207. local bfos = Instance.new("BodyVelocity",dude.Head)
  208. bfos.P = 20000
  209. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  210. bfos.Velocity = Vector3.new(0,kby,0) + chara.HumanoidRootPart.CFrame.lookVector * kbx
  211. debby:AddItem(bfos,.1)
  212. local naeeym2 = Instance.new("BillboardGui",dude)
  213. naeeym2.Size = UDim2.new(0,100,0,40)
  214. naeeym2.StudsOffset = Vector3.new(0,3,0)
  215. naeeym2.Adornee = dude.Head
  216. naeeym2.Name = "TalkingBillBoard"
  217. local tecks2 = Instance.new("TextLabel",naeeym2)
  218. tecks2.BackgroundTransparency = 1
  219. tecks2.BorderSizePixel = 0
  220. tecks2.Text = "-"..finaldmg
  221. tecks2.Font = "SciFi"
  222. tecks2.FontSize = "Size24"
  223. tecks2.TextStrokeTransparency = 0
  224. tecks2.TextColor3 = Color3.new(1,0.6,0)
  225. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  226. tecks2.Size = UDim2.new(1,0,0.5,0)
  227. for i = 1, 5 do
  228. wait(.1)
  229. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  230. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  231. tecks2.TextTransparency = tecks2.TextTransparency + .2
  232. end
  233. naeeym2:Destroy()
  234. end
  235. end)
  236. hurt(dude,damage,env,toim)
  237. end
  238.  
  239. --Explode Hitbox--
  240. function ExHitbox(rad,pos,damage,env,toim,kby,kbx)
  241. local E = Instance.new("Explosion")
  242. E.Position = pos
  243. E.Parent = game.Workspace
  244. E.BlastRadius = rad
  245. E.BlastPressure = 0
  246. E.Visible = false
  247. E.Hit:connect(function(hit)
  248. if hit.Parent:FindFirstChild("Humanoid")~=nil then
  249. dealdmg(hit.Parent,damage,env,toim,kby,kbx)
  250. end
  251. end)
  252. end
  253.  
  254. --Chat Function--
  255. function chatfunc(text)
  256. local chat = coroutine.wrap(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. if berserkmode == true then
  276. tecks2.TextColor3 = Color3.new(1,0,0)
  277. tecks2.TextStrokeColor3 = Color3.new(1,1,0)
  278. end
  279. for i = 1,string.len(text),1 do
  280. tecks2.Text = string.sub(text,1,i)
  281. wait(0.01)
  282. end
  283. wait(1)
  284. for i = 1, 5 do
  285. wait(.01)
  286. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  287. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  288. tecks2.TextTransparency = tecks2.TextTransparency + .2
  289. end
  290. naeeym2:Destroy()
  291. end)
  292. chat()
  293. end
  294.  
  295. function onChatted(msg)
  296. chatfunc(msg)
  297. end
  298. player.Chatted:connect(onChatted)
  299.  
  300. --Punch Hit Effect--
  301. function PunchEff(pos)
  302. local p = Instance.new("Part",game.Workspace)
  303. p.Size = Vector3.new(0,0,0)
  304. p.BrickColor = BrickColor.new("White")
  305. p.Material = "Neon"
  306. p.Anchored = true
  307. p.CanCollide = false
  308. p.CFrame = pos
  309. local pm = Instance.new("SpecialMesh",p)
  310. pm.MeshType = "Sphere"
  311. local disp = coroutine.wrap(function()
  312. for i = 1, 4 do
  313. wait(.01)
  314. p.Transparency = p.Transparency + .2
  315. pm.Scale = pm.Scale + Vector3.new(2,2,2)
  316. end
  317. wait(.01)
  318. p:Destroy()
  319. end)
  320. disp()
  321. end
  322.  
  323. --Blade Hit Effect--
  324. function SlashEff(pos)
  325. local p = Instance.new("Part",game.Workspace)
  326. p.Size = Vector3.new(0,0,0)
  327. p.BrickColor = BrickColor.new("White")
  328. p.Material = "Neon"
  329. p.Anchored = true
  330. p.CanCollide = false
  331. p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  332. local pm = Instance.new("SpecialMesh",p)
  333. pm.MeshType = "Sphere"
  334. pm.Scale = Vector3.new(2.5,0,2.5)
  335. local disp = coroutine.wrap(function()
  336. for i = 1, 4 do
  337. wait(.01)
  338. p.Transparency = p.Transparency + .2
  339. pm.Scale = pm.Scale + Vector3.new(0,30,0)
  340. end
  341. wait(.01)
  342. p:Destroy()
  343. end)
  344. disp()
  345. end
  346.  
  347. --Super Pause--
  348. function SuperPause()
  349. StartUpSnd:Play()
  350. local p = Instance.new("Part",game.Workspace)
  351. p.Size = Vector3.new(0,0,0)
  352. p.BrickColor = BrickColor.new("White")
  353. p.Material = "Neon"
  354. p.Anchored = true
  355. p.CanCollide = false
  356. p.CFrame = chara.Torso.CFrame
  357. local pm = Instance.new("SpecialMesh",p)
  358. pm.MeshType = "Sphere"
  359. local disp = coroutine.wrap(function()
  360. for i = 1, 4 do
  361. wait(.01)
  362. p.Transparency = p.Transparency + .2
  363. pm.Scale = pm.Scale + Vector3.new(20,20,20)
  364. end
  365. wait(.01)
  366. p:Destroy()
  367. end)
  368. disp()
  369. end
  370.  
  371. --Punch Touch--
  372. dela = .5
  373. punchactive = false
  374. function punchhit(hit)
  375. if punchactive == true then
  376. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  377. dealdmg(hit.Parent,9,2,dela,0,25)
  378. PlaySnd(HitPunchSnd,hit.Parent.Head)
  379. PunchEff(hit.CFrame)
  380. end
  381. end
  382. end
  383. EmitPart.Touched:connect(punchhit)
  384.  
  385. --Kick Touch--
  386. kickactive = false
  387. dkickactive = false
  388. skickactive = false
  389. didskick = false
  390. lkickactive = false
  391. function kickhit(hit)
  392. if kickactive == true then
  393. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  394. dealdmg(hit.Parent,10,2,dela,0,35)
  395. PlaySnd(HitPunchSnd,hit.Parent.Head)
  396. PunchEff(hit.CFrame)
  397. if dkickactive == true then
  398. hit.Parent.Humanoid.PlatformStand = true
  399. hit.Parent.Head.CFrame = chara["Right Leg"].CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  400. wait(3)
  401. hit.Parent.Humanoid.PlatformStand = false
  402. end
  403. if skickactive == true then
  404. local bodpf = Instance.new("BodyPosition",hit.Parent.Head)
  405. bodpf.MaxForce = Vector3.new(10000,10000,10000)
  406. bodpf.Position = chara.HumanoidRootPart.Position + Vector3.new(0,30,0) + (chara.HumanoidRootPart.CFrame.lookVector*3)
  407. debby:AddItem(bodpf,3.5)
  408. didskick = true
  409. end
  410. if lkickactive == true then
  411. if hit.Parent.Head:FindFirstChild("BodyPosition") ~= nil then
  412. hit.Parent.Head:FindFirstChild("BodyPosition"):Destroy()
  413. end
  414. local bfos = Instance.new("BodyVelocity",hit.Parent.Head)
  415. bfos.P = 20000
  416. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  417. bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 20 + Vector3.new(0,30,0)
  418. debby:AddItem(bfos,.3)
  419. end
  420. end
  421. end
  422. end
  423. chara["Left Leg"].Touched:connect(kickhit)
  424. chara["Right Leg"].Touched:connect(kickhit)
  425.  
  426. --Grab Touch--
  427. weldd = nil
  428. function grabhit(hit)
  429. if exeact == true and exed == false then
  430. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  431. dealdmg(hit.Parent,9,2,dela,0,0)
  432. PlaySnd(HitPunchSnd,hit.Parent.Head)
  433. PunchEff(hit.CFrame)
  434. weldd = Instance.new("Weld",hit.Parent)
  435. weldd.Part0 = hit.Parent.Head
  436. weldd.Part1 = EmitPart
  437. exed = true
  438. end
  439. end
  440. end
  441. chara["Right Arm"].Touched:connect(grabhit)
  442.  
  443. function Laser()
  444. local Targ = nil
  445. if targetted ~= nil and targetted:FindFirstChild("Head")~= nil then
  446. Targ = targetted.Head.Position
  447. else
  448. Targ = Mouse.Hit.p
  449. end
  450. local EffectPart = Instance.new("Part",game.Workspace)
  451. EffectPart.Size = Vector3.new(1,1,1)
  452. EffectPart.Anchored = true
  453. EffectPart.BrickColor = BrickColor.new("Institutional white")
  454. EffectPart.Material = "Neon"
  455. EffectPart.Position = Targ
  456. EffectPart.CFrame = CFrame.new(Targ.x,Targ.y,Targ.z)
  457. local mehs1 = Instance.new("SpecialMesh",EffectPart)
  458. mehs1.MeshType = "Sphere"
  459. mehs1.Scale = Vector3.new(5,5,5)
  460. local P = Instance.new("Part")
  461. local Place0 = chara.HumanoidRootPart.CFrame + chara.HumanoidRootPart.CFrame.lookVector*3
  462. local Place1 = EffectPart.CFrame
  463. local meshla = Instance.new("BlockMesh", P)
  464. meshla.Scale = Vector3.new(4,4,1)
  465. P.formFactor = 0
  466. P.Size = Vector3.new(1,1,(Place0.p - Place1.p).magnitude)
  467. P.Name = "Laser"
  468. P.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p)
  469. P.Parent = game.Workspace
  470. P.BrickColor = breekcolour[math.random(1,#breekcolour)]
  471. P.Material = "Neon"
  472. P.Anchored = true
  473. P.CanCollide = false
  474. P.Locked = true
  475. P.BottomSurface = "Smooth"
  476. P.TopSurface = "Smooth"
  477. local RingPart = Instance.new("Part",game.Workspace)
  478. RingPart.Size = Vector3.new(0,0,0)
  479. RingPart.Anchored = true
  480. RingPart.BrickColor = BrickColor.new("Institutional white")
  481. RingPart.CFrame = Place1 * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,359)),math.rad(math.random(0,359)),math.rad(math.random(0,359)))
  482. local mehs2 = Instance.new("SpecialMesh",RingPart)
  483. mehs2.MeshId = "http://www.roblox.com/asset/?id=3270017"
  484. mehs2.Scale = Vector3.new(6,6,6)
  485. ExHitbox(5,Place1.p,20,2,.1,0,5)
  486. local fu = coroutine.wrap(function()
  487. for i = 1, 10 do
  488. wait(.001)
  489. mehs1.Scale = mehs1.Scale + Vector3.new(.5,.5,.5)
  490. mehs2.Scale = mehs2.Scale + Vector3.new(2,2,2)
  491. meshla.Scale = meshla.Scale + Vector3.new(.25,.25,0)
  492. EffectPart.Transparency = EffectPart.Transparency + .1
  493. RingPart.Transparency = RingPart.Transparency + .1
  494. P.Transparency = P.Transparency + .1
  495. end
  496. ----
  497. P:Destroy()
  498. EffectPart:Destroy()
  499. end)
  500. fu()
  501. end
  502.  
  503. --Material Return--
  504. gprop = {}
  505. function materialhit(hit)
  506. if hit.Parent ~= chara and hit.Parent.Parent ~= chara and hit.Name ~= "Trace" and hit.Parent:FindFirstChild("Humanoid") == nil then
  507. gprop = {hit.BrickColor,hit.Material}
  508. end
  509. end
  510. chara["Left Leg"].Touched:connect(materialhit)
  511. chara["Right Leg"].Touched:connect(materialhit)
  512.  
  513. --Clerp Animations--
  514. TC = chara.HumanoidRootPart.RootJoint
  515. HC = chara.Torso.Neck
  516. RAC = chara.Torso["Right Shoulder"]
  517. LAC = chara.Torso["Left Shoulder"]
  518. RLC = chara.Torso["Right Hip"]
  519. LLC = chara.Torso["Left Hip"]
  520. TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  521. HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  522. RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  523. LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  524. RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  525. LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  526. RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  527. LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  528. RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  529. LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  530. RW = Instance.new("Weld",HC.Parent)
  531. RW.Part1 = HC.Parent
  532. RW.Part0 = chara["Right Arm"]
  533. RW.C0 = RWF
  534. LW = Instance.new("Weld",HC.Parent)
  535. LW.Part1 = HC.Parent
  536. LW.Part0 = chara["Left Arm"]
  537. LW.C0 = LWF
  538. RLW = nil
  539. LLW = nil
  540.  
  541. function AddLegWelds()
  542. RLW = Instance.new("Weld",chara["Right Leg"])
  543. RLW.Part1 = HC.Parent
  544. RLW.Part0 = chara["Right Leg"]
  545. RLW.C0 = RLWF
  546. LLW = Instance.new("Weld",chara["Left Leg"])
  547. LLW.Part1 = HC.Parent
  548. LLW.Part0 = chara["Left Leg"]
  549. LLW.C0 = LLWF
  550. end
  551.  
  552. function DestroyLegWelds()
  553. 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),})
  554. 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),})
  555. RLW:Destroy()
  556. LLW:Destroy()
  557. end
  558.  
  559. function clerp(a,b,c)
  560. return a:lerp(b,c)
  561. end
  562.  
  563. --TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  564. --HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50))
  565. --RW.C0 = (RWF + Vector3.new(1,2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  566. --LW.C0 = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2))
  567.  
  568. TC.C0 = TCF
  569. HC.C0 = HCF
  570. RW.C0 = RWF
  571. LW.C0 = LWF
  572.  
  573. --Idle Clerp--
  574. ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(10))
  575. IHCF = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10))
  576. IRWF = RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-6))
  577. ILWF = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(6))
  578.  
  579. TC.C0 = ITCF
  580. HC.C0 = IHCF
  581. RW.C0 = IRWF
  582. LW.C0 = ILWF
  583.  
  584.  
  585. --Punch--
  586. function Punch()
  587. del = true
  588. atkd = true
  589. chara.Humanoid.WalkSpeed = 0
  590. punchactive = true
  591. wait(.01)
  592. SwingSnd:Play()
  593. wait(.01)
  594. for i = 0,.75,.25 do
  595. wait(.01)
  596. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-180)),TCF,.4+i)
  597. HC.C0 = clerp(IHCF,HCF,.4+i)
  598. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  599. end
  600. wait(.1)
  601. for i = 0,.6,.2 do
  602. wait(.01)
  603. TC.C0 = clerp(ITCF,TCF,.6-i)
  604. HC.C0 = clerp(IHCF,HCF,.6-i)
  605. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  606. end
  607. chara.Humanoid.WalkSpeed = 24
  608. punchactive = false
  609. del = false
  610. atkdd = true
  611. end
  612.  
  613. --Kick Atk--
  614. function KickAtk()
  615. del = true
  616. atkd = true
  617. chara.Humanoid.WalkSpeed = 0
  618. kickactive = true
  619. AddLegWelds()
  620. local bfos = Instance.new("BodyVelocity",chara.Torso)
  621. bfos.P = 10000
  622. bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P)
  623. bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 200
  624. debby:AddItem(bfos,.1)
  625. for i = 0,.75,.25 do
  626. wait(.05)
  627. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,math.rad(-85)),.4+i)
  628. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(85)),.4+i)
  629. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.3,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30)),.4+i)
  630. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.2,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i)
  631. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.4+i)
  632. RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(-1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.4+i)
  633. end
  634. for i = 0,.75,.25 do
  635. wait(.05)
  636. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,math.rad(-85)),.6-i)
  637. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(85)),.6-i)
  638. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.3,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30)),.6-i)
  639. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.2,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i)
  640. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.6-i)
  641. RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(-1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.6-i)
  642. end
  643. DestroyLegWelds()
  644. kickactive = false
  645. chara.Humanoid.WalkSpeed = 24
  646. del = false
  647. atkdd = true
  648. end
  649.  
  650. --Hard Punch--
  651. function HardPunch()
  652. del = true
  653. atkd = true
  654. chara.Humanoid.WalkSpeed = 0
  655. wait(.01)
  656. SwingSnd:Play()
  657. for i = 0,.6,.2 do
  658. wait(.001)
  659. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  660. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  661. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  662. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  663. end
  664. wait(.5)
  665. for i = 0,.6,.2 do
  666. wait(.001)
  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. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  670. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  671. end
  672. chara.Humanoid.WalkSpeed = 24
  673. atkdd = true
  674. del = false
  675. end
  676.  
  677. --Bandit Revolver--
  678. function FlipKickEffect(pos)
  679. local p = Instance.new("Part",game.Workspace)
  680. p.Size = Vector3.new(0,0,0)
  681. p.BrickColor = breekcolour[math.random(1,#breekcolour)]
  682. p.Material = "Neon"
  683. p.Anchored = true
  684. p.CanCollide = false
  685. p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  686. ExHitbox(5,p.Position,12,1,.1,0,5)
  687. PlaySnd(ExpSnd,chara)
  688. local pm = Instance.new("BlockMesh",p)
  689. local disp = coroutine.wrap(function()
  690. for i = 1, 4 do
  691. wait(.01)
  692. p.Transparency = p.Transparency + .2
  693. pm.Scale = pm.Scale + Vector3.new(5,5,5)
  694. end
  695. wait(.01)
  696. p:Destroy()
  697. end)
  698. disp()
  699. end
  700. function BanditRevolver()
  701. del = true
  702. atkd = true
  703. chara.Humanoid.WalkSpeed = 0
  704. kickactive = true
  705. dkickactive = true
  706. chatfunc("Radium Revolver!")
  707. AddLegWelds()
  708. local bfos = Instance.new("BodyVelocity",chara.Torso)
  709. bfos.P = 10000
  710. bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P)
  711. bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 40
  712. for i = 0,.6,.2 do
  713. wait(.01)
  714. TC.C0 = clerp(ITCF,(TCF + Vector3.new(0,1,0)),.4+i)
  715. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),.4+i)
  716. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.4+i)
  717. LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.4+i)
  718. RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
  719. end
  720. SwingSnd:Play()
  721. for i = 0,1,.25 do
  722. wait(.0001)
  723. TC.C0 = clerp((TCF + Vector3.new(0,1,0)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),i)
  724. FlipKickEffect(chara["Right Leg"].CFrame - chara["Right Leg"].CFrame.upVector*1.5)
  725. end
  726. for i = 0,1,.25 do
  727. wait(.0001)
  728. TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(360)),i)
  729. FlipKickEffect(chara["Right Leg"].CFrame - chara["Right Leg"].CFrame.upVector*1.5)
  730. end
  731. for i = 0,1,.25 do
  732. wait(.01)
  733. TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(270)),ITCF,i)
  734. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),IHCF,i)
  735. RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),IRWF,i)
  736. LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),ILWF,i)
  737. RLW.C0 = clerp((RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,i)
  738. end
  739. DestroyLegWelds()
  740. dkickactive = false
  741. kickactive = false
  742. chara.Humanoid.WalkSpeed = 24
  743. bfos:Destroy()
  744. del = false
  745. atkdd = true
  746. end
  747.  
  748. --Freezer Kick--
  749. function FlipKick()
  750. del = true
  751. atkd = true
  752. chatfunc("Hagar!")
  753. AddLegWelds()
  754. kickactive = true
  755. lkickactive = true
  756. local bfos = Instance.new("BodyVelocity",chara.Torso)
  757. bfos.P = 10000
  758. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  759. bfos.Velocity = Vector3.new(0,10,0) + chara.HumanoidRootPart.CFrame.lookVector * 50
  760. Swing2Snd:Play()
  761. for i = 0,.6,.2 do
  762. wait(.001)
  763. TC.C0 = clerp(ITCF,(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
  764. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i)
  765. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.4+i)
  766. LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.4+i)
  767. RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
  768. FlipKickEffect(chara["Right Leg"].CFrame - chara["Right Leg"].CFrame.upVector*1.5)
  769. end
  770. for i = 1, 3 do
  771. wait(.001)
  772. FlipKickEffect(chara["Right Leg"].CFrame - chara["Right Leg"].CFrame.upVector*1.5)
  773. end
  774. bfos:Destroy()
  775. kickactive = false
  776. lkickactive = false
  777. wait(.25)
  778. for i = 0,1,.25 do
  779. wait(.001)
  780. TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),ITCF,.4+i)
  781. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),IHCF,.4+i)
  782. RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),IRWF,.4+i)
  783. LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),ILWF,.4+i)
  784. RLW.C0 = clerp((RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,.4+i)
  785. end
  786. DestroyLegWelds()
  787. del = false
  788. end
  789.  
  790. --Alpha Blast--
  791. function ABlast()
  792. del = true
  793. atkd = true
  794. chatfunc("Spectrum Blast!")
  795. for i = 0,.6,.2 do
  796. wait(.001)
  797. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  798. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  799. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  800. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  801. end
  802. TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  803. HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  804. RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  805. LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  806. for i = 1, 2 do
  807. PlaySnd(GunFlameSnd,chara)
  808. local missile = Instance.new("Part",game.Workspace)
  809. missile.Size = Vector3.new(1,1,1)
  810. missile.Name = "Blast"
  811. missile.Material = "Neon"
  812. missile.Position = EmitPart.Position
  813. missile.CFrame = EmitPart.CFrame
  814. missile.Velocity = ((targetted.Head.Position - Vector3.new(0,2,0)) - chara.HumanoidRootPart.Position).unit*200
  815. local p1mit = createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect")
  816. local powa = createrainbow(barcolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(1),NumberSequence.new(normallife),NumberRange.new(.5),"Front",NumberRange.new(10),Vector3.new(0,0,0),1000,false,"PowerEffect")
  817. powa.Enabled = false
  818. local mesh1 = Instance.new("SpecialMesh",missile)
  819. mesh1.MeshType = "Sphere"
  820. local force = Instance.new("BodyForce")
  821. force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0)
  822. force.Parent = missile
  823. missile.Touched:connect(function(hit)
  824. if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and missile.Anchored == false) then
  825. missile.Anchored = true
  826. ExHitbox(3,missile.Position,12,1,.1,0,5)
  827. PlaySnd(BulletLSnd,hit)
  828. p1mit.Enabled = false
  829. powa.Enabled = true
  830. wait(0.1)
  831. powa.Enabled = false
  832. missile.Transparency = .25
  833. missile.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  834. wait(0.1)
  835. missile.Transparency = .5
  836. missile.Mesh.Scale = Vector3.new(2,2,2)
  837. wait(0.1)
  838. missile.Transparency = .75
  839. missile.Mesh.Scale = Vector3.new(2.5,2.5,2.5)
  840. wait(0.1)
  841. missile:Destroy()
  842. end
  843. end)
  844. wait(.1)
  845. for i = 0,.6,.2 do
  846. wait(.001)
  847. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  848. end
  849. TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  850. HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  851. RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  852. LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  853. PlaySnd(GunFlameSnd,chara)
  854. local missile = Instance.new("Part",game.Workspace)
  855. missile.Size = Vector3.new(1,1,1)
  856. missile.Name = "Blast"
  857. missile.Material = "Neon"
  858. missile.Position = Emit2Part.Position
  859. missile.CFrame = Emit2Part.CFrame
  860. missile.Velocity = ((targetted.Head.Position - Vector3.new(0,2,0)) - chara.HumanoidRootPart.Position).unit*200
  861. local p1mit = createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect")
  862. local powa = createrainbow(barcolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(1),NumberSequence.new(normallife),NumberRange.new(.5),"Front",NumberRange.new(10),Vector3.new(0,0,0),1000,false,"PowerEffect")
  863. powa.Enabled = false
  864. local mesh1 = Instance.new("SpecialMesh",missile)
  865. mesh1.MeshType = "Sphere"
  866. local force = Instance.new("BodyForce")
  867. force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0)
  868. force.Parent = missile
  869. missile.Touched:connect(function(hit)
  870. if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and missile.Anchored == false) then
  871. missile.Anchored = true
  872. ExHitbox(3,missile.Position,12,1,.1,0,5)
  873. PlaySnd(BulletLSnd,hit)
  874. p1mit.Enabled = false
  875. powa.Enabled = true
  876. wait(0.1)
  877. powa.Enabled = false
  878. missile.Transparency = .25
  879. missile.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  880. wait(0.1)
  881. missile.Transparency = .5
  882. missile.Mesh.Scale = Vector3.new(2,2,2)
  883. wait(0.1)
  884. missile.Transparency = .75
  885. missile.Mesh.Scale = Vector3.new(2.5,2.5,2.5)
  886. wait(0.1)
  887. missile:Destroy()
  888. end
  889. end)
  890. wait(.1)
  891. for i = 0,.6,.2 do
  892. wait(.001)
  893. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  894. end
  895. TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  896. HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  897. RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  898. LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  899. end
  900. PlaySnd(GunFlameSnd,chara)
  901. local missile = Instance.new("Part",game.Workspace)
  902. missile.Size = Vector3.new(1,1,1)
  903. missile.Name = "Blast"
  904. missile.Material = "Neon"
  905. missile.Position = EmitPart.Position
  906. missile.CFrame = EmitPart.CFrame
  907. missile.Velocity = ((targetted.Head.Position - Vector3.new(0,2,0)) - chara.HumanoidRootPart.Position).unit*200
  908. local p1mit = createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect")
  909. local powa = createrainbow(barcolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(1),NumberSequence.new(normallife),NumberRange.new(.5),"Front",NumberRange.new(10),Vector3.new(0,0,0),1000,false,"PowerEffect")
  910. powa.Enabled = false
  911. local mesh1 = Instance.new("SpecialMesh",missile)
  912. mesh1.MeshType = "Sphere"
  913. local force = Instance.new("BodyForce")
  914. force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0)
  915. force.Parent = missile
  916. missile.Touched:connect(function(hit)
  917. if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and missile.Anchored == false) then
  918. missile.Anchored = true
  919. ExHitbox(3,missile.Position,12,1,.1,0,5)
  920. PlaySnd(BulletLSnd,hit)
  921. p1mit.Enabled = false
  922. powa.Enabled = true
  923. wait(0.1)
  924. powa.Enabled = false
  925. missile.Transparency = .25
  926. missile.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  927. wait(0.1)
  928. missile.Transparency = .5
  929. missile.Mesh.Scale = Vector3.new(2,2,2)
  930. wait(0.1)
  931. missile.Transparency = .75
  932. missile.Mesh.Scale = Vector3.new(2.5,2.5,2.5)
  933. wait(0.1)
  934. missile:Destroy()
  935. end
  936. end)
  937. wait(.1)
  938. for i = 0,.6,.2 do
  939. wait(.001)
  940. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  941. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  942. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  943. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  944. end
  945. del = false
  946. atkdd = true
  947. end
  948.  
  949. --Grab Move--
  950. function GrabMove()
  951. del = true
  952. atkd = true
  953. chara.Humanoid.WalkSpeed = 0
  954. chatfunc("Have this.")
  955. exeact = true
  956. wait(.01)
  957. SwingSnd:Play()
  958. local bfos = Instance.new("BodyVelocity",chara.Torso)
  959. bfos.P = 10000
  960. bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P)
  961. bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 500
  962. debby:AddItem(bfos,.1)
  963. for i = 0,.6,.2 do
  964. wait(.001)
  965. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  966. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  967. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  968. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  969. end
  970. wait(.5)
  971. if exed == true then
  972. exeact = false
  973. for i = 0,.6,.2 do
  974. wait(.001)
  975. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(-60),math.rad(90)),.4+i)
  976. LW.C0 = clerp((LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(150)),.4+i)
  977. end
  978. wait(.5)
  979. PlaySnd(GunFlameSnd,chara)
  980. PlaySnd(ExpSnd,chara)
  981. local hitpt = Instance.new("Part",game.Workspace)
  982. hitpt.Size = Vector3.new(1,1,1)
  983. hitpt.Anchored = true
  984. hitpt.CanCollide = false
  985. hitpt.BrickColor = breekcolour[math.random(1,#breekcolour)]
  986. hitpt.CFrame = Emit2Part.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  987. local hitb = Instance.new("Part",game.Workspace)
  988. hitb.Size = Vector3.new(1,1,1)
  989. hitb.Anchored = true
  990. hitb.CanCollide = false
  991. hitb.BrickColor = BrickColor.new("Institutional white")
  992. hitb.Material = "Neon"
  993. hitb.CFrame = CFrame.new(hitpt.Position.x,hitpt.Position.y,hitpt.Position.z) * CFrame.fromEulerAnglesXYZ(math.random(math.rad(-30),math.rad(30)),math.random(math.rad(-30),math.rad(30)),math.random(math.rad(-30),math.rad(30)))
  994. local hitbm = Instance.new("SpecialMesh",hitb)
  995. hitbm.MeshType = "Sphere"
  996. hitbm.Scale = Vector3.new(1,1,1)
  997. local hitm = Instance.new("SpecialMesh",hitpt)
  998. hitm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  999. local hpt = coroutine.wrap(function()
  1000. for i = 1, 9 do
  1001. wait(.05)
  1002. hitpt.Transparency = hitpt.Transparency + .1
  1003. hitm.Scale = hitm.Scale + Vector3.new(.5,.5,.5)
  1004. hitb.Transparency = hitb.Transparency + .1
  1005. hitbm.Scale = hitbm.Scale + Vector3.new(.5,.5,.5)
  1006. end
  1007. hitpt:Destroy()
  1008. hitb:Destroy()
  1009. end)
  1010. hpt()
  1011. exed = false
  1012. weldd:Destroy()
  1013. ExHitbox(5,Emit2Part.Position,24,2,.1,50,50)
  1014. wait(1)
  1015. for i = 0,.6,.2 do
  1016. wait(.001)
  1017. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  1018. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(-60),math.rad(90)),.6-i)
  1019. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-150)),.6-i)
  1020. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  1021. end
  1022. elseif exed == false then
  1023. exeact = false
  1024. for i = 0,.6,.2 do
  1025. wait(.001)
  1026. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  1027. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  1028. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  1029. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  1030. end
  1031. end
  1032. chara.Humanoid.WalkSpeed = 24
  1033. atkdd = true
  1034. del = false
  1035. end
  1036.  
  1037. --Ray Overdrive--
  1038. function RayOver()
  1039. del = true
  1040. atkd = true
  1041. chara.Humanoid.WalkSpeed = 0
  1042. chatfunc("Rainbow Overdrive!")
  1043. SuperPause()
  1044. chara.Humanoid.PlatformStand = true
  1045. local bpos = Instance.new("BodyPosition",chara.Torso)
  1046. bpos.P = 100000
  1047. bpos.MaxForce = Vector3.new(bpos.P,bpos.P,bpos.P)
  1048. bpos.Position = chara.Torso.Position + Vector3.new(0,10,0)
  1049. local bgy = Instance.new("BodyGyro",chara.Torso)
  1050. bgy.MaxTorque = Vector3.new(10000,10000,10000)
  1051. local bgylook = coroutine.wrap(function()
  1052. local Targ = nil
  1053. while wait() do
  1054. if targetted ~= nil and targetted:FindFirstChild("Head")~= nil then
  1055. Targ = targetted.Head.Position
  1056. else
  1057. Targ = Mouse.Hit.p
  1058. end
  1059. bgy.CFrame = CFrame.new(chara.HumanoidRootPart.Position,Targ)
  1060. bgy.MaxTorque = Vector3.new(10000,10000,10000)
  1061. end
  1062. end)
  1063. bgylook()
  1064. for i = 0,.6,.2 do
  1065. wait(.001)
  1066. TC.C0 = clerp(ITCF,TCF,.4+i)
  1067. HC.C0 = clerp(IHCF,HCF,.4+i)
  1068. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  1069. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  1070. end
  1071. TC.C0 = TCF
  1072. HC.C0 = HCF
  1073. RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  1074. LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  1075. wait(.5)
  1076. ChargeSnd:Play()
  1077. wait(1.5)
  1078. LasSnd:Play()
  1079. LasLoopSnd:Play()
  1080. for i = 0,.6,.2 do
  1081. wait(.001)
  1082. RW.C0 = clerp((RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),(RWF + Vector3.new(0,.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-135),0,0),.4+i)
  1083. LW.C0 = clerp((LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),(LWF + Vector3.new(0,.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-135),0,0),.4+i)
  1084. end
  1085. for i = 1, 100 do
  1086. wait(.001)
  1087. Laser()
  1088. end
  1089. LasLoopSnd:Stop()
  1090. for i = 0,.6,.2 do
  1091. wait(.001)
  1092. TC.C0 = clerp(TCF,ITCF,.4+i)
  1093. HC.C0 = clerp(HCF,IHCF,.4+i)
  1094. RW.C0 = clerp((RWF + Vector3.new(0,.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-135),0,0),IRWF,.4+i)
  1095. LW.C0 = clerp((LWF + Vector3.new(0,.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-135),0,0),ILWF,.4+i)
  1096. end
  1097. bgy:Destroy()
  1098. bpos:Destroy()
  1099. chara.Humanoid.PlatformStand = false
  1100. del = false
  1101. atkdd = true
  1102. chara.Humanoid.WalkSpeed = 24
  1103. end
  1104.  
  1105. function RocketBlast()
  1106. del = true
  1107. atkd = true
  1108. chatfunc("Rocket Barrage!")
  1109. SuperPause()
  1110. for i = 0,.6,.2 do
  1111. wait(.001)
  1112. TC.C0 = clerp(ITCF,TCF,.4+i)
  1113. HC.C0 = clerp(IHCF,HCF,.4+i)
  1114. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  1115. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  1116. end
  1117. TC.C0 = TCF
  1118. HC.C0 = HCF
  1119. RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  1120. LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  1121. local bpos = Instance.new("BodyPosition",chara.Torso)
  1122. bpos.Position = chara.Torso.Position + Vector3.new(0,20,0)
  1123. bpos.MaxForce = Vector3.new(10000,10000,10000)
  1124. wait(1)
  1125. for i = 1,3 do
  1126. RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  1127. LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  1128. MissileSnd:Play()
  1129. local missile = Instance.new("Part",game.Workspace)
  1130. missile.Size = Vector3.new(0,0,1.2)
  1131. missile.Name = "Blast"
  1132. missile.TopSurface = 0
  1133. missile.BottomSurface = 0
  1134. missile.Position = BulletSpawn1.Position
  1135. missile.CFrame = BulletSpawn1.CFrame
  1136. missile.Velocity = BulletSpawn1.CFrame.lookVector*100
  1137. missile.CFrame = CFrame.new(BulletSpawn1.Position,BulletSpawn1.Position + BulletSpawn1.CFrame.upVector*2)
  1138. local p1mit = Instance.new("ParticleEmitter",missile)
  1139. p1mit.Texture = "rbxasset://textures/particles/smoke_main.dds"
  1140. p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Bright orange").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Bright yellow").Color)})
  1141. p1mit.LightEmission = 1
  1142. p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  1143. p1mit.Lifetime = NumberRange.new(1)
  1144. p1mit.Rate = 10000
  1145. p1mit.Rotation = NumberRange.new(0,359)
  1146. p1mit.RotSpeed = NumberRange.new(100)
  1147. p1mit.Speed = NumberRange.new(0)
  1148. local mesh1 = Instance.new("SpecialMesh",missile)
  1149. mesh1.MeshId = "http://www.roblox.com/asset/?id=111879014"
  1150. mesh1.TextureId = "http://www.roblox.com/asset/?id=111878985"
  1151. mesh1.Scale = Vector3.new(1.2,1.2,1.2)
  1152. local force = Instance.new("BodyForce")
  1153. force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0)
  1154. force.Parent = missile
  1155. local bf = Instance.new("BodyVelocity",missile)
  1156. bf.P = 10000
  1157. bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
  1158. bf.Velocity = BulletSpawn1.CFrame.upVector*100
  1159. local gy = Instance.new("BodyGyro",missile)
  1160. gy.MaxTorque = Vector3.new(0,0,0)
  1161. local chase = coroutine.wrap(function()
  1162. wait(.3)
  1163. while wait() do
  1164. if targetted ~= nil then
  1165. local torsy = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
  1166. bf.Velocity = (torsy.Position - missile.Position).unit*100
  1167. gy.CFrame = CFrame.new(missile.Position, targetted.Head.Position)
  1168. gy.maxTorque = Vector3.new(9000,9000,9000)
  1169. end
  1170. end
  1171. end)
  1172. chase()
  1173. missile.Touched:connect(function(hit)
  1174. if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and missile.Anchored == false) then
  1175. missile.Anchored = true
  1176. PlaySnd(ExpSnd,missile)
  1177. p1mit.Enabled = false
  1178. mesh1.MeshId = "http://www.roblox.com/asset/?id=1290033"
  1179. mesh1.TextureId = "http://www.roblox.com/asset/?id=3126553"
  1180. ExHitbox(8,missile.Position,15,3,.05,30,50)
  1181. wait(0.1)
  1182. missile.Transparency = .25
  1183. missile.Mesh.Scale = Vector3.new(2,2,2)
  1184. wait(0.1)
  1185. missile.Transparency = .5
  1186. missile.Mesh.Scale = Vector3.new(4,4,4)
  1187. wait(0.1)
  1188. missile.Transparency = .75
  1189. missile.Mesh.Scale = Vector3.new(6,6,6)
  1190. wait(0.1)
  1191. missile:Destroy()
  1192. end
  1193. end)
  1194. wait(.1)
  1195. debby:AddItem(missile,10)
  1196. MissileSnd:Play()
  1197. local missile2 = Instance.new("Part",game.Workspace)
  1198. missile2.Size = Vector3.new(0,0,1.2)
  1199. missile2.Name = "Blast"
  1200. missile2.TopSurface = 0
  1201. missile2.BottomSurface = 0
  1202. missile2.Position = BulletSpawn2.Position
  1203. missile2.CFrame = BulletSpawn2.CFrame
  1204. missile2.Velocity = BulletSpawn2.CFrame.lookVector*100
  1205. missile2.CFrame = CFrame.new(BulletSpawn2.Position,BulletSpawn2.Position + BulletSpawn2.CFrame.upVector*2)
  1206. local p2mit = Instance.new("ParticleEmitter",missile2)
  1207. p2mit.Texture = "rbxasset://textures/particles/smoke_main.dds"
  1208. p2mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Bright orange").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Bright yellow").Color)})
  1209. p2mit.LightEmission = 1
  1210. p2mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  1211. p2mit.Lifetime = NumberRange.new(1)
  1212. p2mit.Rate = 10000
  1213. p2mit.Rotation = NumberRange.new(0,359)
  1214. p2mit.RotSpeed = NumberRange.new(100)
  1215. p2mit.Speed = NumberRange.new(0)
  1216. local mesh2 = Instance.new("SpecialMesh",missile2)
  1217. mesh2.MeshId = "http://www.roblox.com/asset/?id=111879014"
  1218. mesh2.TextureId = "http://www.roblox.com/asset/?id=111878985"
  1219. mesh2.Scale = Vector3.new(1.2,1.2,1.2)
  1220. local force2 = Instance.new("BodyForce")
  1221. force2.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0)
  1222. force2.Parent = missile2
  1223. local bf2 = Instance.new("BodyVelocity",missile2)
  1224. bf2.P = 10000
  1225. bf2.MaxForce = Vector3.new(bf2.P,bf2.P,bf2.P)
  1226. bf2.Velocity = BulletSpawn2.CFrame.upVector*100
  1227. local gy2 = Instance.new("BodyGyro",missile2)
  1228. gy2.MaxTorque = Vector3.new(0,0,0)
  1229. local chase2 = coroutine.wrap(function()
  1230. wait(.3)
  1231. while wait() do
  1232. if targetted ~= nil then
  1233. local torsy = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
  1234. bf2.Velocity = (torsy.Position - missile2.Position).unit*100
  1235. gy2.CFrame = CFrame.new(missile2.Position, targetted.Head.Position)
  1236. gy2.maxTorque = Vector3.new(9000,9000,9000)
  1237. end
  1238. end
  1239. end)
  1240. chase2()
  1241. missile2.Touched:connect(function(hit)
  1242. if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and missile2.Anchored == false) then
  1243. missile2.Anchored = true
  1244. PlaySnd(ExpSnd,missile2)
  1245. p2mit.Enabled = false
  1246. mesh2.MeshId = "http://www.roblox.com/asset/?id=1290033"
  1247. mesh2.TextureId = "http://www.roblox.com/asset/?id=3126553"
  1248. ExHitbox(8,missile2.Position,15,3,.05,30,50)
  1249. wait(0.1)
  1250. missile2.Transparency = .25
  1251. missile2.Mesh.Scale = Vector3.new(2,2,2)
  1252. wait(0.1)
  1253. missile2.Transparency = .5
  1254. missile2.Mesh.Scale = Vector3.new(4,4,4)
  1255. wait(0.1)
  1256. missile2.Transparency = .75
  1257. missile2.Mesh.Scale = Vector3.new(6,6,6)
  1258. wait(0.1)
  1259. missile2:Destroy()
  1260. end
  1261. end)
  1262. debby:AddItem(missile2,10)
  1263. wait(.1)
  1264. end
  1265. for i = 0,.6,.2 do
  1266. wait(.001)
  1267. TC.C0 = clerp(ITCF,TCF,.6-i)
  1268. HC.C0 = clerp(IHCF,HCF,.6-i)
  1269. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  1270. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  1271. end
  1272. bpos:Destroy()
  1273. atkdd = true
  1274. del = false
  1275. end
  1276.  
  1277. --Slice--
  1278. function Slicer()
  1279. del = true
  1280. atkd = true
  1281. chara.Humanoid.WalkSpeed = 0
  1282. punchactive = true
  1283. wait(.01)
  1284. SwingSnd:Play()
  1285. wait(.01)
  1286. for i = 0,.75,.25 do
  1287. wait(.01)
  1288. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-180)),TCF,.4+i)
  1289. HC.C0 = clerp(IHCF,HCF,.4+i)
  1290. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  1291. end
  1292. wait(.1)
  1293. for i = 1, 15 do
  1294. wait(.001)
  1295. PlaySnd(SwingSnd,chara)
  1296. local RingPart = Instance.new("Part",game.Workspace)
  1297. RingPart.Size = Vector3.new(0,0,0)
  1298. RingPart.Anchored = true
  1299. RingPart.BrickColor = breekcolour[math.random(1,#breekcolour)]
  1300. RingPart.CFrame = (chara.HumanoidRootPart.CFrame + chara.HumanoidRootPart.CFrame.lookVector*10) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,359)),math.rad(math.random(0,359)),math.rad(math.random(0,359)))
  1301. local mehs2 = Instance.new("SpecialMesh",RingPart)
  1302. mehs2.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1303. mehs2.Scale = Vector3.new(6,6,1)
  1304. ExHitbox(10,RingPart.Position,20,2,.1,0,5)
  1305. local fu = coroutine.wrap(function()
  1306. for i = 1, 10 do
  1307. wait(.001)
  1308. mehs2.Scale = mehs2.Scale + Vector3.new(3,3,0)
  1309. RingPart.Transparency = RingPart.Transparency + .1
  1310. end
  1311. end)
  1312. fu()
  1313. end
  1314. for i = 0,.6,.2 do
  1315. wait(.01)
  1316. TC.C0 = clerp(ITCF,TCF,.6-i)
  1317. HC.C0 = clerp(IHCF,HCF,.6-i)
  1318. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  1319. end
  1320. chara.Humanoid.WalkSpeed = 24
  1321. del = false
  1322. atkdd = true
  1323. end
  1324.  
  1325. --Lock On--
  1326. function LockOn()
  1327. if Mouse.Target.Parent ~= chara and Mouse.Target.Parent.Parent ~= chara and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1328. TargetSelect(Mouse.Target.Parent)
  1329. TargetSnd:Play()
  1330. wait(.05)
  1331. TargetSnd:Play()
  1332. else end
  1333. end
  1334.  
  1335. --Block--
  1336. blockval = false
  1337. healthlock = 0
  1338. effeff = nil
  1339. function ToggleBlock()
  1340. if blockval == false then
  1341. del = true
  1342. blockval = true
  1343. SwingSnd:Play()
  1344. healthlock = chara.Humanoid.Health
  1345. effeff = Instance.new("ForceField",chara)
  1346. effeff.Name = "FawsFeeld"
  1347. effeff.Visible = false
  1348. for i = 0,.75,.25 do
  1349. wait(.0001)
  1350. TC.C0 = clerp(ITCF,TCF,.4+i)
  1351. HC.C0 = clerp(IHCF,HCF,.4+i)
  1352. LW.C0 = clerp(ILWF,(LWF + Vector3.new(-.5,1,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.4+i)
  1353. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.4+i)
  1354. end
  1355. elseif blockval == true then
  1356. SwingSnd:Play()
  1357. effeff:Destroy()
  1358. blockval = false
  1359. for i = 0,.6,.2 do
  1360. wait(.0001)
  1361. TC.C0 = clerp(ITCF,TCF,.6-i)
  1362. HC.C0 = clerp(IHCF,HCF,.6-i)
  1363. LW.C0 = clerp(ILWF,(LWF + Vector3.new(-.5,1,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.6-i)
  1364. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.6-i)
  1365. end
  1366. del = false
  1367. atkdd = true
  1368. end
  1369. end
  1370.  
  1371. --Mouse Functions--
  1372. orbpushactive = false
  1373. del = false
  1374. input = ""
  1375. letterd = 0
  1376. ltoim = 0
  1377. function onKeyDown(key)
  1378. if key == "e" then
  1379. --ToggleBlock()
  1380. elseif del == false then
  1381. if key == "q" then
  1382. if input == "sd" and targetted ~= nil then
  1383. ABlast()
  1384. elseif input == "dsas" then
  1385. RayOver()
  1386. elseif input == "dasd" and targetted ~= nil then
  1387. RocketBlast()
  1388. elseif input == "add" then
  1389. GrabMove()
  1390. elseif input == "ss" then
  1391. Slicer()
  1392. else LockOn() end
  1393. input = ""
  1394. letterd = 0
  1395. ltoim = 0
  1396. elseif key == "z" then
  1397. Punch()
  1398. input = ""
  1399. letterd = 0
  1400. ltoim = 0
  1401. elseif key == "x" then
  1402. if input == "sa" then
  1403. BanditRevolver()
  1404. elseif input == "ss" then
  1405. FlipKick()
  1406. else KickAtk() end
  1407. input = ""
  1408. letterd = 0
  1409. ltoim = 0
  1410. elseif key == "c" then
  1411. input = ""
  1412. letterd = 0
  1413. ltoim = 0
  1414. elseif (key == "w" or key == "a" or key == "s" or key == "d") then
  1415. input=input..key
  1416. print(input)
  1417. letterd = letterd + 1
  1418. ltoim = ltoim + 10
  1419. if letterd > 5 then
  1420. input = ""
  1421. letterd = 0
  1422. ltoim = 0
  1423. end
  1424. elseif key == "m" then
  1425. if Music.IsPlaying == true then
  1426. Music:Stop()
  1427. elseif Music.IsPlaying == false then
  1428. Music:Play()
  1429. end
  1430. end
  1431. end
  1432. end
  1433. combo = 0
  1434.  
  1435. --Mouse Activation--
  1436. if Mouse then
  1437. Mouse.KeyDown:connect(onKeyDown)
  1438. end
  1439.  
  1440. --Loop Function--
  1441. walking = false
  1442. toim = 0
  1443. while true do
  1444. wait()
  1445. toim = toim + .1
  1446. ltoim = ltoim - 1
  1447. if ltoim < 1 then
  1448. input = ""
  1449. end
  1450. chara.Humanoid.MaxHealth = math.huge
  1451. chara.Humanoid.Health = math.huge
  1452.  
  1453. if blockval == true then
  1454. chara.Humanoid.Health = healthlock
  1455. end
  1456. if atkd == true then
  1457. TC.C0 = TCF
  1458. HC.C0 = HCF
  1459. RW.C0 = RWF
  1460. LW.C0 = LWF
  1461. atkd = false
  1462. end
  1463. if atkdd == true then
  1464. TC.C0 = ITCF
  1465. HC.C0 = IHCF
  1466. RW.C0 = IRWF
  1467. LW.C0 = ILWF
  1468. atkdd = false
  1469. end
  1470. torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1471. if torvel < 1 and walking == true and del == false and atkd == false then
  1472. for i = 0,1,.5 do
  1473. wait(.001)
  1474. if del == false then
  1475. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,i)
  1476. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,i)
  1477. RW.C0 = IRWF
  1478. LW.C0 = ILWF
  1479. end
  1480. end
  1481. walking = false
  1482. elseif torvel > 1 and walking == false and del == false and atkd == false then
  1483. for i = 0,1,.5 do
  1484. wait(.001)
  1485. if del == false then
  1486. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),i)
  1487. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),i)
  1488. RW.C0 = IRWF
  1489. LW.C0 = ILWF
  1490. end
  1491. end
  1492. walking = true
  1493. else
  1494. end
  1495. imgl.Rotation = imgl.Rotation + 3
  1496. if targetted ~= nil then
  1497. crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
  1498. crosshair.Enabled = true
  1499. elseif targetted == nil then
  1500. crosshair.Adornee = nil
  1501. crosshair.Enabled = false
  1502. end
  1503. end
Add Comment
Please, Sign In to add comment