Advertisement
Its_YeBoi

Shadow/Light Demon

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