Advertisement
coolgoldboy166

derp chara

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