Advertisement
carcine12

Vegeta script

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