shgsiughiiruhdu12354

I.R.O.N

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