Advertisement
CHARA-SCRIPTER

Blue4

Feb 12th, 2018
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 109.14 KB | None | 0 0
  1. warn'Blue'
  2. warn'A Good friend, willing to protect his friends for anything. HE IS SUCH A CINNAMON ROLL!'
  3. ---- DO NOT CHANGE ANYTHING BELOW IF YOU'RE NOT AN EDITOR
  4. plr = game.Players.LocalPlayer
  5. char = plr.Character
  6. hum = char.Humanoid
  7. local cam = game.Workspace.CurrentCamera
  8. t = char.Torso
  9. h = char.Head
  10. ra = char["Right Arm"]
  11. la = char["Left Arm"]
  12. rl = char["Right Leg"]
  13. ll = char["Left Leg"]
  14. tors = char.Torso
  15. lleg = char["Left Leg"]
  16. root = char.HumanoidRootPart
  17. hed = char.Head
  18. rleg = char["Right Leg"]
  19. rarm = char["Right Arm"]
  20. larm = char["Left Arm"]
  21. it = Instance.new
  22. vt = Vector3.new
  23. bc = BrickColor.new
  24. br = BrickColor.random
  25. it = Instance.new
  26. cf = CFrame.new
  27.  
  28. local move1name = "Blue Slash"
  29. local move2name = "Ferris Wheel Attack"
  30. local move3name = "Navy Sting"
  31. local move4name = "Rush of the Terror"
  32.  
  33. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  34.   local gui = it(GuiType)
  35.   gui.Parent = parent
  36.   gui.Text = text
  37.   gui.BackgroundTransparency = backtrans
  38.   gui.BackgroundColor3 = backcol
  39.   gui.SizeConstraint = "RelativeXY"
  40.   gui.TextXAlignment = "Center"
  41.   gui.TextYAlignment = "Center"
  42.   gui.Position = pos
  43.   gui.Size = size
  44.   gui.Font = "SourceSans"
  45.   gui.FontSize = "Size14"
  46.   gui.TextWrapped = false
  47.   gui.TextStrokeTransparency = 0
  48.   gui.TextColor = BrickColor.new("White")
  49.   return gui
  50. end
  51. ---- GUI set
  52. local maingui = it("GuiMain")
  53. maingui.Parent = plr.PlayerGui
  54. maingui.Name = "CooldownsGUI"
  55. local mframe = it("Frame")
  56. mframe.Parent = maingui
  57. mframe.BackgroundColor3 = Color3.new(255, 255, 255)
  58. mframe.BackgroundTransparency = 1
  59. mframe.BorderColor3 = Color3.new(17, 17, 17)
  60. mframe.Size = UDim2.new(0.2, 0, 0.2, 0)
  61. mframe.Position = UDim2.new(0.8, 0, 0.8, 0)
  62.  
  63. local mainguicolor = BrickColor.new("Toothpaste").Color
  64.  
  65. hpbar = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.5, 0, -0.515, 0), UDim2.new(1.25, 0, 0.15, 0))
  66. hpbar.ZIndex = 2
  67. hpbar.Font = "Code"
  68. hpbar.BackgroundTransparency = 0.5
  69. hpbar.BorderSizePixel = 0
  70. hpbar.TextScaled = true
  71. hpbar.Text = ""
  72. hpbar.BorderColor3 = Color3.new(0,0,0)
  73. hpbar.TextSize = 24
  74. local hpbarup = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,1,0), UDim2.new(-0.5, 0, -0.515, 0), UDim2.new(0.1, 0, 0.15, 0))
  75. hpbarup.ZIndex = 2
  76. hpbarup.Font = "Code"
  77. hpbarup.BackgroundTransparency = 0
  78. hpbarup.BorderSizePixel = 0
  79. hpbarup.TextScaled = true
  80. hpbarup.Text = ""
  81. hpbarup.BorderColor3 = Color3.new(0,0,0)
  82. hpbarup.TextSize = 24
  83. hptext = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.5, 0, -0.515, 0), UDim2.new(1.25, 0, 0.15, 0))
  84. hptext.ZIndex = 2
  85. hptext.Font = "Arcade"
  86. hptext.TextStrokeTransparency = 0.85
  87. hptext.BackgroundTransparency = 1
  88. hptext.BorderSizePixel = 0
  89. hptext.TextScaled = true
  90. hptext.Text = math.floor(hum.Health).. " / " ..math.floor(hum.MaxHealth)
  91. hptext.BorderColor3 = Color3.new(0,0,0)
  92. hptext.TextSize = 24
  93.  
  94.  
  95. cdbuttonhintZ = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.5, 0, -0.25, 0), UDim2.new(0.25, 0, 0.25, 0))
  96. cdbuttonhintZ.ZIndex = 2
  97. cdbuttonhintZ.Font = "Code"
  98. cdbuttonhintZ.BackgroundTransparency = 0
  99. cdbuttonhintZ.BorderSizePixel = 0.5
  100. cdbuttonhintZ.TextScaled = true
  101. cdbuttonhintZ.Text = "Z"
  102. cdbuttonhintZ.BorderColor3 = Color3.new(0,0,0)
  103. cdbuttonhintZ.TextSize = 24
  104. cdbarZ = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, -0.25, 0), UDim2.new(1, 0, 0.25, 0))
  105. cdbarZ.ZIndex = 2
  106. cdbarZ.Font = "Code"
  107. cdbarZ.BackgroundTransparency = 0.5
  108. cdbarZ.BorderSizePixel = 0
  109. cdbarZ.TextScaled = true
  110. cdbarZ.Text = ""
  111. cdbarZ.BorderColor3 = Color3.new(0,0,0)
  112. cdbarZ.TextSize = 24
  113. local cdbarupZ = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.25, 0, -0.25, 0), UDim2.new(0.1, 0, 0.25, 0))
  114. cdbarupZ.ZIndex = 2
  115. cdbarupZ.Font = "Code"
  116. cdbarupZ.BackgroundTransparency = 0.25
  117. cdbarupZ.BorderSizePixel = 0
  118. cdbarupZ.TextScaled = true
  119. cdbarupZ.Text = ""
  120. cdbarupZ.BorderColor3 = Color3.new(0,0,0)
  121. cdbarupZ.TextSize = 24
  122. cdtextZ = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, -0.25, 0), UDim2.new(1, 0, 0.25, 0))
  123. cdtextZ.ZIndex = 2
  124. cdtextZ.Font = "Code"
  125. cdtextZ.BackgroundTransparency = 1
  126. cdtextZ.BorderSizePixel = 0
  127. cdtextZ.TextScaled = true
  128. cdtextZ.Text = move1name
  129. cdtextZ.BorderColor3 = Color3.new(0,0,0)
  130. cdtextZ.TextSize = 24
  131.  
  132. cdbuttonhintX = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.5, 0, 0.015, 0), UDim2.new(0.25, 0, 0.25, 0))
  133. cdbuttonhintX.ZIndex = 2
  134. cdbuttonhintX.Font = "Code"
  135. cdbuttonhintX.BackgroundTransparency = 0
  136. cdbuttonhintX.BorderSizePixel = 0.5
  137. cdbuttonhintX.TextScaled = true
  138. cdbuttonhintX.Text = "X"
  139. cdbuttonhintX.BorderColor3 = Color3.new(0,0,0)
  140. cdbuttonhintX.TextSize = 24
  141. cdbarX = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, 0.015, 0), UDim2.new(1, 0, 0.25, 0))
  142. cdbarX.ZIndex = 2
  143. cdbarX.Font = "Code"
  144. cdbarX.BackgroundTransparency = 0.5
  145. cdbarX.BorderSizePixel = 0
  146. cdbarX.TextScaled = true
  147. cdbarX.Text = ""
  148. cdbarX.BorderColor3 = Color3.new(0,0,0)
  149. cdbarX.TextSize = 24
  150. local cdbarupX = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.25, 0, 0.015, 0), UDim2.new(0.1, 0, 0.25, 0))
  151. cdbarupX.ZIndex = 2
  152. cdbarupX.Font = "Code"
  153. cdbarupX.BackgroundTransparency = 0.25
  154. cdbarupX.BorderSizePixel = 0
  155. cdbarupX.TextScaled = true
  156. cdbarupX.Text = ""
  157. cdbarupX.BorderColor3 = Color3.new(0,0,0)
  158. cdbarupX.TextSize = 24
  159. cdtextX = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, 0.015, 0), UDim2.new(1, 0, 0.25, 0))
  160. cdtextX.ZIndex = 2
  161. cdtextX.Font = "Code"
  162. cdtextX.BackgroundTransparency = 1
  163. cdtextX.BorderSizePixel = 0
  164. cdtextX.TextScaled = true
  165. cdtextX.Text = move2name
  166. cdtextX.BorderColor3 = Color3.new(0,0,0)
  167. cdtextX.TextSize = 24
  168.  
  169. cdbuttonhintC = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.5, 0, 0.275, 0), UDim2.new(0.25, 0, 0.25, 0))
  170. cdbuttonhintC.ZIndex = 2
  171. cdbuttonhintC.Font = "Code"
  172. cdbuttonhintC.BackgroundTransparency = 0
  173. cdbuttonhintC.BorderSizePixel = 0.5
  174. cdbuttonhintC.TextScaled = true
  175. cdbuttonhintC.Text = "C"
  176. cdbuttonhintC.BorderColor3 = Color3.new(0,0,0)
  177. cdbuttonhintC.TextSize = 24
  178. cdbarC = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, 0.275, 0), UDim2.new(1, 0, 0.25, 0))
  179. cdbarC.ZIndex = 2
  180. cdbarC.Font = "Code"
  181. cdbarC.BackgroundTransparency = 0.5
  182. cdbarC.BorderSizePixel = 0
  183. cdbarC.TextScaled = true
  184. cdbarC.Text = ""
  185. cdbarC.BorderColor3 = Color3.new(0,0,0)
  186. cdbarC.TextSize = 24
  187. local cdbarupC = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.25, 0, 0.275, 0), UDim2.new(0.1, 0, 0.25, 0))
  188. cdbarupC.ZIndex = 2
  189. cdbarupC.Font = "Code"
  190. cdbarupC.BackgroundTransparency = 0.25
  191. cdbarupC.BorderSizePixel = 0
  192. cdbarupC.TextScaled = true
  193. cdbarupC.Text = ""
  194. cdbarupC.BorderColor3 = Color3.new(0,0,0)
  195. cdbarupC.TextSize = 24
  196. cdtextC = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, 0.275, 0), UDim2.new(1, 0, 0.25, 0))
  197. cdtextC.ZIndex = 2
  198. cdtextC.Font = "Code"
  199. cdtextC.BackgroundTransparency = 1
  200. cdtextC.BorderSizePixel = 0
  201. cdtextC.TextScaled = true
  202. cdtextC.Text = move3name
  203. cdtextC.BorderColor3 = Color3.new(0,0,0)
  204. cdtextC.TextSize = 24
  205.  
  206. cdbuttonhintV = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.5, 0, 0.53, 0), UDim2.new(0.25, 0, 0.25, 0))
  207. cdbuttonhintV.ZIndex = 2
  208. cdbuttonhintV.Font = "Code"
  209. cdbuttonhintV.BackgroundTransparency = 0
  210. cdbuttonhintV.BorderSizePixel = 0.5
  211. cdbuttonhintV.TextScaled = true
  212. cdbuttonhintV.Text = "V"
  213. cdbuttonhintV.BorderColor3 = Color3.new(0,0,0)
  214. cdbuttonhintV.TextSize = 24
  215. cdbarV = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, 0.53, 0), UDim2.new(1, 0, 0.25, 0))
  216. cdbarV.ZIndex = 2
  217. cdbarV.Font = "Code"
  218. cdbarV.BackgroundTransparency = 0.5
  219. cdbarV.BorderSizePixel = 0
  220. cdbarV.TextScaled = true
  221. cdbarV.Text = ""
  222. cdbarV.BorderColor3 = Color3.new(0,0,0)
  223. cdbarV.TextSize = 24
  224. local cdbarupV = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.25, 0, 0.53, 0), UDim2.new(0.1, 0, 0.25, 0))
  225. cdbarupV.ZIndex = 2
  226. cdbarupV.Font = "Code"
  227. cdbarupV.BackgroundTransparency = 0.25
  228. cdbarupV.BorderSizePixel = 0
  229. cdbarupV.TextScaled = true
  230. cdbarupV.Text = ""
  231. cdbarupV.BorderColor3 = Color3.new(0,0,0)
  232. cdbarupV.TextSize = 24
  233. cdtextV = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, 0.53, 0), UDim2.new(1, 0, 0.25, 0))
  234. cdtextV.ZIndex = 2
  235. cdtextV.Font = "Code"
  236. cdtextV.BackgroundTransparency = 1
  237. cdtextV.BorderSizePixel = 0
  238. cdtextV.TextScaled = true
  239. cdtextV.Text = move4name
  240. cdtextV.BorderColor3 = Color3.new(0,0,0)
  241. cdtextV.TextSize = 24
  242.  
  243. local cooldownZ = 0
  244. local cooldownX = 0
  245. local cooldownC = 0
  246. local cooldownV = 0
  247.  
  248. function CameraShake(Times, Power)
  249. coroutine.resume(coroutine.create(function()
  250. FV = Instance.new("BoolValue", Character)
  251. FV.Name = "CameraShake"
  252. for ShakeNum=1,Times do
  253. swait()
  254. local ef=Power
  255.   if ef>=1 then
  256.    Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  257.   else
  258.    ef=Power*10
  259.    Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  260.   end  
  261. end
  262. Humanoid.CameraOffset = Vector3.new(0,0,0)
  263. FV:Destroy()
  264. end))
  265. end
  266.  
  267. CamShake=function(Part,Distan,Power,Times)
  268. local de=Part.Position
  269. for i,v in pairs(workspace:children()) do
  270.  if v:IsA("Model") and v:findFirstChild("Humanoid") then
  271. for _,c in pairs(v:children()) do
  272. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  273. local Noob=v.Humanoid
  274. if Noob~=nil then
  275. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  276. --[[local ss=script.CamShake:clone()
  277. ss.Parent=Noob
  278. ss.Power.Value=Power
  279. ss.Times.Value=Times
  280. ss.Disabled=false]]
  281. CameraShake(Times, Power)
  282. end
  283. end
  284. end
  285. end
  286. end
  287. end
  288. end
  289.  
  290. function chatfunc(text,color)
  291. local chat = coroutine.wrap(function()
  292. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  293. Character:FindFirstChild("TalkingBillBoard"):destroy()
  294. end
  295. local naeeym2 = Instance.new("BillboardGui",Character)
  296. naeeym2.Size = UDim2.new(0,100,0,40)
  297. naeeym2.StudsOffset = Vector3.new(0,3,0)
  298. naeeym2.Adornee = Character.Head
  299. naeeym2.Name = "TalkingBillBoard"
  300. local tecks2 = Instance.new("TextLabel",naeeym2)
  301. tecks2.BackgroundTransparency = 1
  302. tecks2.BorderSizePixel = 0
  303. tecks2.Text = ""
  304. tecks2.Font = "SciFi"
  305. tecks2.TextSize = 30
  306. tecks2.TextStrokeTransparency = 0
  307. tecks2.TextColor3 = color
  308. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  309. tecks2.Size = UDim2.new(1,0,0.5,0)
  310. local tecks3 = Instance.new("TextLabel",naeeym2)
  311. tecks3.BackgroundTransparency = 1
  312. tecks3.BorderSizePixel = 0
  313. tecks3.Text = ""
  314. tecks3.Font = "SciFi"
  315. tecks3.TextSize = 30
  316. tecks3.TextStrokeTransparency = 0
  317. tecks3.TextColor3 = Color3.new(0,0,0)
  318. tecks3.TextStrokeColor3 = color
  319. tecks3.Size = UDim2.new(1,0,0.5,0)
  320. for i = 1,string.len(text),1 do
  321. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  322. tecks2.Text = string.sub(text,1,i)
  323. tecks3.Text = string.sub(text,1,i)
  324. wait(0.01)
  325. end
  326. wait(1)
  327. local randomrot = math.random(1,2)
  328. if randomrot == 1 then
  329. for i = 1, 50 do
  330. swait()
  331. tecks2.Rotation = tecks2.Rotation - .75
  332. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  333. tecks2.TextTransparency = tecks2.TextTransparency + .04
  334. tecks3.Rotation = tecks2.Rotation + .75
  335. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  336. tecks3.TextTransparency = tecks2.TextTransparency + .04
  337. end
  338. elseif randomrot == 2 then
  339.     for i = 1, 50 do
  340. swait()
  341. tecks2.Rotation = tecks2.Rotation + .75
  342. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  343. tecks2.TextTransparency = tecks2.TextTransparency + .04
  344. tecks3.Rotation = tecks2.Rotation - .75
  345. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  346. tecks3.TextTransparency = tecks2.TextTransparency + .04
  347. end
  348. end
  349. naeeym2:Destroy()
  350. end)
  351. chat()
  352. end
  353.  
  354.  
  355. local Create = LoadLibrary("RbxUtility").Create
  356.  
  357. CFuncs = { 
  358.     ["Part"] = {
  359.         Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  360.             local Part = Create("Part"){
  361.                 Parent = Parent,
  362.                 Reflectance = Reflectance,
  363.                 Transparency = Transparency,
  364.                 CanCollide = false,
  365.                 Locked = true,
  366.                 BrickColor = BrickColor.new(tostring(BColor)),
  367.                 Name = Name,
  368.                 Size = Size,
  369.                 Material = Material,
  370.             }
  371.             RemoveOutlines(Part)
  372.             return Part
  373.         end;
  374.     };
  375.    
  376.     ["Mesh"] = {
  377.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  378.             local Msh = Create(Mesh){
  379.                 Parent = Part,
  380.                 Offset = OffSet,
  381.                 Scale = Scale,
  382.             }
  383.             if Mesh == "SpecialMesh" then
  384.                 Msh.MeshType = MeshType
  385.                 Msh.MeshId = MeshId
  386.             end
  387.             return Msh
  388.         end;
  389.     };
  390.    
  391.     ["Mesh"] = {
  392.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  393.             local Msh = Create(Mesh){
  394.                 Parent = Part,
  395.                 Offset = OffSet,
  396.                 Scale = Scale,
  397.             }
  398.             if Mesh == "SpecialMesh" then
  399.                 Msh.MeshType = MeshType
  400.                 Msh.MeshId = MeshId
  401.             end
  402.             return Msh
  403.         end;
  404.     };
  405.    
  406.     ["Weld"] = {
  407.         Create = function(Parent, Part0, Part1, C0, C1)
  408.             local Weld = Create("Weld"){
  409.                 Parent = Parent,
  410.                 Part0 = Part0,
  411.                 Part1 = Part1,
  412.                 C0 = C0,
  413.                 C1 = C1,
  414.             }
  415.             return Weld
  416.         end;
  417.     };
  418.  
  419.     ["Sound"] = {
  420.         Create = function(id, par, vol, pit)
  421.             coroutine.resume(coroutine.create(function()
  422.                 local S = Create("Sound"){
  423.                     Volume = vol,
  424.                     Pitch = pit or 1,
  425.                     SoundId = id,
  426.                     Parent = par or workspace,
  427.                 }
  428.                 wait()
  429.                 S:play()
  430.                 game:GetService("Debris"):AddItem(S, 10)
  431.             end))
  432.         end;
  433.     };
  434.  
  435. ["LongSound"] = {
  436.         Create = function(id, par, vol, pit)
  437.             coroutine.resume(coroutine.create(function()
  438.                 local S = Create("Sound"){
  439.                     Volume = vol,
  440.                     Pitch = pit or 1,
  441.                     SoundId = id,
  442.                     Parent = par or workspace,
  443.                 }
  444.                 wait()
  445.                 S:play()
  446.                 game:GetService("Debris"):AddItem(S, 30)
  447.             end))
  448.         end;
  449.     };
  450.    
  451.     ["ParticleEmitter"] = {
  452.         Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  453.             local fp = Create("ParticleEmitter"){
  454.                 Parent = Parent,
  455.                 Color = ColorSequence.new(Color1, Color2),
  456.                 LightEmission = LightEmission,
  457.                 Size = Size,
  458.                 Texture = Texture,
  459.                 Transparency = Transparency,
  460.                 ZOffset = ZOffset,
  461.                 Acceleration = Accel,
  462.                 Drag = Drag,
  463.                 LockedToPart = LockedToPart,
  464.                 VelocityInheritance = VelocityInheritance,
  465.                 EmissionDirection = EmissionDirection,
  466.                 Enabled = Enabled,
  467.                 Lifetime = LifeTime,
  468.                 Rate = Rate,
  469.                 Rotation = Rotation,
  470.                 RotSpeed = RotSpeed,
  471.                 Speed = Speed,
  472.                 VelocitySpread = VelocitySpread,
  473.             }
  474.             return fp
  475.         end;
  476.     };
  477.  
  478.     CreateTemplate = {
  479.    
  480.     };
  481. }
  482.  
  483.  
  484.  
  485. New = function(Object, Parent, Name, Data)
  486.     local Object = Instance.new(Object)
  487.     for Index, Value in pairs(Data or {}) do
  488.         Object[Index] = Value
  489.     end
  490.     Object.Parent = Parent
  491.     Object.Name = Name
  492.     return Object
  493. end
  494.  
  495. local wepcolor = BrickColor.new("Institutional white")
  496. local glowcolor = BrickColor.new("Toothpaste")
  497. local m = Instance.new("Model",char)
  498.  
  499. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  500. local p = Instance.new("Part")
  501. p.TopSurface = 0
  502. p.BottomSurface = 0
  503. p.Parent = parent
  504. p.Size = Vector3.new(0.05,0.05,0.05)
  505. p.Transparency = transparency
  506. p.Reflectance = reflectance
  507. p.CanCollide = false
  508. p.Locked = true
  509. p.BrickColor = brickcolor
  510. p.Material = material
  511. return p
  512. end
  513.  
  514. function CreateMesh(parent,meshtype,x1,y1,z1)
  515. local mesh = Instance.new("SpecialMesh",parent)
  516. mesh.MeshType = meshtype
  517. mesh.Scale = Vector3.new(x1*20,y1*20,z1*20)
  518. return mesh
  519. end
  520.  
  521. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  522. local mesh = Instance.new("SpecialMesh",parent)
  523. mesh.MeshType = "FileMesh"
  524. mesh.MeshId = meshid
  525. mesh.Scale = Vector3.new(x1,y1,z1)
  526. return mesh
  527. end
  528.  
  529.  
  530. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  531. local mesh = Instance.new("SpecialMesh",parent)
  532. mesh.MeshType = "FileMesh"
  533. mesh.MeshId = meshid
  534. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  535. mesh.Scale = Vector3.new(x1,y1,z1)
  536. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  537. return mesh
  538. end
  539.  
  540. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  541. local weld = Instance.new("Weld")
  542. weld.Parent = parent
  543. weld.Part0 = part0
  544. weld.Part1 = part1
  545. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  546. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  547. return weld
  548. end
  549.  
  550.  
  551. local kcenter = CreateParta(m,1,1,"SmoothPlastic",wepcolor)
  552. local rightkarambitweld = CreateWeld(kcenter,rarm,kcenter,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  553. local knf = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  554. CreateSpecialMesh(knf,"rbxassetid://430096677",0.005,0.004,0.004)
  555. CreateWeld(knf,kcenter,knf,1.25,0.45,0,math.rad(0),math.rad(-90),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  556. local knfg = CreateParta(m,0.75,0,"Neon",glowcolor)
  557. CreateSpecialMesh(knfg,"rbxassetid://430096677",0.00515,0.0045,0.0025)
  558. CreateWeld(knfg,kcenter,knfg,1.25,0.45,0,math.rad(0),math.rad(-90),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  559. local kcenter2 = CreateParta(m,1,1,"SmoothPlastic",wepcolor)
  560. local leftkarambitweld = CreateWeld(kcenter2,larm,kcenter2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  561. local knf2 = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  562. CreateSpecialMesh(knf2,"rbxassetid://430096677",0.005,0.004,0.004)
  563. CreateWeld(knf2,kcenter2,knf2,1.25,0.45,0,math.rad(0),math.rad(-90),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  564. local knfg2 = CreateParta(m,0.75,0,"Neon",glowcolor)
  565. CreateSpecialMesh(knfg2,"rbxassetid://430096677",0.00515,0.0045,0.0025)
  566. CreateWeld(knfg2,kcenter2,knfg2,1.25,0.45,0,math.rad(0),math.rad(-90),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  567.  
  568. local gline = CreateParta(m,0,0,"Neon",glowcolor)
  569. CreateMesh(gline,"Brick",0.05,0.025,1.25)
  570. CreateWeld(gline,kcenter,gline,0,0.85,-2.5,math.rad(35),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  571. glineb = CreateParta(m,0,0,"Neon",glowcolor)
  572. CreateMesh(glineb,"Brick",0.05,0.025,1.25)
  573. CreateWeld(glineb,kcenter,glineb,0,0.9,-2.5,math.rad(35),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  574. glineb = CreateParta(m,0,0,"Neon",glowcolor)
  575. CreateMesh(glineb,"Brick",0.05,0.025,1.25)
  576. CreateWeld(glineb,kcenter,glineb,0,0.95,-2.5,math.rad(35),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  577.  
  578.  
  579. local gline2 = CreateParta(m,0,0,"Neon",glowcolor)
  580. CreateMesh(gline2,"Brick",0.05,0.025,1.25)
  581. CreateWeld(gline2,kcenter2,gline2,0,0.85,-2.5,math.rad(35),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  582. glineb2 = CreateParta(m,0,0,"Neon",glowcolor)
  583. CreateMesh(glineb2,"Brick",0.05,0.025,1.25)
  584. CreateWeld(glineb2,kcenter2,glineb2,0,0.9,-2.5,math.rad(35),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  585. glineb2 = CreateParta(m,0,0,"Neon",glowcolor)
  586. CreateMesh(glineb2,"Brick",0.05,0.025,1.25)
  587. CreateWeld(glineb2,kcenter2,glineb2,0,0.95,-2.5,math.rad(35),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  588.  
  589. local hitbox = CreateParta(m,1,0,"SmoothPlastic",wepcolor)
  590. hitbox.Size = vt(1,1,3)
  591. hbweld = CreateWeld(hitbox,kcenter,hitbox,0,0,-1.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  592.  
  593. local hitbox2 = CreateParta(m,1,0,"SmoothPlastic",wepcolor)
  594. hitbox2.Size = vt(1,1,3)
  595. hb2weld = CreateWeld(hitbox2,kcenter2,hitbox2,0,0,-1.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  596. ------
  597.  
  598.  
  599. function RemoveOutlines(part)
  600.   part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  601. end
  602. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  603.   local Part = Create("Part")({
  604.     Parent = Parent,
  605.     Reflectance = Reflectance,
  606.     Transparency = Transparency,
  607.     CanCollide = false,
  608.     Locked = true,
  609.     BrickColor = BrickColor.new(tostring(BColor)),
  610.     Name = Name,
  611.     Size = Size,
  612.     Material = Material
  613.   })
  614.   Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  615.   RemoveOutlines(Part)
  616.   return Part
  617. end
  618. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  619.   local Msh = Create(Mesh)({
  620.     Parent = Part,
  621.     Offset = OffSet,
  622.     Scale = Scale
  623.   })
  624.   if Mesh == "SpecialMesh" then
  625.     Msh.MeshType = MeshType
  626.     Msh.MeshId = MeshId
  627.   end
  628.   return Msh
  629. end
  630. function CreateWeld(Parent, Part0, Part1, C0, C1)
  631.   local Weld = Create("Weld")({
  632.     Parent = Parent,
  633.     Part0 = Part0,
  634.     Part1 = Part1,
  635.     C0 = C0,
  636.     C1 = C1
  637.   })
  638.   return Weld
  639. end
  640.  
  641. Player=game:GetService("Players").LocalPlayer
  642. Character=Player.Character
  643. PlayerGui=Player.PlayerGui
  644. Backpack=Player.Backpack
  645. Torso=Character.Torso
  646. Head=Character.Head
  647. Humanoid=Character.Humanoid
  648. m=Instance.new('Model',Character)
  649. LeftArm=Character["Left Arm"]
  650. LeftLeg=Character["Left Leg"]
  651. RightArm=Character["Right Arm"]
  652. RightLeg=Character["Right Leg"]
  653. LS=Torso["Left Shoulder"]
  654. LH=Torso["Left Hip"]
  655. RS=Torso["Right Shoulder"]
  656. RH=Torso["Right Hip"]
  657. Face = Head.face
  658. Neck=Torso.Neck
  659. it=Instance.new
  660. attacktype=1
  661. vt=Vector3.new
  662. cf=CFrame.new
  663. euler=CFrame.fromEulerAnglesXYZ
  664. angles=CFrame.Angles
  665. cloaked=false
  666. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  667. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  668. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  669. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  670. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  671. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  672. RootPart=Character.HumanoidRootPart
  673. RootJoint=RootPart.RootJoint
  674. RootCF=euler(-1.57,0,3.14)
  675. attack = false
  676. attackdebounce = false
  677. deb=false
  678. equipped=true
  679. hand=false
  680. MMouse=nil
  681. combo=0
  682. mana=0
  683. trispeed=.2
  684. attackmode='none'
  685. local idle=0
  686. local Anim="Idle"
  687. local Effects={}
  688. local gun=false
  689. local shoot=false
  690. local sine = 0
  691. local change = 1
  692. player=nil
  693.  
  694. mouse=Player:GetMouse()
  695. --save shoulders
  696. RSH, LSH=nil, nil
  697. --welds
  698. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  699. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  700. LH=Torso["Left Hip"]
  701. RH=Torso["Right Hip"]
  702. TorsoColor=Torso.BrickColor
  703. function NoOutline(Part)
  704. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  705. end
  706. player=Player
  707. ch=Character
  708. RSH=ch.Torso["Right Shoulder"]
  709. LSH=ch.Torso["Left Shoulder"]
  710. --
  711. RSH.Parent=nil
  712. LSH.Parent=nil
  713. --
  714. RW.Name="Right Shoulder"
  715. RW.Part0=ch.Torso
  716. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  717. RW.C1=cf(0, 0.5, 0)
  718. RW.Part1=ch["Right Arm"]
  719. RW.Parent=ch.Torso
  720. --
  721. LW.Name="Left Shoulder"
  722. LW.Part0=ch.Torso
  723. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  724. LW.C1=cf(0, 0.5, 0)
  725. LW.Part1=ch["Left Arm"]
  726. LW.Parent=ch.Torso
  727.  
  728. local Stats=Instance.new("BoolValue")
  729. Stats.Name="Stats"
  730. Stats.Parent=Character
  731. local Atk=Instance.new("NumberValue")
  732. Atk.Name="Damage"
  733. Atk.Parent=Stats
  734. Atk.Value=1
  735. local Def=Instance.new("NumberValue")
  736. Def.Name="Defense"
  737. Def.Parent=Stats
  738. Def.Value=1
  739. local Speed=Instance.new("NumberValue")
  740. Speed.Name="Speed"
  741. Speed.Parent=Stats
  742. Speed.Value=1
  743. local Mvmt=Instance.new("NumberValue")
  744. Mvmt.Name="Movement"
  745. Mvmt.Parent=Stats
  746. Mvmt.Value=1
  747.  
  748. local donum=0
  749.  
  750.  
  751. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  752. local fp=it("Part")
  753. fp.formFactor=formfactor
  754. fp.Parent=parent
  755. fp.Reflectance=reflectance
  756. fp.Transparency=transparency
  757. fp.CanCollide=false
  758. fp.Locked=true
  759. fp.BrickColor=brickcolor
  760. fp.Name=name
  761. fp.Size=size
  762. fp.Position=Torso.Position
  763. NoOutline(fp)
  764. fp.Material="SmoothPlastic"
  765. fp:BreakJoints()
  766. return fp
  767. end
  768.  
  769. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  770. local mesh=it(Mesh)
  771. mesh.Parent=part
  772. if Mesh=="SpecialMesh" then
  773. mesh.MeshType=meshtype
  774. if meshid~="nil" then
  775. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  776. end
  777. end
  778. mesh.Offset=offset
  779. mesh.Scale=scale
  780. return mesh
  781. end
  782.  
  783. function weld(parent,part0,part1,c0)
  784. local weld=it("Weld")
  785. weld.Parent=parent
  786. weld.Part0=part0
  787. weld.Part1=part1
  788. weld.C0=c0
  789. return weld
  790. end
  791.  
  792. local Color1=Torso.BrickColor
  793.  
  794. local bodvel=Instance.new("BodyVelocity")
  795. local bg=Instance.new("BodyGyro")
  796.  
  797. function swait(num)
  798. if num==0 or num==nil then
  799. game:service'RunService'.Stepped:wait(0)
  800. else
  801. for i=0,num do
  802. game:service'RunService'.Stepped:wait(0)
  803. end
  804. end
  805. end
  806.  
  807.  
  808. so = function(id,par,vol,pit)
  809. coroutine.resume(coroutine.create(function()
  810. local sou = Instance.new("Sound",par or workspace)
  811. sou.Volume=vol
  812. sou.Pitch=pit or 1
  813. sou.SoundId=id
  814. swait()
  815. sou:play()
  816. game:GetService("Debris"):AddItem(sou,6)
  817. end))
  818. end
  819.  
  820. function clerp(a,b,t)
  821. local qa = {QuaternionFromCFrame(a)}
  822. local qb = {QuaternionFromCFrame(b)}
  823. local ax, ay, az = a.x, a.y, a.z
  824. local bx, by, bz = b.x, b.y, b.z
  825. local _t = 1-t
  826. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  827. end
  828.  
  829. function QuaternionFromCFrame(cf)
  830. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  831. local trace = m00 + m11 + m22
  832. if trace > 0 then
  833. local s = math.sqrt(1 + trace)
  834. local recip = 0.5/s
  835. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  836. else
  837. local i = 0
  838. if m11 > m00 then
  839. i = 1
  840. end
  841. if m22 > (i == 0 and m00 or m11) then
  842. i = 2
  843. end
  844. if i == 0 then
  845. local s = math.sqrt(m00-m11-m22+1)
  846. local recip = 0.5/s
  847. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  848. elseif i == 1 then
  849. local s = math.sqrt(m11-m22-m00+1)
  850. local recip = 0.5/s
  851. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  852. elseif i == 2 then
  853. local s = math.sqrt(m22-m00-m11+1)
  854. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  855. end
  856. end
  857. end
  858.  
  859. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  860. local xs, ys, zs = x + x, y + y, z + z
  861. local wx, wy, wz = w*xs, w*ys, w*zs
  862. local xx = x*xs
  863. local xy = x*ys
  864. local xz = x*zs
  865. local yy = y*ys
  866. local yz = y*zs
  867. local zz = z*zs
  868. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  869. end
  870.  
  871. function QuaternionSlerp(a, b, t)
  872. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  873. local startInterp, finishInterp;
  874. if cosTheta >= 0.0001 then
  875. if (1 - cosTheta) > 0.0001 then
  876. local theta = math.acos(cosTheta)
  877. local invSinTheta = 1/math.sin(theta)
  878. startInterp = math.sin((1-t)*theta)*invSinTheta
  879. finishInterp = math.sin(t*theta)*invSinTheta  
  880. else
  881. startInterp = 1-t
  882. finishInterp = t
  883. end
  884. else
  885. if (1+cosTheta) > 0.0001 then
  886. local theta = math.acos(-cosTheta)
  887. local invSinTheta = 1/math.sin(theta)
  888. startInterp = math.sin((t-1)*theta)*invSinTheta
  889. finishInterp = math.sin(t*theta)*invSinTheta
  890. else
  891. startInterp = t-1
  892. finishInterp = t
  893. end
  894. end
  895. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  896. end
  897.  
  898. local function CFrameFromTopBack(at, top, back)
  899. local right = top:Cross(back)
  900. return CFrame.new(at.x, at.y, at.z,
  901. right.x, top.x, back.x,
  902. right.y, top.y, back.y,
  903. right.z, top.z, back.z)
  904. end
  905.  
  906. function Triangle(a, b, c)
  907. local edg1 = (c-a):Dot((b-a).unit)
  908. local edg2 = (a-b):Dot((c-b).unit)
  909. local edg3 = (b-c):Dot((a-c).unit)
  910. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  911. a, b, c = a, b, c
  912. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  913. a, b, c = b, c, a
  914. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  915. a, b, c = c, a, b
  916. else
  917. assert(false, "unreachable")
  918. end
  919.  
  920. local len1 = (c-a):Dot((b-a).unit)
  921. local len2 = (b-a).magnitude - len1
  922. local width = (a + (b-a).unit*len1 - c).magnitude
  923.  
  924. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  925.  
  926. local list = {}
  927.  
  928. if len1 > 0.01 then
  929. local w1 = Instance.new('WedgePart', m)
  930. game:GetService("Debris"):AddItem(w1,5)
  931. w1.Material = "SmoothPlastic"
  932. w1.FormFactor = 'Custom'
  933. w1.BrickColor = BrickColor.new("Toothpaste")
  934. w1.Transparency = 0
  935. w1.Reflectance = 0
  936. w1.Material = "SmoothPlastic"
  937. w1.CanCollide = false
  938. local l1 = Instance.new("PointLight",w1)
  939. l1.Color = Color3.new(170,0,0)
  940. NoOutline(w1)
  941. local sz = Vector3.new(0.2, width, len1)
  942. w1.Size = sz
  943. local sp = Instance.new("SpecialMesh",w1)
  944. sp.MeshType = "Wedge"
  945. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  946. w1:BreakJoints()
  947. w1.Anchored = true
  948. w1.Parent = workspace
  949. w1.Transparency = 0
  950. table.insert(Effects,{w1,"Disappear",.01})
  951. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  952. table.insert(list,w1)
  953. end
  954.  
  955. if len2 > 0.01 then
  956. local w2 = Instance.new('WedgePart', m)
  957. game:GetService("Debris"):AddItem(w2,5)
  958. w2.Material = "SmoothPlastic"
  959. w2.FormFactor = 'Custom'
  960. w2.BrickColor = BrickColor.new("Toothpaste")
  961. w2.Transparency = 0
  962. w2.Reflectance = 0
  963. w2.Material = "SmoothPlastic"
  964. w2.CanCollide = false
  965. local l2 = Instance.new("PointLight",w2)
  966. l2.Color = Color3.new(170,0,0)
  967. NoOutline(w2)
  968. local sz = Vector3.new(0.2, width, len2)
  969. w2.Size = sz
  970. local sp = Instance.new("SpecialMesh",w2)
  971. sp.MeshType = "Wedge"
  972. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  973. w2:BreakJoints()
  974. w2.Anchored = true
  975. w2.Parent = workspace
  976. w2.Transparency = 0
  977. table.insert(Effects,{w2,"Disappear",.01})
  978. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  979. table.insert(list,w2)
  980. end
  981. return unpack(list)
  982. end
  983.  
  984.  
  985. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  986.   if hit.Parent == nil then
  987.     return
  988.   end
  989.   local h = hit.Parent:FindFirstChild("Humanoid")
  990.   for _, v in pairs(hit.Parent:children()) do
  991.     if v:IsA("Humanoid") then
  992.       h = v
  993.     end
  994.   end
  995.   if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  996.     if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  997.       return
  998.     end
  999.     local c = Create("ObjectValue")({
  1000.       Name = "creator",
  1001.       Value = game:service("Players").LocalPlayer,
  1002.       Parent = h
  1003.     })
  1004.     game:GetService("Debris"):AddItem(c, 0.5)
  1005.     if HitSound ~= nil and HitPitch ~= nil then
  1006.       CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1007.     end
  1008.     local Damage = math.random(minim, maxim)
  1009.     local blocked = false
  1010.     local block = hit.Parent:findFirstChild("Block")
  1011.     if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1012.       blocked = true
  1013.       block.Value = block.Value - 1
  1014.       print(block.Value)
  1015.     end
  1016.     if blocked == false then
  1017.       HitHealth = h.Health
  1018.       h.Health = h.Health - Damage
  1019.       if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1020.         print("gained kill")
  1021.       end
  1022.       ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1023.     else
  1024.       h.Health = h.Health - Damage / 2
  1025.       ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1026.     end
  1027.     if Type == "Knockdown" then
  1028.       local hum = hit.Parent.Humanoid
  1029.       hum.PlatformStand = true
  1030.       coroutine.resume(coroutine.create(function(HHumanoid)
  1031.         swait(1)
  1032.         HHumanoid.PlatformStand = false
  1033.       end), hum)
  1034.       local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1035.       local bodvol = Create("BodyVelocity")({
  1036.         velocity = angle * knockback,
  1037.         P = 5000,
  1038.         maxForce = Vector3.new(8000, 8000, 8000),
  1039.         Parent = hit
  1040.       })
  1041.       local rl = Create("BodyAngularVelocity")({
  1042.         P = 3000,
  1043.         maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1044.         angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1045.         Parent = hit
  1046.       })
  1047.       game:GetService("Debris"):AddItem(bodvol, 0.5)
  1048.       game:GetService("Debris"):AddItem(rl, 0.5)
  1049.     elseif Type == "Normal" then
  1050.       local vp = Create("BodyVelocity")({
  1051.         P = 500,
  1052.         maxForce = Vector3.new(math.huge, 0, math.huge),
  1053.         velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1054.       })
  1055.       if knockback > 0 then
  1056.         vp.Parent = hit.Parent.Torso
  1057.       end
  1058.       game:GetService("Debris"):AddItem(vp, 0.5)
  1059.     elseif Type == "Up" then
  1060.       local bodyVelocity = Create("BodyVelocity")({
  1061.         velocity = Vector3.new(0, 20, 0),
  1062.         P = 5000,
  1063.         maxForce = Vector3.new(8000, 8000, 8000),
  1064.         Parent = hit
  1065.       })
  1066.       game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1067.       local bodyVelocity = Create("BodyVelocity")({
  1068.         velocity = Vector3.new(0, 20, 0),
  1069.         P = 5000,
  1070.         maxForce = Vector3.new(8000, 8000, 8000),
  1071.         Parent = hit
  1072.       })
  1073.       game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1074.     elseif Type == "Leech" then
  1075.       local hum = hit.Parent.Humanoid
  1076.       if hum ~= nil then
  1077.         for i = 0, 2 do
  1078.           Effects.Sphere.Create(BrickColor.new("Toothpaste"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1079.         end
  1080.         Humanoid.Health = Humanoid.Health + 10
  1081.       end
  1082.     elseif Type == "UpKnock" then
  1083.       local hum = hit.Parent.Humanoid
  1084.       hum.PlatformStand = true
  1085.       if hum ~= nil then
  1086.         hitr = true
  1087.       end
  1088.       coroutine.resume(coroutine.create(function(HHumanoid)
  1089.         swait(5)
  1090.         HHumanoid.PlatformStand = false
  1091.         hitr = false
  1092.       end), hum)
  1093.       local bodyVelocity = Create("BodyVelocity")({
  1094.         velocity = Vector3.new(0, 20, 0),
  1095.         P = 5000,
  1096.         maxForce = Vector3.new(8000, 8000, 8000),
  1097.         Parent = hit
  1098.       })
  1099.       game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1100.       local bodyVelocity = Create("BodyVelocity")({
  1101.         velocity = Vector3.new(0, 20, 0),
  1102.         P = 5000,
  1103.         maxForce = Vector3.new(8000, 8000, 8000),
  1104.         Parent = hit
  1105.       })
  1106.       game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1107.     elseif Type == "Snare" then
  1108.       local bp = Create("BodyPosition")({
  1109.         P = 2000,
  1110.         D = 100,
  1111.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1112.         position = hit.Parent.Torso.Position,
  1113.         Parent = hit.Parent.Torso
  1114.       })
  1115.       game:GetService("Debris"):AddItem(bp, 1)
  1116.     elseif Type == "Slashnare" then
  1117.       Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1118.       for i = 1, math.random(4, 5) do
  1119.         Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1120.       end
  1121.       local bp = Create("BodyPosition")({
  1122.         P = 2000,
  1123.         D = 100,
  1124.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1125.         position = hit.Parent.Torso.Position,
  1126.         Parent = hit.Parent.Torso
  1127.       })
  1128.       game:GetService("Debris"):AddItem(bp, 1)
  1129.     elseif Type == "Spike" then
  1130.       CreateBigIceSword(hit.Parent.Torso.CFrame)
  1131.       local bp = Create("BodyPosition")({
  1132.         P = 2000,
  1133.         D = 100,
  1134.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1135.         position = hit.Parent.Torso.Position,
  1136.         Parent = hit.Parent.Torso
  1137.       })
  1138.       game:GetService("Debris"):AddItem(bp, 1)
  1139.     elseif Type == "Freeze" then
  1140.       local BodPos = Create("BodyPosition")({
  1141.         P = 50000,
  1142.         D = 1000,
  1143.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1144.         position = hit.Parent.Torso.Position,
  1145.         Parent = hit.Parent.Torso
  1146.       })
  1147.       local BodGy = Create("BodyGyro")({
  1148.         maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1149.         P = 20000,
  1150.         Parent = hit.Parent.Torso,
  1151.         cframe = hit.Parent.Torso.CFrame
  1152.       })
  1153.       hit.Parent.Torso.Anchored = true
  1154.       coroutine.resume(coroutine.create(function(Part)
  1155.         swait(1.5)
  1156.         Part.Anchored = false
  1157.       end), hit.Parent.Torso)
  1158.       game:GetService("Debris"):AddItem(BodPos, 3)
  1159.       game:GetService("Debris"):AddItem(BodGy, 3)
  1160.     end
  1161.     local debounce = Create("BoolValue")({
  1162.       Name = "DebounceHit",
  1163.       Parent = hit.Parent,
  1164.       Value = true
  1165.     })
  1166.     game:GetService("Debris"):AddItem(debounce, Delay)
  1167.     c = Instance.new("ObjectValue")
  1168.     c.Name = "creator"
  1169.     c.Value = Player
  1170.     c.Parent = h
  1171.     game:GetService("Debris"):AddItem(c, 0.5)
  1172.   end
  1173. end
  1174. function ShowDamage(Pos, Text, Time, Color)
  1175.   local Rate = 0.03333333333333333
  1176.   local Pos = Pos or Vector3.new(0, 0, 0)
  1177.   local Text = Text or ""
  1178.   local Time = Time or 2
  1179.   local Color = Color or Color3.new(1, 0, 1)
  1180.   local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1181.   EffectPart.Anchored = true
  1182.   local BillboardGui = Create("BillboardGui")({
  1183.     Size = UDim2.new(3, 0, 3, 0),
  1184.     Adornee = EffectPart,
  1185.     Parent = EffectPart
  1186.   })
  1187.   local TextLabel = Create("TextLabel")({
  1188.     BackgroundTransparency = 1,
  1189.     Size = UDim2.new(1, 0, 1, 0),
  1190.     Text = Text,
  1191.     TextColor3 = Color,
  1192.     TextScaled = true,
  1193.     Font = Enum.Font.ArialBold,
  1194.     Parent = BillboardGui
  1195.   })
  1196.   game.Debris:AddItem(EffectPart, Time + 0.1)
  1197.   EffectPart.Parent = game:GetService("Workspace")
  1198.   delay(0, function()
  1199.     local Frames = Time / Rate
  1200.     for Frame = 1, Frames do
  1201.       wait(Rate)
  1202.       local Percent = Frame / Frames
  1203.       EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1204.       TextLabel.TextTransparency = Percent
  1205.     end
  1206.     if EffectPart and EffectPart.Parent then
  1207.       EffectPart:Destroy()
  1208.     end
  1209.   end)
  1210. end
  1211. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1212.   for _, c in pairs(workspace:children()) do
  1213.     local hum = c:findFirstChild("Humanoid")
  1214.     if hum ~= nil then
  1215.       local head = c:findFirstChild("Torso")
  1216.       if head ~= nil then
  1217.         local targ = head.Position - Part.Position
  1218.         local mag = targ.magnitude
  1219.         if magni >= mag and c.Name ~= Player.Name then
  1220.           Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1221.         end
  1222.       end
  1223.     end
  1224.   end
  1225. end
  1226.  
  1227. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1228.   for _, c in pairs(workspace:children()) do
  1229.     local hum = c:findFirstChild("Humanoid")
  1230.     if hum ~= nil then
  1231.       local head = c:findFirstChild("Torso")
  1232.       if head ~= nil then
  1233.         local targ = head.Position - Part.Position
  1234.         local mag = targ.magnitude
  1235.         if magni >= mag and c.Name ~= Player.Name then
  1236.     MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1237.           Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1238.         end
  1239.       end
  1240.     end
  1241.   end
  1242. end
  1243.  
  1244. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1245. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1246. end
  1247.  
  1248. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1249. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1250. prt.Anchored=true
  1251. prt.CFrame=cframe
  1252. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1253. --http://www.roblox.com/asset/?id=4770560
  1254. game:GetService("Debris"):AddItem(prt,2)
  1255. CF=prt.CFrame
  1256. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1257. for i=0,1,0.2 do
  1258. wait()
  1259. Part.CFrame=CF*cf(0,0,-0.4)
  1260. end
  1261. for i=0,1,delay do
  1262. wait()
  1263. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1264. Mesh.Scale=Mesh.Scale
  1265. end
  1266. for i=0,1,0.1 do
  1267. wait()
  1268. Part.Transparency=i
  1269. end
  1270. Part.Parent=nil
  1271. end),prt,msh,CF)
  1272. end
  1273.  
  1274. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1275. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1276. prt.Anchored=true
  1277. prt.Material = "Neon"
  1278. prt.CFrame=cframe
  1279. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1280. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1281. game:GetService("Debris"):AddItem(prt,5)
  1282. coroutine.resume(coroutine.create(function(Part,Mesh)
  1283. for i=0,1,delay do
  1284. swait()
  1285. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1286. Part.Transparency=i
  1287. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1288. end
  1289. Part.Parent=nil
  1290. end),prt,msh)
  1291. end
  1292.  
  1293. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1294. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1295. prt.Anchored=true
  1296. prt.Material = "Neon"
  1297. prt.CFrame=cframe
  1298. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1299. game:GetService("Debris"):AddItem(prt,5)
  1300. coroutine.resume(coroutine.create(function(Part,Mesh)
  1301.     local rtype = rottype
  1302. for i=0,1,delay do
  1303. swait()
  1304. if rtype == 1 then
  1305. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1306. elseif rtype == 2 then
  1307. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1308. end
  1309. Part.Transparency=i
  1310. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1311. end
  1312. Part.Parent=nil
  1313. end),prt,msh)
  1314. end
  1315.  
  1316. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1317. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1318. prt.Anchored=true
  1319. prt.CFrame=cframe
  1320. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1321. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1322. game:GetService("Debris"):AddItem(prt,5)
  1323. coroutine.resume(coroutine.create(function(Part,Mesh)
  1324. for i=0,1,delay do
  1325. wait()
  1326. Part.Transparency=i
  1327. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1328. end
  1329. Part.Parent=nil
  1330. end),prt,msh)
  1331. end
  1332.  
  1333. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1334. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1335. prt.Anchored=true
  1336. prt.Material = "Neon"
  1337. prt.CFrame=cframe
  1338. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1339. game:GetService("Debris"):AddItem(prt,5)
  1340. coroutine.resume(coroutine.create(function(Part,Mesh)
  1341.     local rtype = rottype
  1342. for i=0,1,delay do
  1343. swait()
  1344. if rtype == 1 then
  1345. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1346. elseif rtype == 2 then
  1347. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1348. end
  1349. Part.Transparency=i
  1350. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1351. end
  1352. Part.Parent=nil
  1353. end),prt,msh)
  1354. end
  1355.  
  1356. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1357. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1358. prt.Anchored=true
  1359. prt.Material = "Neon"
  1360. prt.CFrame=cframe
  1361. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1362. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1363. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1364. game:GetService("Debris"):AddItem(prt,5)
  1365. coroutine.resume(coroutine.create(function(Part,Mesh)
  1366.     local rtype = rottype
  1367. for i=0,1,delay do
  1368. swait()
  1369. if rtype == 1 then
  1370. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1371. elseif rtype == 2 then
  1372. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1373. end
  1374. dec.Transparency=i
  1375. dec2.Transparency=i
  1376. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1377. end
  1378. Part.Parent=nil
  1379. end),prt,msh)
  1380. end
  1381.  
  1382. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1383. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1384. prt.Anchored=true
  1385. prt.Material = "Neon"
  1386. prt.CFrame=cframe
  1387. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1388. game:GetService("Debris"):AddItem(prt,5)
  1389. coroutine.resume(coroutine.create(function(Part,Mesh)
  1390.     local rtype = rottype
  1391. for i=0,1,delay do
  1392. swait()
  1393. if rtype == 1 then
  1394. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1395. elseif rtype == 2 then
  1396. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1397. end
  1398. prt.Transparency=i
  1399. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1400. end
  1401. Part.Parent=nil
  1402. end),prt,msh)
  1403. end
  1404.  
  1405. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1406. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1407. prt.Anchored=true
  1408. prt.Material = "Neon"
  1409. prt.CFrame=cframe
  1410. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1411. game:GetService("Debris"):AddItem(prt,5)
  1412. coroutine.resume(coroutine.create(function(Part,Mesh)
  1413.     local rtype = rottype
  1414. for i=0,1,delay do
  1415. swait()
  1416. if rtype == 1 then
  1417. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1418. elseif rtype == 2 then
  1419. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1420. end
  1421. prt.Transparency=i
  1422. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1423. end
  1424. Part.Parent=nil
  1425. end),prt,msh)
  1426. end
  1427.  
  1428. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1429. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1430. prt.Anchored=true
  1431. prt.Material = "Neon"
  1432. prt.CFrame=cframe
  1433. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1434. game:GetService("Debris"):AddItem(prt,5)
  1435. coroutine.resume(coroutine.create(function(Part,Mesh)
  1436.     local rtype = rottype
  1437. for i=0,1,delay do
  1438. swait()
  1439. if rtype == 1 then
  1440. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1441. elseif rtype == 2 then
  1442. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1443. end
  1444. prt.Transparency=i
  1445. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1446. end
  1447. Part.Parent=nil
  1448. end),prt,msh)
  1449. end
  1450.  
  1451. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1452. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1453. prt.Anchored=true
  1454. prt.Material = "Neon"
  1455. prt.CFrame=cframe
  1456. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1457. game:GetService("Debris"):AddItem(prt,5)
  1458. coroutine.resume(coroutine.create(function(Part,Mesh)
  1459.     local rtype = rottype
  1460. for i=0,1,delay do
  1461. swait()
  1462. if rtype == 1 then
  1463. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1464. elseif rtype == 2 then
  1465. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1466. end
  1467. prt.Transparency=i
  1468. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1469. end
  1470. Part.Parent=nil
  1471. end),prt,msh)
  1472. end
  1473.  
  1474. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1475. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1476. prt.Anchored=false
  1477. prt.CFrame=cframe
  1478. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1479. local wld=weld(prt,prt,Parent,cframe)
  1480. game:GetService("Debris"):AddItem(prt,5)
  1481. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1482. for i=0,1,delay do
  1483. wait()
  1484. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1485. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1486. Part.Transparency=i
  1487. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1488. end
  1489. Part.Parent=nil
  1490. end),prt,msh,wld)
  1491. end
  1492.  
  1493. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1494. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1495. prt.Anchored=false
  1496. prt.CFrame=cframe
  1497. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1498. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1499. game:GetService("Debris"):AddItem(prt,5)
  1500. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1501. for i=0,1,delay do
  1502. wait()
  1503. Weld.C0=euler(i*20,0,0)
  1504. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1505. Part.Transparency=i
  1506. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1507. end
  1508. Part.Parent=nil
  1509. end),prt,msh,wld)
  1510. end
  1511.  
  1512. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1513. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1514. prt.Anchored=true
  1515. prt.CFrame=cframe
  1516. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1517. game:GetService("Debris"):AddItem(prt,2)
  1518. coroutine.resume(coroutine.create(function(Part,Mesh)
  1519. for i=0,1,delay do
  1520. wait()
  1521. Part.CFrame=Part.CFrame
  1522. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1523. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1524. prt2.Anchored=true
  1525. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1526. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1527. game:GetService("Debris"):AddItem(prt2,2)
  1528. coroutine.resume(coroutine.create(function(Part,Mesh)
  1529. for i=0,1,0.1 do
  1530. wait()
  1531. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1532. end
  1533. Part.Parent=nil
  1534. end),prt2,msh2)
  1535. end
  1536. for i=0,1,delay*2 do
  1537. wait()
  1538. Part.CFrame=Part.CFrame
  1539. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1540. end
  1541. Part.Parent=nil
  1542. end),prt,msh)
  1543. end
  1544.  
  1545. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1546. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1547. prt.Anchored=true
  1548. prt.CFrame=cframe
  1549. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1550. game:GetService("Debris"):AddItem(prt,2)
  1551. coroutine.resume(coroutine.create(function(Part,Mesh)
  1552. for i=0,1,delay do
  1553. wait()
  1554. Part.CFrame=Part.CFrame
  1555. Part.Transparency=i
  1556. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1557. end
  1558. Part.Parent=nil
  1559. end),prt,msh)
  1560. end
  1561.  
  1562. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1563. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1564. prt.Anchored=true
  1565. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1566. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1567. game:GetService("Debris"):AddItem(prt,2)
  1568. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1569. CF=Part.CFrame
  1570. Numbb=0
  1571. randnumb=math.random()/10
  1572. rand1=math.random()/10
  1573. for i=0,1,rand1 do
  1574. wait()
  1575. CF=CF*cf(0,math.random()/2,0)
  1576. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1577. Part.CFrame=CF*euler(Numbb,0,0)
  1578. Part.Transparency=i
  1579. Numbb=Numbb+randnumb
  1580. end
  1581. Part.Parent=nil
  1582. end),prt,CF,Numbb,randnumb)
  1583. end
  1584.  
  1585. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1586. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1587. prt.Anchored=true
  1588. prt.CFrame=cframe
  1589. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1590. game:GetService("Debris"):AddItem(prt,5)
  1591. coroutine.resume(coroutine.create(function(Part,Mesh)
  1592. for i=0,1,delay do
  1593. wait()
  1594. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1595. Part.Transparency=i
  1596. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1597. end
  1598. Part.Parent=nil
  1599. end),prt,msh)
  1600. end
  1601.  
  1602. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1603. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1604. prt.Anchored=true
  1605. prt.CFrame=cframe
  1606. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1607. game:GetService("Debris"):AddItem(prt,2)
  1608. coroutine.resume(coroutine.create(function(Part,Mesh)
  1609. for i=0,1,delay do
  1610. wait()
  1611. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1612. Part.Transparency=i
  1613. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1614. end
  1615. Part.Parent=nil
  1616. end),prt,msh)
  1617. end
  1618.  
  1619. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1620. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1621. prt.Anchored=true
  1622. prt.CFrame=cframe*cf(x,y,z)
  1623. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1624. game:GetService("Debris"):AddItem(prt,5)
  1625. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1626. local num=math.random()
  1627. local num2=math.random(-3,2)+math.random()
  1628. local numm=0
  1629. for i=0,1,delay*2 do
  1630. swait()
  1631. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1632. Part.Transparency=i
  1633. numm=numm+0.01
  1634. end
  1635. Part.Parent=nil
  1636. Mesh.Parent=nil
  1637. end),prt,msh,x,y,z)
  1638. end
  1639.  
  1640. function dmgstart(dmg,what)
  1641.     hitcon = what.Touched:connect(function(hit)
  1642.         local hum = hit.Parent:FindFirstChild("Humanoid")
  1643.         if hum and not hum:IsDescendantOf(Character) then
  1644.             hum:TakeDamage(dmg)
  1645.         end
  1646.     end)
  1647. end
  1648.  
  1649. function dmgstop()
  1650.     hitcon:disconnect()
  1651. end
  1652.  
  1653. function Cloak()
  1654. Face.Parent=nil
  1655. cloaked=true
  1656.         for _,v in pairs(Torso.Parent:children()) do
  1657.                 if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1658.                 coroutine.resume(coroutine.create(function()
  1659.                 for i=0,1,0.2 do
  1660.                 wait()
  1661.                 v.Transparency=i
  1662.                 end
  1663.                 v.Transparency=1
  1664.                 end))
  1665.                 end
  1666.                 if v.className=="Hat" then
  1667.                 hatp=v.Handle
  1668.                 coroutine.resume(coroutine.create(function(derp)
  1669.                 for i=0,1,0.2 do
  1670.                 wait()
  1671.                 derp.Transparency=i
  1672.                 end
  1673.                 derp.Transparency=1
  1674.                 end),hatp)
  1675.                 end
  1676.         end
  1677.         for _,v in pairs(m:children()) do
  1678.                 if v.className=="Part" then
  1679.                 coroutine.resume(coroutine.create(function()
  1680.                 for i=0,1,0.2 do
  1681.                 wait()
  1682.                 v.Transparency=i
  1683.                 end
  1684.                 v.Transparency=1
  1685.                 end))
  1686.                 end
  1687.         end
  1688. end
  1689.  
  1690. function UnCloak()
  1691. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1692. Face.Parent=Head
  1693. cloaked=false
  1694.         for _,v in pairs(Torso.Parent:children()) do
  1695.                 if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1696.                 coroutine.resume(coroutine.create(function()
  1697.                 for i=0,1,0.1 do
  1698.                 wait()
  1699.                 v.Transparency=v.Transparency-0.1
  1700.                 end
  1701.                 v.Transparency=0
  1702.                 end))
  1703.                 end
  1704.                 if v.className=="Hat" then
  1705.                 hatp=v.Handle
  1706.                 coroutine.resume(coroutine.create(function(derp)
  1707.                 for i=0,1,0.1 do
  1708.                 wait()
  1709.                 derp.Transparency=derp.Transparency-0.1
  1710.                 end
  1711.                 derp.Transparency=0
  1712.                 end),hatp)
  1713.                 end
  1714.         end
  1715.         for _,v in pairs(m:children()) do
  1716.                 if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1717.                 coroutine.resume(coroutine.create(function()
  1718.                 for i=0,1,0.1 do
  1719.                 wait()
  1720.                 v.Transparency=v.Transparency-0.1
  1721.                 end
  1722.                 v.Transparency=0
  1723.                 end))
  1724.                 v.Transparency=0
  1725.                 end
  1726.         end
  1727. end
  1728.  
  1729. local origcolor = BrickColor.new("Toothpaste")
  1730. ---- This section of explosions.
  1731. function Explode(rad,par,pitch,vol,mindam,maxdam)
  1732.     local expart = Instance.new("Part",char)
  1733.     local expart2 = Instance.new("Part",char)
  1734.     local rin = Instance.new("Part",char)
  1735.     local rin2 = Instance.new("Part",char)
  1736.     local partMesh = Instance.new("SpecialMesh",expart)
  1737.     partMesh.MeshType = "Sphere"
  1738.     local partMesh2 = Instance.new("SpecialMesh",expart2)
  1739.     partMesh2.MeshType = "Sphere"
  1740.     local partMesh3 = Instance.new("SpecialMesh",rin)
  1741.     partMesh3.MeshType = "Brick"
  1742.     local partMesh4 = Instance.new("SpecialMesh",rin2)
  1743.     partMesh4.MeshType = "Brick"
  1744.     CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  1745.     partMesh.Scale = vt(rad,rad,rad)
  1746.     expart.Size = vt(1,1,1)
  1747.     expart.Transparency = 0
  1748.     expart.Anchored = true
  1749.     expart.Material = "Neon"
  1750.     expart.BrickColor = bc("White")
  1751.     expart.CFrame = par.CFrame
  1752.     partMesh2.Scale = vt(rad,rad,rad)
  1753.     expart2.Size = vt(1.15,1.15,1.15)
  1754.     expart2.Transparency = 0
  1755.     expart2.Anchored = true
  1756.     expart2.Material = "Neon"
  1757.     expart2.BrickColor = par.BrickColor
  1758.     expart2.CFrame = par.CFrame
  1759.     rin.Size = vt(1.15,1.15,1.15)
  1760.     rin.Transparency = 1
  1761.     rin.Anchored = true
  1762.     rin.Material = "Neon"
  1763.     rin.BrickColor = par.BrickColor
  1764.     rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1765.     rin2.Size = vt(1.15,1.15,1.15)
  1766.     rin2.Transparency = 1
  1767.     rin2.Anchored = true
  1768.     rin2.Material = "Neon"
  1769.     rin2.BrickColor = par.BrickColor
  1770.     rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1771.     partMesh3.Scale = vt(0,1,0)
  1772.     partMesh4.Scale = vt(0,1,0)
  1773. local dec2 = Instance.new("Decal", rin)
  1774. dec2.Face = "Top"
  1775. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1776. dec2.Parent = rin
  1777. local dec2b = dec2:Clone()
  1778. dec2b.Face = "Bottom"
  1779. dec2b.Parent = rin
  1780.  
  1781. local dec2a = Instance.new("Decal", rin2)
  1782. dec2a.Face = "Top"
  1783. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  1784. dec2a.Parent = rin2
  1785. local dec2ab = dec2a:Clone()
  1786. dec2ab.Face = "Bottom"
  1787. dec2ab.Parent = rin2
  1788. expart.CanCollide = false
  1789. expart2.CanCollide = false
  1790. rin.CanCollide = false
  1791. rin2.CanCollide = false
  1792. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  1793.         local value = 1*rad/6.5
  1794.     for i = 0, 199 do
  1795.                 partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1796.         expart.CFrame = expart.CFrame
  1797.                 partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1798.         expart2.CFrame = expart.CFrame
  1799.                 value = value - 0.035*rad/30
  1800.                 if value < 7.5 then
  1801.     partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  1802.         rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  1803.     partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  1804.         rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  1805.         end
  1806.                 if value < 0 then
  1807. dec2.Transparency = dec2.Transparency + 0.025
  1808. dec2a.Transparency = dec2a.Transparency + 0.025
  1809. dec2b.Transparency = dec2b.Transparency + 0.025
  1810. dec2ab.Transparency = dec2ab.Transparency + 0.025
  1811.         expart.Transparency = expart.Transparency + 0.025
  1812.         expart2.Transparency = expart2.Transparency + 0.025
  1813.         rin.Transparency = rin.Transparency + 0.025
  1814.         rin2.Transparency = rin2.Transparency + 0.025
  1815.                 end
  1816.         swait()
  1817.     end
  1818. game:GetService("Debris"):AddItem(expart, 1)
  1819. game:GetService("Debris"):AddItem(expart2, 1)
  1820. game:GetService("Debris"):AddItem(rin, 1)
  1821. game:GetService("Debris"):AddItem(rin2, 1)
  1822. end
  1823.  
  1824. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  1825.     local expart = Instance.new("Part",char)
  1826.     local expart2 = Instance.new("Part",char)
  1827.     local partMesh = Instance.new("SpecialMesh",expart)
  1828.     partMesh.MeshType = "Sphere"
  1829.     local partMesh2 = Instance.new("SpecialMesh",expart2)
  1830.     partMesh2.MeshType = "Sphere"
  1831.     CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  1832.     partMesh.Scale = vt(rad,rad,rad)
  1833.     expart.Size = vt(1,1,1)
  1834.     expart.Transparency = 0
  1835.     expart.Anchored = true
  1836.     expart.Material = "Neon"
  1837.     expart.BrickColor = bc("White")
  1838.     expart.CFrame = par.CFrame
  1839.     partMesh2.Scale = vt(rad,rad,rad)
  1840.     expart2.Size = vt(1.15,1.15,1.15)
  1841.     expart2.Transparency = 0
  1842.     expart2.Anchored = true
  1843.     expart2.Material = "Neon"
  1844.     expart2.BrickColor = par.BrickColor
  1845.     expart2.CFrame = par.CFrame
  1846. expart.CanCollide = false
  1847. expart2.CanCollide = false
  1848. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  1849.         local value = 1*rad/6.5
  1850.     for i = 0, 75 do
  1851.                 partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1852.         expart.CFrame = expart.CFrame
  1853.                 partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1854.         expart2.CFrame = expart.CFrame
  1855.                 value = value - 0.035*rad/5
  1856.                 if value < 0 then
  1857. value = 0
  1858.         expart.Transparency = expart.Transparency + 0.05
  1859.         expart2.Transparency = expart2.Transparency + 0.05
  1860.                 end
  1861.         swait()
  1862.     end
  1863. game:GetService("Debris"):AddItem(expart, 1)
  1864. game:GetService("Debris"):AddItem(expart2, 1)
  1865. end
  1866.  
  1867. function AreaDanger(rad,par,mindam,maxdam)
  1868.     local expart = Instance.new("Part",char)
  1869.     local partMesh = Instance.new("SpecialMesh",expart)
  1870.     CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1871.     partMesh.MeshType = "Sphere"
  1872.     partMesh.Scale = vt(rad,rad,rad)
  1873.     expart.Size = vt(1,1,1)
  1874.     expart.Transparency = 0
  1875.     expart.Anchored = true
  1876.     expart.Material = "Neon"
  1877.     expart.CanCollide = false
  1878.     expart.BrickColor = par.BrickColor
  1879.     expart.CFrame = par.CFrame
  1880.         local value = 1*rad/5
  1881. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  1882.     for i = 0, 14 do
  1883.         wait()
  1884.                 partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1885.         expart.CFrame = expart.CFrame
  1886.                 value = value - 0.035*rad
  1887.                 if value < 0 then
  1888.     value = 0
  1889. end
  1890.     end
  1891.     wait(0.25)
  1892. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  1893. wait(0.5)
  1894. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  1895. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  1896. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  1897. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  1898. for i = 0, 14 do
  1899.         wait()
  1900.                 partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1901.         expart.CFrame = expart.CFrame
  1902.                 value = value - 0.035*rad/2
  1903. end
  1904. expart.Transparency = 1
  1905. game:GetService("Debris"):AddItem(expart, 5)
  1906. end
  1907.  
  1908. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  1909.         CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  1910.     CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  1911.     CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  1912.     CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1913.             MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  1914.             MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  1915.     for i = 0, 24 do
  1916.         MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  1917.     end
  1918.     for i = 0, 24 do
  1919.     local expart = Instance.new("Part",char)
  1920.     expart.Transparency = 1
  1921.     expart.Anchored = true
  1922.     expart.CanCollide = false
  1923.     expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  1924. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  1925. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1926. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  1927. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  1928. for i = 0, 9 do
  1929.         MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  1930.     end
  1931. game:GetService("Debris"):AddItem(expart, 2)
  1932. wait(0.1)
  1933.     end
  1934. end
  1935.  
  1936. function EXterPlosion(par)
  1937.         CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  1938.     CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  1939.     CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  1940.     CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1941.             MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  1942.             MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  1943.             MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  1944.     for i = 0, 24 do
  1945.         MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  1946.     end
  1947.     for i = 0, 24 do
  1948.         MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  1949.     end
  1950. end
  1951. ----
  1952.  
  1953.  
  1954. function ring(type,pos,scale,value)
  1955. local type = type
  1956. local rng = Instance.new("Part", char)
  1957.         rng.Anchored = true
  1958.         rng.BrickColor = origcolor
  1959.         rng.CanCollide = false
  1960.         rng.FormFactor = 3
  1961.         rng.Name = "Ring"
  1962.         rng.Size = Vector3.new(1, 1, 1)
  1963.         rng.Transparency = 0
  1964.         rng.TopSurface = 0
  1965.         rng.BottomSurface = 0
  1966.         rng.CFrame = pos
  1967.         local rngm = Instance.new("SpecialMesh", rng)
  1968.         rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1969. rngm.Scale = scale
  1970. local scaler2 = 1
  1971. if type == "Add" then
  1972. scaler2 = 1*value
  1973. elseif type == "Divide" then
  1974. scaler2 = 1/value
  1975. end
  1976. coroutine.resume(coroutine.create(function()
  1977. for i = 0,10,0.1 do
  1978. swait()
  1979. if type == "Add" then
  1980. scaler2 = scaler2 - 0.01*value
  1981. elseif type == "Divide" then
  1982. scaler2 = scaler2 - 0.01/value
  1983. end
  1984. rng.Transparency = rng.Transparency + 0.01
  1985. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1986. end
  1987. rng:Destroy()
  1988. end))
  1989. end
  1990.  
  1991. function ring2(type,pos,scale,value,color)
  1992. local type = type
  1993. local rng = Instance.new("Part", char)
  1994.         rng.Anchored = true
  1995.         rng.BrickColor = color
  1996.         rng.CanCollide = false
  1997.         rng.FormFactor = 3
  1998.         rng.Name = "Ring"
  1999.         rng.Size = Vector3.new(1, 1, 1)
  2000.         rng.Transparency = 0
  2001.         rng.TopSurface = 0
  2002.         rng.BottomSurface = 0
  2003.         rng.CFrame = pos
  2004.         local rngm = Instance.new("SpecialMesh", rng)
  2005.         rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2006. rngm.Scale = scale
  2007. local scaler2 = 1
  2008. if type == "Add" then
  2009. scaler2 = 1*value
  2010. elseif type == "Divide" then
  2011. scaler2 = 1/value
  2012. end
  2013. coroutine.resume(coroutine.create(function()
  2014. for i = 0,10,0.1 do
  2015. swait()
  2016. if type == "Add" then
  2017. scaler2 = scaler2 - 0.01*value
  2018. elseif type == "Divide" then
  2019. scaler2 = scaler2 - 0.01/value
  2020. end
  2021. rng.Transparency = rng.Transparency + 0.01
  2022. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2023. end
  2024. rng:Destroy()
  2025. end))
  2026. end
  2027.  
  2028.  
  2029. function wave(type,pos,scale,value)
  2030. local type = type
  2031. local rng = Instance.new("Part", char)
  2032.         rng.Anchored = true
  2033.         rng.BrickColor = origcolor
  2034.         rng.CanCollide = false
  2035.         rng.FormFactor = 3
  2036.         rng.Name = "Ring"
  2037.         rng.Size = Vector3.new(1, 1, 1)
  2038.         rng.Transparency = 0
  2039.         rng.TopSurface = 0
  2040.         rng.BottomSurface = 0
  2041.         rng.CFrame = pos
  2042.         local rngm = Instance.new("SpecialMesh", rng)
  2043.         rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2044. rngm.Scale = scale
  2045. local scaler2 = 1
  2046. if type == "Add" then
  2047. scaler2 = 1*value
  2048. elseif type == "Divide" then
  2049. scaler2 = 1/value
  2050. end
  2051. coroutine.resume(coroutine.create(function()
  2052. for i = 0,10,0.1 do
  2053. swait()
  2054. if type == "Add" then
  2055. scaler2 = scaler2 - 0.01*value
  2056. elseif type == "Divide" then
  2057. scaler2 = scaler2 - 0.01/value
  2058. end
  2059. rng.Transparency = rng.Transparency + 0.01
  2060. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2061. end
  2062. rng:Destroy()
  2063. end))
  2064. end
  2065.  
  2066. function wave2(type,pos,scale,value,color)
  2067. local type = type
  2068. local rng = Instance.new("Part", char)
  2069.         rng.Anchored = true
  2070.         rng.BrickColor = color
  2071.         rng.CanCollide = false
  2072.         rng.FormFactor = 3
  2073.         rng.Name = "Ring"
  2074.         rng.Size = Vector3.new(1, 1, 1)
  2075.         rng.Transparency = 0
  2076.         rng.TopSurface = 0
  2077.         rng.BottomSurface = 0
  2078.         rng.CFrame = pos
  2079.         local rngm = Instance.new("SpecialMesh", rng)
  2080.         rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2081. rngm.Scale = scale
  2082. local scaler2 = 1
  2083. if type == "Add" then
  2084. scaler2 = 1*value
  2085. elseif type == "Divide" then
  2086. scaler2 = 1/value
  2087. end
  2088. coroutine.resume(coroutine.create(function()
  2089. for i = 0,10,0.1 do
  2090. swait()
  2091. if type == "Add" then
  2092. scaler2 = scaler2 - 0.01*value
  2093. elseif type == "Divide" then
  2094. scaler2 = scaler2 - 0.01/value
  2095. end
  2096. rng.Transparency = rng.Transparency + 0.01
  2097. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2098. end
  2099. rng:Destroy()
  2100. end))
  2101. end
  2102.  
  2103.  
  2104. function wind(type,pos,scale,value,speed)
  2105. local type = type
  2106. local rng = Instance.new("Part", char)
  2107.         rng.Anchored = true
  2108.         rng.BrickColor = origcolor
  2109.         rng.CanCollide = false
  2110.         rng.FormFactor = 3
  2111.         rng.Name = "Ring"
  2112.         rng.Size = Vector3.new(1, 1, 1)
  2113.         rng.Transparency = 0
  2114.         rng.TopSurface = 0
  2115.         rng.BottomSurface = 0
  2116.         rng.CFrame = pos
  2117.         local rngm = Instance.new("SpecialMesh", rng)
  2118.         rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2119. rngm.Scale = scale
  2120. local scaler2 = 1
  2121. if type == "Add" then
  2122. scaler2 = 1*value
  2123. elseif type == "Divide" then
  2124. scaler2 = 1/value
  2125. end
  2126. coroutine.resume(coroutine.create(function()
  2127. for i = 0,10,0.1 do
  2128. swait()
  2129. if type == "Add" then
  2130. scaler2 = scaler2 - 0.01*value
  2131. elseif type == "Divide" then
  2132. scaler2 = scaler2 - 0.01/value
  2133. end
  2134. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2135. rng.Transparency = rng.Transparency + 0.01
  2136. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2137. end
  2138. rng:Destroy()
  2139. end))
  2140. end
  2141.  
  2142. function groundwind(type,pos,scale,value,speed)
  2143. local type = type
  2144. local rng = Instance.new("Part", char)
  2145.         rng.Anchored = true
  2146.         rng.BrickColor = origcolor
  2147.         rng.CanCollide = false
  2148.         rng.FormFactor = 3
  2149.         rng.Name = "Ring"
  2150.         rng.Size = Vector3.new(1, 1, 1)
  2151.         rng.Transparency = 0
  2152.         rng.TopSurface = 0
  2153.         rng.BottomSurface = 0
  2154.         rng.CFrame = pos
  2155.         local rngm = Instance.new("SpecialMesh", rng)
  2156.         rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2157. rngm.Scale = scale
  2158. local scaler2 = 1
  2159. if type == "Add" then
  2160. scaler2 = 1*value
  2161. elseif type == "Divide" then
  2162. scaler2 = 1/value
  2163. end
  2164. coroutine.resume(coroutine.create(function()
  2165. for i = 0,10,0.1 do
  2166. swait()
  2167. if type == "Add" then
  2168. scaler2 = scaler2 - 0.01*value
  2169. elseif type == "Divide" then
  2170. scaler2 = scaler2 - 0.01/value
  2171. end
  2172. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2173. rng.Transparency = rng.Transparency + 0.01
  2174. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2175. end
  2176. rng:Destroy()
  2177. end))
  2178. end
  2179.  
  2180. function sphere(type,pos,scale,value)
  2181. local type = type
  2182. local rng = Instance.new("Part", char)
  2183.         rng.Anchored = true
  2184.         rng.BrickColor = origcolor
  2185.         rng.CanCollide = false
  2186.         rng.FormFactor = 3
  2187.         rng.Name = "Ring"
  2188.         rng.Material = "Neon"
  2189.         rng.Size = Vector3.new(1, 1, 1)
  2190.         rng.Transparency = 0
  2191.         rng.TopSurface = 0
  2192.         rng.BottomSurface = 0
  2193.         rng.CFrame = pos
  2194.         local rngm = Instance.new("SpecialMesh", rng)
  2195.         rngm.MeshType = "Sphere"
  2196. rngm.Scale = scale
  2197. local scaler2 = 1
  2198. if type == "Add" then
  2199. scaler2 = 1*value
  2200. elseif type == "Divide" then
  2201. scaler2 = 1/value
  2202. end
  2203. coroutine.resume(coroutine.create(function()
  2204. for i = 0,10,0.1 do
  2205. swait()
  2206. if type == "Add" then
  2207. scaler2 = scaler2 - 0.01*value
  2208. elseif type == "Divide" then
  2209. scaler2 = scaler2 - 0.01/value
  2210. end
  2211. rng.Transparency = rng.Transparency + 0.01
  2212. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2213. end
  2214. rng:Destroy()
  2215. end))
  2216. end
  2217.  
  2218. function beam(type,pos,scale,value)
  2219. local type = type
  2220. local rng = Instance.new("Part", char)
  2221.         rng.Anchored = true
  2222.         rng.BrickColor = origcolor
  2223.         rng.CanCollide = false
  2224.         rng.FormFactor = 3
  2225.         rng.Name = "Ring"
  2226.         rng.Material = "Neon"
  2227.         rng.Size = Vector3.new(1, 1, 1)
  2228.         rng.Transparency = 0
  2229.         rng.TopSurface = 0
  2230.         rng.BottomSurface = 0
  2231.         rng.CFrame = pos
  2232.         local rngm = Instance.new("SpecialMesh", rng)
  2233.         rngm.MeshType = "Sphere"
  2234. rngm.Scale = scale
  2235. rngm.Scale = rngm.Scale + Vector3.new(0,10000,0)
  2236. local scaler2 = 0.5
  2237. if type == "Add" then
  2238. scaler2 = 0.5*value
  2239. elseif type == "Divide" then
  2240. scaler2 = 0.5/value
  2241. end
  2242. coroutine.resume(coroutine.create(function()
  2243. for i = 0,10,0.1 do
  2244. swait()
  2245. if type == "Add" then
  2246. scaler2 = scaler2 - 0.01*value
  2247. elseif type == "Divide" then
  2248. scaler2 = scaler2 - 0.01/value
  2249. end
  2250. rng.Transparency = rng.Transparency + 0.01
  2251. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2252. end
  2253. rng:Destroy()
  2254. end))
  2255. end
  2256. local dashing = false
  2257. local OriginalWalkspeed = hum.WalkSpeed
  2258. local equipped = false
  2259. -- ready to do functions
  2260.  
  2261. function attackone()
  2262.     attack = true
  2263.     for i = 0,2,0.1 do
  2264.         swait()
  2265.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(-90),math.rad(0)),0.2)
  2266.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-80)),0.2)
  2267.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.2)
  2268.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  2269.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-30)), 0.2)
  2270. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.2)
  2271. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2272.     end
  2273.     CFuncs["Sound"].Create("rbxassetid://200633148", hitbox2, 1, 1)
  2274.     local con = hitbox.Touched:connect(function(hit)
  2275. Damagefunc(hitbox, hit, 6, 8, 0, "Normal", RootPart, 0.3, "rbxassetid://153092227", 1)
  2276. end)
  2277.     for i = 0,2,0.1 do
  2278.         swait()
  2279.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
  2280.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  2281.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.4)
  2282.              RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)), 0.4)
  2283.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-30)), 0.4)
  2284. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.4)
  2285. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2286.     end
  2287.     con:disconnect()
  2288.     attack = false
  2289. end
  2290.  
  2291. function attacktwo()
  2292.     attack = true
  2293.     for i = 0,2,0.1 do
  2294.         swait()
  2295.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.2)
  2296.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(90)),0.2)
  2297.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-90)),.2)
  2298.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.2)
  2299.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-50)), 0.2)
  2300. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.2)
  2301. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2302.     end
  2303.     CFuncs["Sound"].Create("rbxassetid://200633281", hitbox2, 1, 1)
  2304.     local con = hitbox2.Touched:connect(function(hit)
  2305. Damagefunc(hitbox2, hit, 6, 8, 0, "Normal", RootPart, 0.3, "rbxassetid://153092227", 1)
  2306. end)
  2307.     for i = 0,2,0.1 do
  2308.         swait()
  2309.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2310.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-60)),0.4)
  2311.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(60)),.4)
  2312.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.4)
  2313.              LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(120), math.rad(0), math.rad(50)), 0.4)
  2314. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.4)
  2315. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  2316.     end
  2317.     con:disconnect()
  2318.     attack = false
  2319. end
  2320.  
  2321. function attackthree()
  2322.     attack = true
  2323.     for i = 0,2,0.1 do
  2324.         swait()
  2325.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(-90),math.rad(0)),0.2)
  2326.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.2)
  2327.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),0.2)
  2328.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2329.              RW.C0 = clerp(RW.C0, CFrame.new(1.05, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.2)
  2330.              LW.C0 = clerp(LW.C0, CFrame.new(-1.05, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.2)
  2331. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(20)),.2)
  2332. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(20)),.2)
  2333.     end
  2334.     CFuncs["Sound"].Create("rbxassetid://200633196", root, 1, 1)
  2335.     local con = hitbox2.Touched:connect(function(hit)
  2336. Damagefunc(hitbox2, hit, 6, 8, 0, "Normal", RootPart, 0.3, "rbxassetid://153092227", 1)
  2337.     end)
  2338.     local con2 = hitbox.Touched:connect(function(hit)
  2339. Damagefunc(hitbox, hit, 6, 8, 0, "Normal", RootPart, 0.3, "rbxassetid://153092227", 1)
  2340.     end)
  2341.     tors.Velocity = root.CFrame.lookVector*50
  2342.     for i = 0,2,0.1 do
  2343.         swait()
  2344.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
  2345.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2346.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.4)
  2347.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2348.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(100), math.rad(0), math.rad(70)), 0.4)
  2349.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(100), math.rad(0), math.rad(-70)), 0.4)
  2350. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10)),.4)
  2351. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(10)),.4)
  2352.     end
  2353.     con:disconnect()
  2354.     con2:disconnect()
  2355.     attack = false
  2356. end
  2357.  
  2358. function attackfour()
  2359.     attack = true
  2360.     for i = 0,2,0.1 do
  2361.         swait()
  2362.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(-90),math.rad(0)),0.2)
  2363.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.2)
  2364.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-40)),0.2)
  2365.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(40)),.2)
  2366.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(100), math.rad(0), math.rad(80)), 0.2)
  2367.              LW.C0 = clerp(LW.C0, CFrame.new(-1.05, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(80)), 0.2)
  2368. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(20)),.2)
  2369. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(20)),.2)
  2370.     end
  2371.     CFuncs["Sound"].Create("rbxassetid://200633108", root, 1, 1)
  2372.     local con = hitbox2.Touched:connect(function(hit)
  2373. Damagefunc(hitbox2, hit, 6, 8, 0, "Normal", RootPart, 0.3, "rbxassetid://153092227", 1)
  2374.     end)
  2375.     local con2 = hitbox.Touched:connect(function(hit)
  2376. Damagefunc(hitbox, hit, 6, 8, 0, "Normal", RootPart, 0.3, "rbxassetid://153092227", 1)
  2377.     end)
  2378.     for z = 0, 2 do
  2379.     for i = 0,1,0.45 do
  2380.         swait()
  2381.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2382.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2383.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
  2384.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2385.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.4)
  2386.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
  2387. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2388. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2389.     end
  2390.     for i = 0,1,0.45 do
  2391.         swait()
  2392.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2393.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2394.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.4)
  2395.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2396.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.4)
  2397.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
  2398. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2399. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2400.     end
  2401.     for i = 0,1,0.45 do
  2402.         swait()
  2403.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2404.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2405.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),0.4)
  2406.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2407.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.4)
  2408.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
  2409. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2410. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2411.     end
  2412.     for i = 0,1,0.45 do
  2413.         swait()
  2414.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2415.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2416.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(270)),0.4)
  2417.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2418.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.4)
  2419.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
  2420. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2421. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2422.     end
  2423.     end
  2424.     con:disconnect()
  2425.     con2:disconnect()
  2426.     attack = false
  2427. end
  2428. ----------- attacks
  2429. function do1()
  2430.     attack = true
  2431.     for i = 0,3,0.1 do
  2432.         swait()
  2433.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  2434.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.2)
  2435.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(40),math.rad(0),math.rad(-90)),0.2)
  2436.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(90)),.2)
  2437.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(20), math.rad(20)), 0.2)
  2438.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2)
  2439. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.2)
  2440. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-40),math.rad(0),math.rad(0)),.2)
  2441.     end
  2442.     CFuncs["Sound"].Create("rbxassetid://200633108", root, 1, 1)
  2443.     local remenantState = Instance.new("Part",char)
  2444.     remenantState.Transparency = 1
  2445.     remenantState.CanCollide = false
  2446.     remenantState.CFrame = root.CFrame + root.CFrame.lookVector*5
  2447.     remenantState.Anchored = true
  2448.     coroutine.resume(coroutine.create(function()
  2449.         for i = 0, 24 do
  2450.             swait()
  2451.             MagniDamage(remenantState, 5, 2,5, 0, "Normal")
  2452.             CFuncs["Sound"].Create("rbxassetid://200632992", root, 0.5, 1)
  2453.     MagicShockTrailAlt2(glowcolor,remenantState.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.2,0.2,0.2,0,0,5,0.075,math.random(1,2))
  2454.     end
  2455.     end))
  2456.     for i = 0,3,0.1 do
  2457.         swait()
  2458.         remenantState.CFrame = root.CFrame + root.CFrame.lookVector*5
  2459.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(45),math.rad(0)),0.4)
  2460.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2461.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(80)),0.4)
  2462.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.4)
  2463.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(80)), 0.4)
  2464.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.4)
  2465. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2466. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  2467.     end
  2468.     remenantState:Destroy()
  2469.     attack = false
  2470. end
  2471.  
  2472. function do2()
  2473.     attack = true
  2474.     for i = 0,2,0.1 do
  2475.         swait()
  2476.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2477.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.2)
  2478.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(60)),0.2)
  2479.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-60)),.2)
  2480.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.2)
  2481.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.2)
  2482. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.2)
  2483. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2484.     end
  2485.     CFuncs["Sound"].Create("rbxassetid://231917801", root, 1, 1)
  2486.     CFuncs["Sound"].Create("rbxassetid://231917987", root, 1, 1)
  2487.     wind("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),2.5,math.random(-25,-10))
  2488.     MagniDamage(root, 16.5, 9,14, 0, "Normal")
  2489.     for z = 0, 2 do
  2490.         MagniDamage(root, 12.5, 1,2, 0, "Normal")
  2491.         groundwind("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),1.5,math.random(-10,-5))
  2492.     for i = 0,1,0.35 do
  2493.         swait()
  2494.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2495.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2496.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
  2497.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2498.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.4)
  2499.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
  2500. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2501. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2502.     end
  2503.     for i = 0,1,0.35 do
  2504.         swait()
  2505.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2506.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2507.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.4)
  2508.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2509.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.4)
  2510.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
  2511. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2512. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2513.     end
  2514.     for i = 0,1,0.35 do
  2515.         swait()
  2516.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2517.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2518.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-180)),0.4)
  2519.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2520.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.4)
  2521.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
  2522. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2523. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2524.     end
  2525.     for i = 0,1,0.35 do
  2526.         swait()
  2527.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2528.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  2529.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-270)),0.4)
  2530.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2531.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.4)
  2532.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
  2533. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2534. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2535.     end
  2536.     end
  2537.     attack = false
  2538. end
  2539.  
  2540. function do3()
  2541.     attack = true
  2542.     CFuncs["Sound"].Create("rbxassetid://161006221", root, 1, 1.1)
  2543.     for z = 0, 4 do
  2544.     for i = 0,1,0.75 do
  2545.         swait()
  2546.         MagicBlock(origcolor,glineb2.CFrame,1,1,1,0.025,0.025,0.025,0.05)
  2547.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.2)
  2548.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.6)
  2549.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(60)),0.2)
  2550.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-60)),.2)
  2551.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.2)
  2552.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.2)
  2553. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.2)
  2554. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2555.     end
  2556.     for i = 0,1,0.75 do
  2557.         swait()
  2558.         MagicBlock(origcolor,glineb2.CFrame,1,1,1,0.025,0.025,0.025,0.05)
  2559.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.2)
  2560.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.6)
  2561.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(60)),0.2)
  2562.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-60)),.2)
  2563.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.2)
  2564.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.2)
  2565. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.2)
  2566. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2567.     end
  2568.     for i = 0,1,0.75 do
  2569.         swait()
  2570.         MagicBlock(origcolor,glineb2.CFrame,1,1,1,0.025,0.025,0.025,0.05)
  2571.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.2)
  2572.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(180),math.rad(0)),0.6)
  2573.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(60)),0.2)
  2574.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-60)),.2)
  2575.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.2)
  2576.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.2)
  2577. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.2)
  2578. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2579.     end
  2580.     for i = 0,1,0.75 do
  2581.         swait()
  2582.         MagicBlock(origcolor,glineb2.CFrame,1,1,1,0.025,0.025,0.025,0.05)
  2583.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(90),math.rad(0)),0.2)
  2584.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(270),math.rad(0)),0.6)
  2585.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(60)),0.2)
  2586.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-60)),.2)
  2587.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.2)
  2588.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.2)
  2589. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.2)
  2590. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2591.     end
  2592.     end
  2593.     local con = hitbox2.Touched:connect(function(hit)
  2594. Damagefunc(hitbox2, hit, 20, 28, 0, "Normal", RootPart, 0.3, "rbxassetid://153092227", 1)
  2595.     end)
  2596.     coroutine.resume(coroutine.create(function()
  2597.         wait(0.1)
  2598.         for i = 0, 9 do
  2599.             swait()
  2600.             MagniDamage(knf2, 10, 1,3, 0, "Normal")
  2601.             CFuncs["Sound"].Create("rbxassetid://200632992", knf2, 0.5, 1)
  2602.     MagicShockTrailAlt2(glowcolor,knf2.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.2,0.2,0.2,0,0,5,0.075,math.random(1,2))
  2603.     end
  2604.     end))
  2605.     CFuncs["Sound"].Create("rbxassetid://231917863", root, 1, 1)
  2606.     for i = 0,2,0.1 do
  2607.         swait()
  2608.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
  2609.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,0,-1.5)* angles(math.rad(90),math.rad(0),math.rad(180)),0.4)
  2610.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.4)
  2611.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(90)),.4)
  2612.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(30)), 0.4)
  2613.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
  2614. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.4)
  2615. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.42)
  2616.     end
  2617.     con:disconnect()
  2618.     attack = false
  2619. end
  2620.  
  2621. function ult()
  2622.     attack = true
  2623.     CFuncs["Sound"].Create("rbxassetid://161006221", root, 1, 1)
  2624.     CFuncs["Sound"].Create("rbxassetid://588697034", root, 0.5, 1.5)
  2625.     for z = 0, 9 do
  2626.         MagniDamage(root, 7.5, 1,3, 0, "Normal")
  2627.         groundwind("Divide",root.CFrame*CFrame.new(0,-3,0),Vector3.new(1,1,1),5,math.random(-10,10))
  2628.     for i = 0,1,0.75 do
  2629.         swait()
  2630.         MagicBlock(origcolor,glineb.CFrame,1,1,1,0.025,0.025,0.025,0.05)
  2631.         MagicBlock(origcolor,glineb2.CFrame,1,1,1,0.025,0.025,0.025,0.05)
  2632.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(1,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.6)
  2633.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(-1,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.6)
  2634.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.2)
  2635.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  2636.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(110)), 0.2)
  2637.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-110)), 0.2)
  2638. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(10)),.2)
  2639. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(10)),.2)
  2640.     end
  2641.     for i = 0,1,0.75 do
  2642.         swait()
  2643.         MagicBlock(origcolor,glineb.CFrame,1,1,1,0.025,0.025,0.025,0.05)
  2644.         MagicBlock(origcolor,glineb2.CFrame,1,1,1,0.025,0.025,0.025,0.05)
  2645.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(1,0,0)* angles(math.rad(90),math.rad(0),math.rad(-90)),0.6)
  2646.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(-1,0,0)* angles(math.rad(90),math.rad(0),math.rad(90)),0.6)
  2647.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.2)
  2648.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  2649.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(110)), 0.2)
  2650.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-110)), 0.2)
  2651. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(10)),.2)
  2652. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(10)),.2)
  2653.     end
  2654.     for i = 0,1,0.75 do
  2655.         swait()
  2656.         MagicBlock(origcolor,glineb.CFrame,1,1,1,0.025,0.025,0.025,0.05)
  2657.         MagicBlock(origcolor,glineb2.CFrame,1,1,1,0.025,0.025,0.025,0.05)
  2658.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(1,0,0)* angles(math.rad(180),math.rad(0),math.rad(-90)),0.6)
  2659.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(-1,0,0)* angles(math.rad(180),math.rad(0),math.rad(90)),0.6)
  2660.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.2)
  2661.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  2662.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(110)), 0.2)
  2663.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-110)), 0.2)
  2664. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(10)),.2)
  2665. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(10)),.2)
  2666.     end
  2667.     for i = 0,1,0.75 do
  2668.         swait()
  2669.         MagicBlock(origcolor,glineb.CFrame,1,1,1,0.025,0.025,0.025,0.05)
  2670.         MagicBlock(origcolor,glineb2.CFrame,1,1,1,0.025,0.025,0.025,0.05)
  2671.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(1,0,0)* angles(math.rad(270),math.rad(0),math.rad(-90)),0.6)
  2672.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(-1,0,0)* angles(math.rad(270),math.rad(0),math.rad(90)),0.6)
  2673.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.2)
  2674.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  2675.              RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(110)), 0.2)
  2676.              LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-110)), 0.2)
  2677. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(10)),.2)
  2678. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(10)),.2)
  2679.     end
  2680.     end
  2681.     CFuncs["Sound"].Create("rbxassetid://231917970", root, 2, 0.75)
  2682.             MagniDamage(root, 35, 15,25, 0, "Normal")
  2683.             MagicBlock(origcolor,root.CFrame,25,25,25,1,1,1,0.01)
  2684.             ring("Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),Vector3.new(10,10,1),1.5)
  2685.     coroutine.resume(coroutine.create(function()
  2686.         for i = 0, 5 do
  2687.             wait(0.2)
  2688.             CFuncs["Sound"].Create("rbxassetid://231917970", root, 1, 0.9)
  2689.             MagniDamage(root, 18, 8,18, 0, "Normal")
  2690.             MagicBlock(origcolor,root.CFrame,10,10,10,1,1,1,0.05)
  2691.             ring("Divide",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),Vector3.new(10,10,1),2.5)
  2692.         end
  2693.     end))
  2694.     for i = 0,8,0.1 do
  2695.         swait()
  2696.         tors.Velocity = root.CFrame.lookVector*150
  2697.         rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,0,-1.5)* angles(math.rad(90),math.rad(0),math.rad(180)),0.6)
  2698.         leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,0,-1.5)* angles(math.rad(90),math.rad(0),math.rad(180)),0.6)
  2699.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.4)
  2700.             Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  2701.              RW.C0 = clerp(RW.C0, CFrame.new(1.05, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.4)
  2702.              LW.C0 = clerp(LW.C0, CFrame.new(-1.05, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(10)), 0.4)
  2703. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10)),.4)
  2704. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(10)),.4)
  2705.     end
  2706.     attack = false
  2707. end
  2708. ---
  2709.  
  2710. local attacktype = 1
  2711. mouse.Button1Down:connect(function()
  2712.   if attack == false and attacktype == 1 then
  2713.     attacktype = 2
  2714.     attackone()
  2715.   elseif attack == false and attacktype == 2 then
  2716.     attacktype = 3
  2717.     attacktwo()
  2718.   elseif attack == false and attacktype == 3 then
  2719.     attacktype = 4
  2720.     attackthree()
  2721.   elseif attack == false and attacktype == 4 then
  2722.     attacktype = 1
  2723.     attackfour()
  2724.   end
  2725. end)
  2726. mouse.KeyDown:connect(function(k)
  2727.         if k == "z" and attack == false and cooldownZ >= 100 then
  2728. cooldownZ = cooldownZ - 100
  2729.                 do1()
  2730.         end
  2731.         if k == "x" and attack == false and cooldownX >= 100 then
  2732. cooldownX = cooldownX - 100
  2733.                 do2()
  2734.         end
  2735.         if k == "c" and attack == false and cooldownC >= 100 then
  2736. cooldownC = cooldownC - 100
  2737.                 do3()
  2738.         end
  2739.         if k == "v" and attack == false and cooldownV >= 100 then
  2740. cooldownV = cooldownV - 100
  2741.                 ult()
  2742.         end
  2743. end)
  2744. Humanoid.Animator.Parent = nil
  2745. idleanim=.4
  2746. while true do
  2747. swait()
  2748. if attack == false then
  2749.     rightkarambitweld.C1 = clerp(rightkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  2750.     leftkarambitweld.C1 = clerp(leftkarambitweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  2751. end
  2752. hptext.Text = math.floor(hum.Health).. " / " ..math.floor(hum.MaxHealth)
  2753. if hum.Health <= 100 then
  2754. hpbarup:TweenSize(UDim2.new(hum.Health/80,0,0.15,0),nil,1,0.4,true)
  2755. end
  2756. cdbarupZ:TweenSize(UDim2.new(cooldownZ/100,0,0.25,0),nil,1,0.4,true)
  2757. cdbarupX:TweenSize(UDim2.new(cooldownX/100,0,0.25,0),nil,1,0.4,true)
  2758. cdbarupC:TweenSize(UDim2.new(cooldownC/100,0,0.25,0),nil,1,0.4,true)
  2759. cdbarupV:TweenSize(UDim2.new(cooldownV/100,0,0.25,0),nil,1,0.4,true)
  2760. if hum.Health < 50 and hum.Health > 25 then
  2761. hpbarup.BackgroundColor3 = Color3.new(1,1,0)
  2762. elseif hum.Health >= 50 then
  2763. hpbarup.BackgroundColor3 = Color3.new(0,1,0)
  2764. elseif hum.Health <= 25 then
  2765. hpbarup.BackgroundColor3 = Color3.new(1,0,0)
  2766. end
  2767. if cooldownZ <= 100 then
  2768. cooldownZ = cooldownZ + 0.2
  2769. end
  2770. if cooldownX <= 100 then
  2771. cooldownX = cooldownX + 0.15
  2772. end
  2773. if cooldownC <= 100 then
  2774. cooldownC = cooldownC + 0.125
  2775. end
  2776. if cooldownV <= 100 then
  2777. cooldownV = cooldownV + 0.085
  2778. end
  2779.   sine = sine + change
  2780. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2781. local velderp=RootPart.Velocity.y
  2782. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2783. if equipped==true or equipped==false then
  2784. if attack==false then
  2785. idle=idle+1
  2786. else
  2787. idle=0
  2788. end
  2789. if idle>=500 then
  2790. if attack==false then
  2791. --Sheath()
  2792. end
  2793. end
  2794. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2795. Anim="Jump"
  2796. if attack==false then
  2797. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2798. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2799. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2800. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2801. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2802. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2803. end
  2804. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2805. Anim="Fall"
  2806. if attack==false then
  2807. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2808. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2809. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2810. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2811. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2812. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2813. end
  2814. elseif torvel<1 and hitfloor~=nil then
  2815. Anim="Idle"
  2816. if attack==false then
  2817. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10)),.1)
  2818. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.1)
  2819. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(10)),.1)
  2820. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(-10)),.1)
  2821. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20 - 5 * math.cos(sine / 25)),math.rad(20 + 5 * math.cos(sine / 25)),math.rad(20 + 5 * math.cos(sine / 25))),.1)
  2822. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20 - 5 * math.cos(sine / 25)),math.rad(-20 - 5 * math.cos(sine / 25)),math.rad(-20 - 5 * math.cos(sine / 25))),.1)
  2823. end
  2824. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2825. Anim="Walk"
  2826. if attack==false then
  2827. RH.C0=clerp(RH.C0,cf(1,-0.85 - 0.15 * math.cos(sine / 3),-0.15 - 0.15 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 55 * math.cos(sine / 6))),.1)
  2828. LH.C0=clerp(LH.C0,cf(-1,-0.85 + 0.15 * math.cos(sine / 3),-0.15 + 0.15 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 55 * math.cos(sine / 6))),.1)
  2829. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 3))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 6))),.1)
  2830. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 6))),.1)
  2831. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 5 * math.cos(sine / 6)),math.rad(20),math.rad(10 - 1 * math.cos(sine / 3))),.1)
  2832. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 5 * math.cos(sine / 6)),math.rad(-20),math.rad(-10 + 1 * math.cos(sine / 3))),.1)
  2833. end
  2834. elseif torvel>=22 and hitfloor~=nil then
  2835. Anim="Run"
  2836. if attack==false then
  2837. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  2838. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  2839.               RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  2840. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2841. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  2842. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  2843. end
  2844. end
  2845. end
  2846. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement