Advertisement
Infinite_Hack

Iron

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