Advertisement
lilta44

idek

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