Advertisement
Its_YeBoi

Untitled

Feb 24th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.94 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2.  
  3. local plr = game.Players.LocalPlayer
  4. local chr = plr.Character
  5. local maus = plr:GetMouse()
  6. local PGui=plr.PlayerGui
  7. local lleg = chr["Left Leg"]
  8. local rleg = chr["Right Leg"]
  9. local larm = chr["Left Arm"]
  10. local rarm = chr["Right Arm"]
  11. local hed = chr.Head
  12. local rutprt = chr.HumanoidRootPart
  13. local torso = chr.Torso
  14. local otheranims=false
  15. local swimming=false
  16. local attacking = false
  17. local modeColor = "White"
  18. local IT = Instance.new
  19. local VT = Vector3.new
  20.  
  21.  
  22. ---//*DEBOUNCES
  23. canChangeFromC = true
  24. canChangeFromA = true
  25. canChangeFromCF = true
  26. canChangeFromSF = true
  27. canChangeFromPT = true
  28. canChangeFromGT = true
  29. canChangeFromUT = true
  30. ----
  31. canChangeFromMT = true
  32. ----*\\
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. ---//*AUDIO FOR MODES
  43. ---
  44. dorado = Instance.new("Sound",chr) ---casualFighting
  45. dorado.SoundId = "rbxassetid://188095869"
  46. dorado.Volume = 2
  47. dorado.Looped = true
  48. ---
  49. marxA = Instance.new("Sound",chr) ---Annoyed
  50. marxA.SoundId = "rbxassetid://464032364"
  51. marxA.Pitch = 0.5
  52. marxA.Volume = 2
  53. marxA.Looped = true
  54. ---
  55. ----*\\
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. --//*Instances
  63. AAura = Instance.new("ParticleEmitter")
  64. CFAura1 = Instance.new("ParticleEmitter")
  65. CFAura2 = Instance.new("ParticleEmitter")
  66. RuneP = Instance.new("Part",chr.Torso)
  67. RuneP.Parent = nil
  68. annoyedPOWERUP = Instance.new("Sound")
  69. casualFightingPOWERUP = Instance.new("Sound")
  70. ShieldP = Instance.new("Part")
  71. ShieldP.Parent = nil
  72. local ShieldM = Instance.new("SpecialMesh")
  73. ShieldHolder = Instance.new("Model",chr)
  74. RShieldP = Instance.new("Part")
  75. RShieldP.Parent = nil
  76. ---*\\
  77.  
  78.  
  79.  
  80.  
  81.  
  82. --//*MODES (in order of magnitude)
  83. local calm = true --default
  84. local annoyed = false
  85. local casualFighting = false
  86. local seriousFighting = false
  87. local planetaryThreat = false
  88. local galacticThreat = false
  89. local universalThreat = false
  90. ----
  91. local multiversalThreat = false
  92. -----*\\
  93.  
  94. function QuaternionFromCFrame(cf)
  95. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  96. local trace = m00 + m11 + m22
  97. if trace > 0 then
  98. local s = math.sqrt(1 + trace)
  99. local recip = 0.5 / s
  100. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  101. else
  102. local i = 0
  103. if m00 < m11 then
  104. i = 1
  105. end
  106. if m22 > (i == 0 and m00 or m11) then
  107. i = 2
  108. end
  109. if i == 0 then
  110. local s = math.sqrt(m00 - m11 - m22 + 1)
  111. local recip = 0.5 / s
  112. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  113. elseif i == 1 then
  114. local s = math.sqrt(m11 - m22 - m00 + 1)
  115. local recip = 0.5 / s
  116. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  117. elseif i == 2 then
  118. local s = math.sqrt(m22 - m00 - m11 + 1)
  119. local recip = 0.5 / s
  120. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  121. end
  122. end
  123. end
  124. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  125. local xs, ys, zs = x + x, y + y, z + z
  126. local wx, wy, wz = w * xs, w * ys, w * zs
  127. local xx = x * xs
  128. local xy = x * ys
  129. local xz = x * zs
  130. local yy = y * ys
  131. local yz = y * zs
  132. local zz = z * zs
  133. 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))
  134. end
  135. function QuaternionSlerp(a, b, t)
  136. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  137. local startInterp, finishInterp
  138. if cosTheta >= 1.0E-4 then
  139. if 1 - cosTheta > 1.0E-4 then
  140. local theta = math.acos(cosTheta)
  141. local invSinTheta = 1 / math.sin(theta)
  142. startInterp = math.sin((1 - t) * theta) * invSinTheta
  143. finishInterp = math.sin(t * theta) * invSinTheta
  144. else
  145. startInterp = 1 - t
  146. finishInterp = t
  147. end
  148. elseif 1 + cosTheta > 1.0E-4 then
  149. local theta = math.acos(-cosTheta)
  150. local invSinTheta = 1 / math.sin(theta)
  151. startInterp = math.sin((t - 1) * theta) * invSinTheta
  152. finishInterp = math.sin(t * theta) * invSinTheta
  153. else
  154. startInterp = t - 1
  155. finishInterp = t
  156. end
  157. 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
  158. end
  159. function rayCast(Position, Direction, Range, Ignore)
  160. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  161. end
  162.  
  163. canChangeFromC = true
  164. canChangeFromA = true
  165. canChangeFromCF = true
  166. canChangeFromSF = true
  167. canChangeFromPT = true
  168. canChangeFromGT = true
  169. canChangeFromUT = true
  170. IT = Instance.new
  171. CF = CFrame.new
  172. VT = Vector3.new
  173. RAD = math.rad
  174. C3 = Color3.new
  175. UD2 = UDim2.new
  176. BRICKC = BrickColor.new
  177. ANGLES = CFrame.Angles
  178. EULER = CFrame.fromEulerAnglesXYZ
  179. COS = math.cos
  180. ACOS = math.acos
  181. SIN = math.sin
  182. ASIN = math.asin
  183. ABS = math.abs
  184. MRANDOM = math.random
  185. FLOOR = math.floor
  186.  
  187. chr.Animate.Disabled=true
  188. local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
  189. local RunSpeed=30
  190.  
  191. local WlkSpeed=16
  192. local SwimSpeed=14
  193. local SwimDashSpeed=28
  194. local anim = "Idling"
  195. local lastanim = "Idling"
  196. local val = 0
  197. local syne = 0
  198. local num = 0
  199. local runtime = 0
  200. coroutine.wrap(function()
  201. for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
  202. function Lerp(a, b, i)
  203. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  204. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  205. local calx = com1[1] + (com2[1] - com1[1]) * i
  206. local caly = com1[2] + (com2[2] - com1[2]) * i
  207. local calz = com1[3] + (com2[3] - com1[3]) * i
  208. local cala = com1[4] + (com2[4] - com1[4]) * i
  209. local calb = com1[5] + (com2[5] - com1[5]) * i
  210. local calc = com1[6] + (com2[6] - com1[6]) * i
  211. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  212. end
  213. function TwnSingleNumber(s,f,m)
  214. local wot=s+(f-s)*m
  215. return wot
  216. end
  217. function TwnVector3(q,w,e)
  218. local begin={q.x,q.y,q.z}
  219. local ending={w.x,w.y,w.z}
  220. local bgx=begin[1]+(ending[1]-begin[1])*e
  221. local bgy=begin[2]+(ending[2]-begin[2])*e
  222. local bgz=begin[3]+(ending[3]-begin[3])*e
  223. return Vector3.new(bgx,bgy,bgz)
  224. end
  225. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  226. wld = Instance.new("Weld", wp1)
  227. wld.Part0 = wp0
  228. wld.Part1 = wp1
  229. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  230. end
  231. local angles = CFrame.Angles
  232. function clerp(a, b, t)
  233. return a:lerp(b, t)
  234. end
  235. newWeld(law, torso, larm, -1.5, 0.5, 0)
  236. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  237. newWeld(llw, torso, lleg, -.5, -2, 0)
  238. newWeld(rlw, torso, rleg, .5, -2, 0)
  239. newWeld(hw, torso, hed, 0, 1.5, 0)
  240. local rutwald=Instance.new('Weld',rutprt)
  241. rutwald.Part0=rutprt
  242. rutwald.Part1=torso
  243. rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
  244. larm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  245. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  246. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  247. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  248.  
  249. ----- Wings ok
  250.  
  251.  
  252.  
  253. -----
  254.  
  255. maus.KeyDown:connect(function(kei)
  256. if kei == "1" then
  257. if canChangeFromC == true then
  258. canChangeFromC = false
  259. calm = true -- active mode
  260. annoyed = false
  261. casualFighting = false
  262. seriousFighting = false
  263. planetaryThreat = false
  264. galacticThreat = false
  265. universalThreat = false
  266. multiversalThreat = false
  267. dorado:Stop()
  268. marxA:Stop()
  269. ---------EFFECTS
  270. CFAura1.Parent = nil
  271. CFAura2.Parent = nil
  272. AAura.Parent = nil
  273. ---------
  274. ---------DEBOUNCE ENABLE
  275. wait(1)
  276. canChangeFromCF = true
  277. canChangeFromA = true
  278. canChangeFromSF = true
  279. canChangeFromPT = true
  280. canChangeFromGT = true
  281. canChangeFromUT = true
  282. ----
  283. canChangeFromMT = true
  284. ---------
  285. end
  286. end
  287. end)
  288. --[[ THIS IS THE BALL EXPLODE FUNC
  289. AAura.Texture = "rbxassetid://347730682"
  290. local color1 = Color3.new(127,0,0)
  291. local color2 = Color3.new(127,0,0)
  292. AAura.Color = ColorSequence.new(color1,color2)
  293. AAura.Size = NumberSequence.new(6,6,6,6,6,6)
  294. AAura.Lifetime = NumberRange.new(0.3,0.3,0.3,0.3,0.3)
  295. AAura.Rate = 20
  296. AAura.Transparency = NumberSequence.new(0.6,0.6,0.6,0.6,0.6,0.6)
  297. AAura.Speed = NumberRange.new(10,10,10,10,10,10)
  298. AAura.LockedToPart = true
  299. AExplodeP = Instance.new("Part",chr)
  300. AExplodeP.Anchored = true
  301. AExplodeP.TopSurface = 0
  302. AExplodeP.Material = "Neon"
  303. AExplodeP.BottomSurface = 0
  304. AExplodeP.CanCollide = false
  305. AExplodeP.CFrame = chr.Torso.CFrame
  306. AExplodeP.BrickColor = BrickColor.new("Really red")
  307. AExplodeP.Size = Vector3.new(1,1,1)
  308. AExplodeM = Instance.new("SpecialMesh",AExplodeP)
  309. AExplodeM.MeshType = "Sphere"
  310.  
  311.  
  312. AExplodeP2 = Instance.new("Part",chr)
  313. AExplodeP2.Anchored = true
  314. AExplodeP2.TopSurface = 0
  315. AExplodeP2.Material = "Neon"
  316. AExplodeP2.BottomSurface = 0
  317. AExplodeP2.CanCollide = false
  318. AExplodeP2.CFrame = chr.Torso.CFrame
  319. AExplodeP2.BrickColor = BrickColor.new("Really red")
  320. AExplodeP2.Size = Vector3.new(1,1,1)
  321. AExplodeM2 = Instance.new("FileMesh",AExplodeP2)
  322. AExplodeM2.MeshId = "rbxassetid://20329976"
  323. for i = 1,50,2 do wait()
  324. AExplodeM.Scale = Vector3.new(i,i,i)
  325. AExplodeP.Transparency = i/50
  326. AExplodeM2.Scale = Vector3.new(i,i-30,i)
  327. AExplodeP2.Transparency = i/50
  328. end
  329. AExplodeP:Remove()
  330. --]]
  331.  
  332. ---//*MOVES
  333.  
  334.  
  335.  
  336. --*\\
  337.  
  338. maus.KeyDown:connect(function(kei)
  339. if string.byte(kei)==48 and not otheranims then
  340. runnin=true
  341. end
  342. if kei=='w' then fldb.w=true end
  343. if kei=='a' then fldb.a=true end
  344. if kei=='s' then fldb.s=true end
  345. if kei=='d' then fldb.d=true end
  346. end)
  347. maus.KeyUp:connect(function(kei)
  348. if string.byte(kei)==48 and not otheranims then
  349. runnin=false
  350. end
  351. if kei=='w' then fldb.w=false end
  352. if kei=='a' then fldb.a=false end
  353. if kei=='s' then fldb.s=false end
  354. if kei=='d' then fldb.d=false end
  355. end)
  356.  
  357.  
  358.  
  359. CFuncs = {
  360. Part = {
  361. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  362. local Part = Create("Part")({
  363. Parent = Parent,
  364. Reflectance = Reflectance,
  365. Transparency = Transparency,
  366. CanCollide = false,
  367. Locked = true,
  368. BrickColor = BrickColor.new(tostring(BColor)),
  369. Name = Name,
  370. Size = Size,
  371. Material = Material
  372. })
  373. RemoveOutlines(Part)
  374. return Part
  375. end
  376. },
  377. Mesh = {
  378. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  379. local Msh = Create(Mesh)({
  380. Parent = Part,
  381. Offset = OffSet,
  382. Scale = Scale
  383. })
  384. if Mesh == "SpecialMesh" then
  385. Msh.MeshType = MeshType
  386. Msh.MeshId = MeshId
  387. end
  388. return Msh
  389. end
  390. },
  391. Mesh = {
  392. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  393. local Msh = Create(Mesh)({
  394. Parent = Part,
  395. Offset = OffSet,
  396. Scale = Scale
  397. })
  398. if Mesh == "SpecialMesh" then
  399. Msh.MeshType = MeshType
  400. Msh.MeshId = MeshId
  401. end
  402. return Msh
  403. end
  404. },
  405. Weld = {
  406. Create = function(Parent, Part0, Part1, C0, C1)
  407. local Weld = Create("Weld")({
  408. Parent = Parent,
  409. Part0 = Part0,
  410. Part1 = Part1,
  411. C0 = C0,
  412. C1 = C1
  413. })
  414. return Weld
  415. end
  416. },
  417. Sound = {
  418. Create = function(id, par, vol, pit)
  419. coroutine.resume(coroutine.create(function()
  420. local S = Create("Sound")({
  421. Volume = vol,
  422. Pitch = pit or 1,
  423. SoundId = id,
  424. Parent = par or workspace
  425. })
  426. wait()
  427. S:play()
  428. game:GetService("Debris"):AddItem(S, 6)
  429. end))
  430. end
  431. },
  432. ParticleEmitter = {
  433. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  434. local fp = Create("ParticleEmitter")({
  435. Parent = Parent,
  436. Color = ColorSequence.new(Color1, Color2),
  437. LightEmission = LightEmission,
  438. Size = Size,
  439. Texture = Texture,
  440. Transparency = Transparency,
  441. ZOffset = ZOffset,
  442. Acceleration = Accel,
  443. Drag = Drag,
  444. LockedToPart = LockedToPart,
  445. VelocityInheritance = VelocityInheritance,
  446. EmissionDirection = EmissionDirection,
  447. Enabled = Enabled,
  448. Lifetime = LifeTime,
  449. Rate = Rate,
  450. Rotation = Rotation,
  451. RotSpeed = RotSpeed,
  452. Speed = Speed,
  453. VelocitySpread = VelocitySpread
  454. })
  455. return fp
  456. end
  457. }
  458. }
  459. function RemoveOutlines(part)
  460. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  461. end
  462. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  463. local Part = Create("Part")({
  464. formFactor = FormFactor,
  465. Parent = Parent,
  466. Reflectance = Reflectance,
  467. Transparency = Transparency,
  468. CanCollide = false,
  469. Locked = true,
  470. BrickColor = BrickColor.new(tostring(BColor)),
  471. Name = Name,
  472. Size = Size,
  473. Material = Material
  474. })
  475. RemoveOutlines(Part)
  476. return Part
  477. end
  478. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  479. local Msh = Create(Mesh)({
  480. Parent = Part,
  481. Offset = OffSet,
  482. Scale = Scale
  483. })
  484. if Mesh == "SpecialMesh" then
  485. Msh.MeshType = MeshType
  486. Msh.MeshId = MeshId
  487. end
  488. return Msh
  489. end
  490. function CreateWeld(Parent, Part0, Part1, C0, C1)
  491. local Weld = Create("Weld")({
  492. Parent = Parent,
  493. Part0 = Part0,
  494. Part1 = Part1,
  495. C0 = C0,
  496. C1 = C1
  497. })
  498. return Weld
  499. end
  500. EffectModel = Instance.new("Model", char)
  501. Effects = {
  502. Block = {
  503. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  504. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  505. prt.Anchored = true
  506. prt.CFrame = cframe
  507. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  508. game:GetService("Debris"):AddItem(prt, 10)
  509. if Type == 1 or Type == nil then
  510. table.insert(Effects, {
  511. prt,
  512. "Block1",
  513. delay,
  514. x3,
  515. y3,
  516. z3,
  517. msh
  518. })
  519. elseif Type == 2 then
  520. table.insert(Effects, {
  521. prt,
  522. "Block2",
  523. delay,
  524. x3,
  525. y3,
  526. z3,
  527. msh
  528. })
  529. else
  530. table.insert(Effects, {
  531. prt,
  532. "Block3",
  533. delay,
  534. x3,
  535. y3,
  536. z3,
  537. msh
  538. })
  539. end
  540. end
  541. },
  542. Sphere = {
  543. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  544. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  545. prt.Anchored = true
  546. prt.CFrame = cframe
  547. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  548. game:GetService("Debris"):AddItem(prt, 10)
  549. table.insert(Effects, {
  550. prt,
  551. "Cylinder",
  552. delay,
  553. x3,
  554. y3,
  555. z3,
  556. msh
  557. })
  558. end
  559. },
  560. Cylinder = {
  561. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  562. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  563. prt.Anchored = true
  564. prt.CFrame = cframe
  565. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  566. game:GetService("Debris"):AddItem(prt, 10)
  567. table.insert(Effects, {
  568. prt,
  569. "Cylinder",
  570. delay,
  571. x3,
  572. y3,
  573. z3,
  574. msh
  575. })
  576. end
  577. },
  578. Wave = {
  579. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  580. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  581. prt.Anchored = true
  582. prt.CFrame = cframe
  583. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  584. game:GetService("Debris"):AddItem(prt, 10)
  585. table.insert(Effects, {
  586. prt,
  587. "Cylinder",
  588. delay,
  589. x3 / 60,
  590. y3 / 60,
  591. z3 / 60,
  592. msh
  593. })
  594. end
  595. },
  596. Ring = {
  597. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  598. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  599. prt.Anchored = true
  600. prt.CFrame = cframe
  601. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  602. game:GetService("Debris"):AddItem(prt, 10)
  603. table.insert(Effects, {
  604. prt,
  605. "Cylinder",
  606. delay,
  607. x3,
  608. y3,
  609. z3,
  610. msh
  611. })
  612. end
  613. },
  614. Break = {
  615. Create = function(brickcolor, cframe, x1, y1, z1)
  616. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  617. prt.Anchored = true
  618. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  619. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  620. local num = math.random(10, 50) / 1000
  621. game:GetService("Debris"):AddItem(prt, 10)
  622. table.insert(Effects, {
  623. prt,
  624. "Shatter",
  625. num,
  626. prt.CFrame,
  627. math.random() - math.random(),
  628. 0,
  629. math.random(50, 100) / 100
  630. })
  631. end
  632. },
  633. Spiral = {
  634. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  635. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  636. prt.Anchored = true
  637. prt.CFrame = cframe
  638. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  639. game:GetService("Debris"):AddItem(prt, 10)
  640. table.insert(Effects, {
  641. prt,
  642. "Cylinder",
  643. delay,
  644. x3,
  645. y3,
  646. z3,
  647. msh
  648. })
  649. end
  650. },
  651. Push = {
  652. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  653. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  654. prt.Anchored = true
  655. prt.CFrame = cframe
  656. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  657. game:GetService("Debris"):AddItem(prt, 10)
  658. table.insert(Effects, {
  659. prt,
  660. "Cylinder",
  661. delay,
  662. x3,
  663. y3,
  664. z3,
  665. msh
  666. })
  667. end
  668. }
  669. }
  670. local Torso = chr.Torso
  671. function CreateSound(ID, PARENT, VOLUME, PITCH)
  672. local NEWSOUND = nil
  673. coroutine.resume(coroutine.create(function()
  674. NEWSOUND = Instance.new("Sound", PARENT)
  675. NEWSOUND.Volume = VOLUME
  676. NEWSOUND.Pitch = PITCH
  677. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  678. swait()
  679. NEWSOUND:play()
  680. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  681. end))
  682. return NEWSOUND
  683. end
  684.  
  685. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  686. local NEWMESH = IT(MESH)
  687. if MESH == "SpecialMesh" then
  688. NEWMESH.MeshType = MESHTYPE
  689. if MESHID ~= "nil" and MESHID ~= "" then
  690. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  691. end
  692. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  693. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  694. end
  695. end
  696. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  697. NEWMESH.Scale = SCALE
  698. NEWMESH.Parent = PARENT
  699. return NEWMESH
  700. end
  701.  
  702. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  703. local NEWPART = IT("Part")
  704. NEWPART.formFactor = FORMFACTOR
  705. NEWPART.Reflectance = REFLECTANCE
  706. NEWPART.Transparency = TRANSPARENCY
  707. NEWPART.CanCollide = false
  708. NEWPART.Anchored = true
  709. NEWPART.Locked = true
  710. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  711. NEWPART.Name = NAME
  712. NEWPART.Size = SIZE
  713. NEWPART.Position = Torso.Position
  714. NEWPART.Material = MATERIAL
  715. NEWPART:BreakJoints()
  716. NEWPART.Parent = PARENT
  717. return NEWPART
  718. end
  719.  
  720.  
  721. ----
  722. canChangeFromMT = true
  723. ----*\\
  724. function Swait(NUMBER)
  725. if NUMBER == 0 or NUMBER == nil then
  726. ArtificialHB.Event:wait()
  727. else
  728. for i = 1, NUMBER do
  729. ArtificialHB.Event:wait()
  730. end
  731. end
  732. end
  733. ---//*Character
  734.  
  735. chr.Head.face:Destroy()
  736.  
  737. function debounce(func)
  738. local isRunning = false -- Create a local debounce variable
  739. return function(...) -- Return a new function
  740. if not isRunning then
  741. isRunning = true
  742.  
  743. func(...) -- Call it with the original arguments
  744.  
  745. isRunning = false
  746. end
  747. end
  748. end
  749.  
  750.  
  751. function CreateSound(ID, PARENT, VOLUME, PITCH)
  752. local NEWSOUND = nil
  753. coroutine.resume(coroutine.create(function()
  754. NEWSOUND = Instance.new("Sound", PARENT)
  755. NEWSOUND.Volume = VOLUME
  756. NEWSOUND.Pitch = PITCH
  757. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  758. swait()
  759. NEWSOUND:play()
  760. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  761. end))
  762. return NEWSOUND
  763. end
  764.  
  765. function clerp(a, b, t)
  766. local qa = {
  767. QuaternionFromCFrame(a)
  768. }
  769. local qb = {
  770. QuaternionFromCFrame(b)
  771. }
  772. local ax, ay, az = a.x, a.y, a.z
  773. local bx, by, bz = b.x, b.y, b.z
  774. local _t = 1 - t
  775. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  776. end
  777.  
  778. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  779. if hit.Parent == nil then
  780. return
  781. end
  782. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  783. for _, v in pairs(hit.Parent:children()) do
  784. if v:IsA("Humanoid") then
  785. h = v
  786. end
  787. end
  788. if h ~= nil and hit.Parent.Name ~= chr.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  789. warn'No R15 allowed'
  790. hit.Parent:FindFirstChild("Head"):BreakJoints()
  791. end
  792.  
  793. if h ~= nil and hit.Parent.Name ~= chr.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  794. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  795. if hit.Parent.DebounceHit.Value == true then
  796. return
  797. end
  798. end
  799. if insta == true then
  800. hit.Parent:FindFirstChild("Head"):BreakJoints()
  801. end
  802. local c = Create("ObjectValue"){
  803. Name = "creator",
  804. Value = game:service("Players").LocalPlayer,
  805. Parent = h,
  806. }
  807. game:GetService("Debris"):AddItem(c, .5)
  808. if HitSound ~= nil and HitPitch ~= nil then
  809. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  810. end
  811. local Damage = math.random(minim, maxim)
  812. local blocked = false
  813. local block = hit.Parent:findFirstChild("Block")
  814. if block ~= nil then
  815. if block.className == "IntValue" then
  816. if block.Value > 0 then
  817. blocked = true
  818. block.Value = block.Value - 1
  819. print(block.Value)
  820. end
  821. end
  822. end
  823. if blocked == false then
  824. h.Health = h.Health - Damage
  825. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  826. else
  827. h.Health = h.Health - (Damage / 2)
  828. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  829. end
  830. if Type == "Knockdown" then
  831. local hum = hit.Parent.Humanoid
  832. hum.PlatformStand = true
  833. coroutine.resume(coroutine.create(function(HHumanoid)
  834. swait(1)
  835. HHumanoid.PlatformStand = false
  836. end), hum)
  837. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  838. local bodvol = Create("BodyVelocity"){
  839. velocity = angle * knockback,
  840. P = 5000,
  841. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  842. Parent = hit,
  843. }
  844. local rl = Create("BodyAngularVelocity"){
  845. P = 3000,
  846. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  847. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  848. Parent = hit,
  849. }
  850. game:GetService("Debris"):AddItem(bodvol, .5)
  851. game:GetService("Debris"):AddItem(rl, .5)
  852. elseif Type == "Normal" then
  853. local vp = Create("BodyVelocity"){
  854. P = 500,
  855. maxForce = Vector3.new(math.huge, 0, math.huge),
  856. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  857. }
  858. if knockback > 0 then
  859. vp.Parent = hit.Parent.Torso
  860. end
  861. game:GetService("Debris"):AddItem(vp, .5)
  862. elseif Type == "Up" then
  863. local bodyVelocity = Create("BodyVelocity"){
  864. velocity = Vector3.new(0, 20, 0),
  865. P = 5000,
  866. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  867. Parent = hit,
  868. }
  869. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  870. elseif Type == "DarkUp" then
  871. coroutine.resume(coroutine.create(function()
  872. for i = 0, 1, 0.1 do
  873. swait()
  874. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  875. end
  876. end))
  877. local bodyVelocity = Create("BodyVelocity"){
  878. velocity = Vector3.new(0, 20, 0),
  879. P = 5000,
  880. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  881. Parent = hit,
  882. }
  883. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  884. elseif Type == "Snare" then
  885. local bp = Create("BodyPosition"){
  886. P = 2000,
  887. D = 100,
  888. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  889. position = hit.Parent.Torso.Position,
  890. Parent = hit.Parent.Torso,
  891. }
  892. game:GetService("Debris"):AddItem(bp, 1)
  893. elseif Type == "Freeze" then
  894. local BodPos = Create("BodyPosition"){
  895. P = 50000,
  896. D = 1000,
  897. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  898. position = hit.Parent.Torso.Position,
  899. Parent = hit.Parent.Torso,
  900. }
  901. local BodGy = Create("BodyGyro") {
  902. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  903. P = 20e+003,
  904. Parent = hit.Parent.Torso,
  905. cframe = hit.Parent.Torso.CFrame,
  906. }
  907. hit.Parent.Torso.Anchored = true
  908. coroutine.resume(coroutine.create(function(Part)
  909. swait(1.5)
  910. Part.Anchored = false
  911. end), hit.Parent.Torso)
  912. game:GetService("Debris"):AddItem(BodPos, 3)
  913. game:GetService("Debris"):AddItem(BodGy, 3)
  914. end
  915. local debounce = Create("BoolValue"){
  916. Name = "DebounceHit",
  917. Parent = hit.Parent,
  918. Value = true,
  919. }
  920. game:GetService("Debris"):AddItem(debounce, Delay)
  921. c = Create("ObjectValue"){
  922. Name = "creator",
  923. Value = Player,
  924. Parent = h,
  925. }
  926. game:GetService("Debris"):AddItem(c, .5)
  927. end
  928. end
  929.  
  930. function ShowDamage(Pos, Text, Time, Color)
  931. local Rate = (1 / 30)
  932. local Pos = (Pos or Vector3.new(0, 0, 0))
  933. local Text = (Text or "")
  934. local Time = (Time or 2)
  935. local Color = (Color or Color3.new(1, 0, 1))
  936. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  937. EffectPart.Anchored = true
  938. local BillboardGui = Create("BillboardGui"){
  939. Size = UDim2.new(3, 0, 3, 0),
  940. Adornee = EffectPart,
  941. Parent = EffectPart,
  942. }
  943. local TextLabel = Create("TextLabel"){
  944. BackgroundTransparency = 1,
  945. Size = UDim2.new(1, 0, 1, 0),
  946. Text = Text,
  947. Font = "Highway",
  948. TextColor3 = Color,
  949. TextScaled = true,
  950. Parent = BillboardGui,
  951. }
  952. game.Debris:AddItem(EffectPart, (Time))
  953. EffectPart.Parent = game:GetService("Workspace")
  954. delay(0, function()
  955. local Frames = (Time / Rate)
  956. for Frame = 1, Frames do
  957. wait(Rate)
  958. local Percent = (Frame / Frames)
  959. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  960. TextLabel.TextTransparency = Percent
  961. end
  962. if EffectPart and EffectPart.Parent then
  963. EffectPart:Destroy()
  964. end
  965. end)
  966. end
  967.  
  968. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  969. for _, c in pairs(workspace:children()) do
  970. local hum = c:findFirstChild("Humanoid")
  971. if hum ~= nil then
  972. local head = c:findFirstChild("Head")
  973. if head ~= nil then
  974. local targ = head.Position - Part.Position
  975. local mag = targ.magnitude
  976. if magni >= mag and c.Name ~= plr.Name then
  977. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=231917784", 1.2)
  978. end
  979. end
  980. end
  981. end
  982. end
  983.  
  984. function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  985. Hitboxpart = Instance.new("Part", EffectModel)
  986. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  987. Hitboxpart.CanCollide = false
  988. Hitboxpart.Transparency = 1
  989. Hitboxpart.Anchored = true
  990. Hitboxpart.CFrame = Pose
  991. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  992. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  993. end
  994.  
  995. ---*\\
  996.  
  997. local hum = chr.Humanoid
  998.  
  999. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset,BrickColor)
  1000. spawn(function()
  1001. local wave = CreatePart(3, workspace, "Neon", 0, 0.5, BrickColor, "Effect", VT(0,0,0))
  1002. local mesh = Instance.new("SpecialMesh",wave)
  1003. mesh.MeshType = "FileMesh"
  1004. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1005. mesh.Scale = Vector3.new(size,size,size)
  1006. mesh.Offset = Vector3.new(0,0,-size/8)
  1007. wave.CFrame = CFrame.new(part.Position) * CFrame.new(0,offset,0) * CFrame.Angles(RAD(inair),RAD(0),RAD(0))
  1008. coroutine.resume(coroutine.create(function(PART)
  1009. for i = 1, waitt do
  1010. Swait()
  1011. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  1012. mesh.Offset = Vector3.new(0,0,-(mesh.Scale.X/8))
  1013. if doesrotate == true then
  1014. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  1015. end
  1016. wave.Transparency = wave.Transparency + (0.5/waitt)
  1017. if wave.Transparency > 0.99 then
  1018. wave:remove()
  1019. end
  1020. end
  1021. end))
  1022. end)
  1023. end
  1024.  
  1025.  
  1026. function PT(Part,Time)
  1027. --aaa
  1028. end
  1029.  
  1030. local lasering = false
  1031. function Beam()
  1032. spawn(function()
  1033. while wait() do
  1034. if lasering == true then
  1035. local laser = Instance.new('Part', chr)
  1036. local dist = (rarm.CFrame.p - maus.Hit.p).magnitude
  1037. laser.Anchored = true
  1038. laser.Material = 'Neon'
  1039. laser.CanCollide = false
  1040. laser.Transparency = 0.6
  1041. laser.BrickColor = BrickColor.new(modeColor)
  1042. laser.Size = Vector3.new(0.45,0.45,dist)
  1043. laser.CFrame = CFrame.new(rarm.CFrame.p, maus.Hit.p) * CFrame.new(0, 0, -dist/2)
  1044. HitboxFunction(laser.CFrame * CFrame.new(0, 0, -dist/2), 0.01, .45, .45, dist, 7, 1, 1, 3, "Normal")
  1045. game:service'Debris':AddItem(laser,.1)
  1046. end
  1047.  
  1048. end
  1049. end)
  1050. end
  1051.  
  1052. Beam()
  1053.  
  1054. function pew(arm)
  1055. ypcall(function()
  1056. local Ball = Instance.new("Part",chr)
  1057. Ball.Shape = 0
  1058. Ball.CFrame = arm.CFrame * CFrame.new(0,-3,0)
  1059. Ball.Transparency = 0.1
  1060. Ball.BrickColor = BrickColor.new(modeColor)
  1061. Ball.Reflectance = 0.1
  1062. Ball.Material = "Neon"
  1063. Ball.Anchored = true
  1064. Ball.CanCollide = false
  1065. Ball.Size = Vector3.new(1,1,1)
  1066. Ball.Locked = true
  1067. Ball.Touched:connect(Destroy)
  1068. local HB = Instance.new("Part",chr)
  1069. HB.Locked = true
  1070. z = Instance.new("Sound",Ball)
  1071. z.SoundId = "rbxassetid://237035051"
  1072. z.Volume = 1
  1073. z.Pitch = .9
  1074. z:Play()
  1075. HitboxFunction(Ball.CFrame, 11, 7, 1, 1, 1, 24, 36, 3, "Normal")
  1076. for i = 0, 260, 8 do
  1077. wait()
  1078. Ball.CFrame = Ball.CFrame * CFrame.new(0, -4.2 -(i/18),0) * CFrame.Angles(0, 0, math.rad(0))
  1079. end
  1080. wait()
  1081. Ball:remove()
  1082. z:Stop()
  1083. end)
  1084. end
  1085.  
  1086. local plr = game.Players.LocalPlayer
  1087. local char = plr.Character
  1088. local torso = char.Torso
  1089. local head = char.Head
  1090. local att = 1
  1091. local pewcom = 1
  1092. maus.KeyDown:connect(function(kei)
  1093. if kei == "r" then
  1094. if attack == false then
  1095. attack = true
  1096. if pewcom == 1 then
  1097. for i = 0, 1, 0.1 do
  1098. wait()
  1099. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(0,math.rad(0),math.rad(90)),.7)
  1100. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(0,0,math.rad(-3)),.7)
  1101. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),.7)
  1102. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),.7)
  1103. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(-70),0),.7)
  1104. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,2,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),.7)
  1105. end
  1106. pew(rarm)
  1107. pewcom = 2
  1108. elseif pewcom == 2 then
  1109. for i = 0, 1, 0.1 do
  1110. wait()
  1111. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(0,0,math.rad(-3)),.7)
  1112. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(0,math.rad(0),math.rad(-90)),.7)
  1113. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),.7)
  1114. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),.7)
  1115. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(70),0),.7)
  1116. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,2,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),.7)
  1117. end
  1118. pew(larm)
  1119. pewcom = 1
  1120. end
  1121. end
  1122. attack = false
  1123. end
  1124. end)
  1125.  
  1126.  
  1127. maus.KeyDown:connect(function(kei)
  1128. if kei == "q" then
  1129. if attack == false then
  1130. attack = true
  1131. for i = 0, 1, 0.1 do
  1132. wait()
  1133. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(0,math.rad(40),math.rad(90)),.7)
  1134. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(0,0,math.rad(-3)),.7)
  1135. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),.7)
  1136. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),.7)
  1137. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(-70),0),.7)
  1138. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,2,0)*CFrame.Angles(math.rad(0),math.rad(70),math.rad(0)),.7)
  1139. end
  1140. wait(.4)
  1141. for i = 0, 1, 0.1 do
  1142. wait()
  1143. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(0,math.rad(0),math.rad(150)),.7)
  1144. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(0,0,math.rad(-3)),.7)
  1145. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),.7)
  1146. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),.7)
  1147. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(-70),0),.7)
  1148. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,2,0)*CFrame.Angles(math.rad(0),math.rad(70),math.rad(0)),.7)
  1149. end
  1150. function sphere()
  1151. AExplodeP = Instance.new("Part",workspace)
  1152. AExplodeP.Anchored = true
  1153. AExplodeP.TopSurface = 0
  1154. AExplodeP.Material = "Neon"
  1155. AExplodeP.BottomSurface = 0
  1156. AExplodeP.CanCollide = false
  1157. AExplodeP.CFrame = chr["Right Arm"].CFrame*CFrame.new(0,-3,0)
  1158. AExplodeP.BrickColor = BrickColor.new(modeColor)
  1159. AExplodeP.Size = Vector3.new(1,1,1)
  1160. AExplodeM = Instance.new("SpecialMesh",AExplodeP)
  1161. AExplodeM.MeshType = "Sphere"
  1162. for i = 1,10,2 do wait()
  1163. AExplodeM.Scale = Vector3.new(i,i,i)
  1164. AExplodeP.Transparency = i/50
  1165. end
  1166. AExplodeP:Remove()
  1167. end
  1168. for i = 1,10 do
  1169. sphere()
  1170. end
  1171. spawn(function()
  1172. lasering = true
  1173. for i = 0, 1, 0.1 do
  1174. wait()
  1175. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(0,math.rad(40),math.rad(90)),.7)
  1176. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(0,0,math.rad(-3)),.7)
  1177. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),.7)
  1178. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),.7)
  1179. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(-70),0),.7)
  1180. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,2,0)*CFrame.Angles(math.rad(0),math.rad(70),math.rad(0)),.7)
  1181. end
  1182. wait(5)
  1183. lasering = false
  1184. attack = false
  1185. end)
  1186. end
  1187. end
  1188. end)
  1189.  
  1190.  
  1191. maus.Button1Down:connect(function(key)
  1192. if attack == false then
  1193. attack = true
  1194. if att == 1 then
  1195. for i = 0, 1, 0.1 do
  1196. wait()
  1197. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(0,math.rad(120),math.rad(90)),.7)
  1198. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(0,0,math.rad(-3)),.7)
  1199. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),.7)
  1200. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),.7)
  1201. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(70),0),.7)
  1202. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,2,0)*CFrame.Angles(math.rad(0),math.rad(-70),math.rad(0)),.7)
  1203. end
  1204. wait(.1)
  1205. HitboxFunction(rarm.CFrame, 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal")
  1206. if shad == true then
  1207. CreateWave(0,3.5,true,0.2,25,rarm,-1,BrickColor.new("Really black"))
  1208. CreateWave(0,3,true,-0.2,25,rarm,-1,BrickColor.new("Really black"))
  1209. CreateWave(0,2.5,true,0.2,25,rarm,-1,BrickColor.new("Really black"))
  1210. CreateWave(0,2,true,-0.2,25,rarm,-1,BrickColor.new("Really black"))
  1211. else
  1212. CreateWave(0,3.5,true,0.2,25,rarm,-1,BrickColor.new("White"))
  1213. CreateWave(0,3,true,-0.2,25,rarm,-1,BrickColor.new("White"))
  1214. CreateWave(0,2.5,true,0.2,25,rarm,-1,BrickColor.new("White"))
  1215. CreateWave(0,2,true,-0.2,25,rarm,-1,BrickColor.new("White"))
  1216. end
  1217. for i = 0, 1, 0.1 do
  1218. wait()
  1219. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(0,math.rad(40),math.rad(90)),.7)
  1220. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(0,0,math.rad(-3)),.7)
  1221. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),.7)
  1222. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),.7)
  1223. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(-70),0),.7)
  1224. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,2,0)*CFrame.Angles(math.rad(0),math.rad(70),math.rad(0)),.7)
  1225. end
  1226. att = 2
  1227. attack = false
  1228. elseif att == 2 then
  1229. attack = true
  1230.  
  1231. for i = 0, 1, 0.1 do
  1232. wait()
  1233. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(0,0,math.rad(-3)),.7)
  1234. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(0,math.rad(-120),math.rad(-90)),.7)
  1235. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),.7)
  1236. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),.7)
  1237. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(-70),0),.7)
  1238. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,2,0)*CFrame.Angles(math.rad(0),math.rad(70),math.rad(0)),.7)
  1239. end
  1240. wait(.1)
  1241. HitboxFunction(larm.CFrame, 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal")
  1242. if shad == true then
  1243. CreateWave(0,3.5,true,0.2,25,larm,-1,BrickColor.new("Really black"))
  1244. CreateWave(0,3,true,-0.2,25,larm,-1,BrickColor.new("Really black"))
  1245. CreateWave(0,2.5,true,0.2,25,larm,-1,BrickColor.new("Really black"))
  1246. CreateWave(0,2,true,-0.2,25,larm,-1,BrickColor.new("Really black"))
  1247. else
  1248. CreateWave(0,3.5,true,0.2,25,larm,-1,BrickColor.new("White"))
  1249. CreateWave(0,3,true,-0.2,25,larm,-1,BrickColor.new("White"))
  1250. CreateWave(0,2.5,true,0.2,25,larm,-1,BrickColor.new("White"))
  1251. CreateWave(0,2,true,-0.2,25,larm,-1,BrickColor.new("White"))
  1252. end
  1253. for i = 0, 1, 0.1 do
  1254. wait()
  1255. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(0,0,math.rad(-3)),.7)
  1256. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(0,math.rad(-40),math.rad(-90)),.7)
  1257. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),.7)
  1258. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(0,0,math.rad(2.5)),.7)
  1259. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(70),0),.7)
  1260. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,2,0)*CFrame.Angles(math.rad(0),math.rad(-70),math.rad(0)),.7)
  1261. end
  1262. att = 3
  1263. attack = false
  1264. elseif att == 3 then
  1265. attack = true
  1266.  
  1267. for i = 0, 1, 0.1 do
  1268. wait()
  1269. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(0,0,math.rad(3)),.5)
  1270. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(0,0,math.rad(-3)),.5)
  1271. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),.5)
  1272. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1,-1)*CFrame.Angles(math.rad(-20),0,math.rad(2.5)),.5)
  1273. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.5)
  1274. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,2,0)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(0)),.5)
  1275. end
  1276. wait(.1)
  1277. HitboxFunction(rleg.CFrame, 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal")
  1278. if shad == true then
  1279. CreateWave(0,3.5,true,0.2,25,rleg,-1,BrickColor.new("Really black"))
  1280. CreateWave(0,3,true,-0.2,25,rleg,-1,BrickColor.new("Really black"))
  1281. CreateWave(0,2.5,true,0.2,25,rleg,-1,BrickColor.new("Really black"))
  1282. CreateWave(0,2,true,-0.2,25,rleg,-1,BrickColor.new("Really black"))
  1283. else
  1284. CreateWave(0,3.5,true,0.2,25,rleg,-1,BrickColor.new("White"))
  1285. CreateWave(0,3,true,-0.2,25,rleg,-1,BrickColor.new("White"))
  1286. CreateWave(0,2.5,true,0.2,25,rleg,-1,BrickColor.new("White"))
  1287. CreateWave(0,2,true,-0.2,25,rleg,-1,BrickColor.new("White"))
  1288. end
  1289. for i = 0, 1, 0.1 do
  1290. wait()
  1291. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(-30),0,math.rad(3)),.5)
  1292. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(-30),0,math.rad(-3)),.5)
  1293. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9,0)*CFrame.Angles(0,0,math.rad(-2.5)),.5)
  1294. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,-1)*CFrame.Angles(0,0,math.rad(2.5)),.5)
  1295. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.5)
  1296. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,2,0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  1297. end
  1298. wait(.3)
  1299. att = 1
  1300. attack = false
  1301. end
  1302. end
  1303. end)
  1304.  
  1305.  
  1306. game:service'RunService'.RenderStepped:connect(function()
  1307. if anim~=lastanim then
  1308. runtime=0
  1309. end
  1310. lastanim=anim
  1311. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  1312. syne=syne+.95
  1313. if not otheranims and not swimming then
  1314. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  1315. anim="Idling"
  1316. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  1317. anim="Walking"
  1318. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  1319. anim="Sprinting"
  1320. elseif torso.Velocity.y>5 and chr.Humanoid.Jump then
  1321. anim='Jumping'
  1322. elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
  1323. anim='Falling'
  1324. end
  1325. end
  1326.  
  1327.  
  1328. if anim=="Idling" and attack == false then
  1329. idlesineinc=35
  1330. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.2,.3+math.cos(syne/idlesineinc)/25,0.2)*CFrame.Angles(math.rad(-50),0,math.rad(-40)),.1)
  1331. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.2,.3+math.cos(syne/idlesineinc)/25,0.2)*CFrame.Angles(math.rad(-50),0,math.rad(40)),.1)
  1332. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1)
  1333. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1)
  1334. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
  1335. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,2+math.cos(syne/idlesineinc)/3,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(0),math.rad(0)),.1)
  1336. end
  1337.  
  1338. if anim=="Walking" and attack == false then
  1339. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.2,.3+math.cos(syne/idlesineinc)/25,0.2)*CFrame.Angles(math.rad(-50),0,math.rad(-40)),.1)
  1340. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.2,.3+math.cos(syne/idlesineinc)/25,0.2)*CFrame.Angles(math.rad(-50),0,math.rad(40)),.1)
  1341. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-2,.3)*CFrame.Angles(math.rad(-15),math.rad(-7),math.rad(-2.5)),.1)
  1342. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-2,.3)*CFrame.Angles(math.rad(-15),math.rad(7),math.rad(2.5)),.1)
  1343. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.rad(5),0,0),.1)
  1344. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,2,0)*CFrame.Angles(math.rad(-15),0,math.sin(rutprt.RotVelocity.y/2)/2),.1)
  1345. end
  1346.  
  1347. if anim=="Sprinting" and attack == false then
  1348. RunSpeed = 50
  1349. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-25),0,math.rad(12.5)),.1)
  1350. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-25),0,math.rad(-12.5)),.1)
  1351. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-2,.3)*CFrame.Angles(math.rad(-15),math.rad(-7),math.rad(-2.5)),.1)
  1352. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-2,.3)*CFrame.Angles(math.rad(-15),math.rad(7),math.rad(2.5)),.1)
  1353. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.55,0)*CFrame.Angles(math.rad(15),0,0),.1)
  1354. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-25),0,math.sin(rutprt.RotVelocity.y/2)/2),.1)
  1355. end
  1356.  
  1357. if anim=="Jumping" and attack == false then
  1358. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
  1359. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
  1360. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-2.3,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
  1361. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-2,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
  1362. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
  1363. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1)
  1364. end
  1365.  
  1366. if anim=="Falling" and attack == false then
  1367. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
  1368. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
  1369. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
  1370. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
  1371. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035)
  1372. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.035)
  1373. end
  1374.  
  1375. if runnin and not otheranims and not swimming then
  1376. chr.Humanoid.WalkSpeed=RunSpeed
  1377. elseif not runnin and not otheranims and not swimming then
  1378. chr.Humanoid.WalkSpeed=WlkSpeed
  1379. end
  1380. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement