Guest User

Untitled

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