Advertisement
Guest User

Thanos

a guest
Oct 30th, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 90.05 KB | None | 0 0
  1.  
  2. local User = "loroquen" --replace with your username
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52. local Player = game:GetService("Players")[User]
  53. local Mouse,mouse,UserInputService,ContextActionService
  54. do
  55. script.Parent = Player.Character
  56. local CAS = {Actions={}}
  57. local Event = Instance.new("RemoteEvent")
  58. Event.Name = "UserInput_Event"
  59. Event.Parent = Player.Character
  60. local fakeEvent = function()
  61. local t = {_fakeEvent=true}
  62. t.Connect = function(self,f)self.Function=f end
  63. t.connect = t.Connect
  64. return t
  65. end
  66. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  67. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  68. function CAS:BindAction(name,fun,touch,...)
  69. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  70. end
  71. function CAS:UnbindAction(name)
  72. CAS.Actions[name] = nil
  73. end
  74. local function te(self,ev,...)
  75. local t = m[ev]
  76. if t and t._fakeEvent and t.Function then
  77. t.Function(...)
  78. end
  79. end
  80. m.TrigEvent = te
  81. UIS.TrigEvent = te
  82. Event.OnServerEvent:Connect(function(plr,io)
  83. if plr~=Player then return end
  84. if io.isMouse then
  85. m.Target = io.Target
  86. m.Hit = io.Hit
  87. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  88. if io.UserInputState == Enum.UserInputState.Begin then
  89. m:TrigEvent("Button1Down")
  90. else
  91. m:TrigEvent("Button1Up")
  92. end
  93. else
  94. for n,t in pairs(CAS.Actions) do
  95. for _,k in pairs(t.Keys) do
  96. if k==io.KeyCode then
  97. t.Function(t.Name,io.UserInputState,io)
  98. end
  99. end
  100. end
  101. if io.UserInputState == Enum.UserInputState.Begin then
  102. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  103. UIS:TrigEvent("InputBegan",io,false)
  104. else
  105. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  106. UIS:TrigEvent("InputEnded",io,false)
  107. end
  108. end
  109. end)
  110. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  111. end
  112.  
  113.  
  114. local ServiceData = setmetatable({},{__index = function(s,i) return game:service(i) end})
  115. local PlayersOfServer = ServiceData.Players
  116. local Character = Player.Character
  117. local Humanoid = Character.Humanoid
  118. local LeftArm = Character["Left Arm"]
  119. local RightArm = Character["Right Arm"]
  120. local LeftLeg = Character["Left Leg"]
  121. local RightLeg = Character["Right Leg"]
  122. local Head = Character.Head
  123. local Torso = Character.Torso
  124. local RootPart = Character.HumanoidRootPart
  125. local RootJoint = RootPart.RootJoint
  126. local PlayerGui = Player.PlayerGui
  127. local Cam = workspace.CurrentCamera
  128. local Backpack = Player.Backpack
  129. local RootPart = Character["HumanoidRootPart"]
  130. local Torso = Character["Torso"]
  131. local Head = Character["Head"]
  132. local RootJoint = RootPart["RootJoint"]
  133. local Neck = Torso["Neck"]
  134. local RightShoulder = Torso["Right Shoulder"]
  135. local LeftShoulder = Torso["Left Shoulder"]
  136. local RightHip = Torso["Right Hip"]
  137. local LeftHip = Torso["Left Hip"]
  138.  
  139. IT = Instance.new
  140. CF = CFrame.new
  141. VT = Vector3.new
  142. RAD = math.rad
  143. C3 = Color3.new
  144. C3RBG = Color3.fromRGB
  145. UD2 = UDim2.new
  146. BRICKC = BrickColor.new
  147. ANGLES = CFrame.Angles
  148. EULER = CFrame.fromEulerAnglesXYZ
  149. COS = math.cos
  150. ACOS = math.acos
  151. SIN = math.sin
  152. ASIN = math.asin
  153. ABS = math.abs
  154. MRANDOM = math.random
  155. FLOOR = math.floor
  156.  
  157. local hax = IT("Model")
  158. hax.Name = "I\'\m gonna die"
  159. hax.Parent = workspace.Terrain
  160.  
  161. local megahax = IT("Folder",hax)
  162. megahax.Name = "\"Mega Epic Folder\""
  163.  
  164. local suprememhax = IT("Folder",PlayerGui)
  165. suprememhax.Name = "Random \"Nil\" Folder"
  166. script.Parent = suprememhax
  167.  
  168. pumpk = Instance.new("Sound", Head)
  169. pumpk.SoundId = "rbxassetid://1771675015"
  170. pumpk.Volume = 2
  171. pumpk.Looped = true
  172. pumpk:Play()
  173.  
  174.  
  175. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  176. local NEWMESH = IT(MESH)
  177. if MESH == "SpecialMesh" then
  178. NEWMESH.MeshType = MESHTYPE
  179. if MESHID ~= "nil" and MESHID ~= "" then
  180. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  181. end
  182. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  183. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  184. end
  185. end
  186. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  187. NEWMESH.Scale = SCALE
  188. NEWMESH.Parent = PARENT
  189. return NEWMESH
  190. end
  191.  
  192. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  193. local NEWPART = IT("Part")
  194. NEWPART.formFactor = FORMFACTOR
  195. NEWPART.Reflectance = REFLECTANCE
  196. NEWPART.Transparency = TRANSPARENCY
  197. NEWPART.CanCollide = false
  198. NEWPART.Locked = true
  199. NEWPART.Anchored = true
  200. if ANCHOR == false then
  201. NEWPART.Anchored = false
  202. end
  203. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  204. NEWPART.Name = NAME
  205. NEWPART.Size = SIZE
  206. NEWPART.Position = Torso.Position
  207. NEWPART.Material = MATERIAL
  208. NEWPART:BreakJoints()
  209. NEWPART.Parent = PARENT
  210. return NEWPART
  211. end
  212.  
  213.  
  214. function CreatePart1(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, NAME, SIZE, ANCHOR)
  215. local NEWPART = IT("Part")
  216. NEWPART.formFactor = FORMFACTOR
  217. NEWPART.Reflectance = REFLECTANCE
  218. NEWPART.Transparency = TRANSPARENCY
  219. NEWPART.CanCollide = false
  220. NEWPART.Locked = true
  221. NEWPART.Anchored = true
  222. if ANCHOR == false then
  223. NEWPART.Anchored = false
  224. end
  225. NEWPART.Name = NAME
  226. NEWPART.Size = SIZE
  227. NEWPART.Position = Torso.Position
  228. NEWPART.Material = MATERIAL
  229. NEWPART:BreakJoints()
  230. NEWPART.Parent = PARENT
  231. return NEWPART
  232. end
  233.  
  234.  
  235. --customize--
  236.  
  237. Player_Size = 1
  238. Animation_Speed = 3
  239. local SIZE = 1
  240. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  241.  
  242. local Speed = 20
  243. --local Effects = {}
  244.  
  245. gem_mode = 1
  246.  
  247. --endoslol--
  248.  
  249. local function weldBetween(a, b)
  250. local weldd = Instance.new("ManualWeld")
  251. weldd.Part0 = a
  252. weldd.Part1 = b
  253. weldd.C0 = CFrame.new()
  254. weldd.C1 = b.CFrame:inverse() * a.CFrame
  255. weldd.Parent = a
  256. return weldd
  257. end
  258.  
  259. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  260. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  261. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  262. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  263. local ANIM = "Idle"
  264. local ATTACK = false
  265. local EQUIPPED = false
  266. local HOLD = false
  267. local COMBO = 1
  268. local Rooted = false
  269. local SINE = 0
  270. local KEYHOLD = false
  271. local CHANGE = 2 / Animation_Speed
  272. local WALKINGANIM = false
  273. local WALK = 0
  274. local VALUE1 = 1
  275. local VALUE2 = false
  276. local UIS = ServiceData.UserInputService
  277. local CAS = ServiceData.ContextActionService
  278. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  279. WEAPONGUI.Name = "Weapon GUI"
  280. local Weapon = IT("Model")
  281. Weapon.Name = "Adds"
  282. local HITFLOOR = nil
  283. local Effects = IT("Folder", Character)
  284. Effects.Name = "Effects"
  285. local FADERS = true
  286. local ANIMATOR = Humanoid.Animator
  287. local ANIMATE = Character:WaitForChild("Animate")
  288.  
  289. local EveryStroke = {
  290. "Gold",
  291. "Really red",
  292. "Bright blue",
  293. "Bright reddish lilac",
  294. "Olivine",
  295. "New Yeller"
  296. }
  297.  
  298. local EveryColor = {
  299. "Bright orange",
  300. "Persimmon",
  301. "Teal",
  302. "Eggplant",
  303. "Mint",
  304. "Bright yellow"
  305. }
  306.  
  307. local TweenService = game:GetService("TweenService")
  308. local Colours = {Color3.fromRGB(218, 133, 65),Color3.fromRGB(255, 89, 89),Color3.fromRGB(18, 238, 212),Color3.fromRGB(123, 0, 123),Color3.fromRGB(177, 229, 166),Color3.fromRGB(245, 205, 48)}
  309. local Colours2 = {Color3.fromRGB(239, 184, 56),Color3.fromRGB(255, 0, 0),Color3.fromRGB(13, 105, 172),Color3.new(0.639216, 0.635294, 0.647059
  310. ),Color3.fromRGB(148, 190, 129),Color3.fromRGB(255, 255, 0)}
  311. local Int = 0
  312. --[[
  313. while wait(0.45) do
  314. if Int == #Colours then Int = 0 end
  315. Int = Int+1
  316. TweenService:Create(part,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
  317. TweenService:Create(part,TweenInfo.new(1),{TextStrokeColor3 = Colours2[Int]}):Play()
  318. end
  319. ]]
  320.  
  321. ChangeColorNumber = 1
  322. --BrickColor.new(Rainbow[ChangeColorNumber]).Color
  323.  
  324. --[[
  325. Head.face:Destroy()
  326.  
  327. for i,v in pairs(Character:GetChildren()) do
  328. if v:IsA("Hat") then
  329. v:Destroy()
  330. end
  331. end
  332. for i,v in pairs(Character:GetChildren()) do
  333. if v:IsA("Accessory") then
  334. v:Destroy()
  335. end
  336. end
  337. for i,v in pairs(Character:GetChildren()) do
  338. if v:IsA("Hair") then
  339. v:Destroy()
  340. end
  341. end
  342. for i,v in pairs(Character:GetChildren()) do
  343. if v:IsA("Shirt") then
  344. v:Destroy()
  345. end
  346. end
  347. for i,v in pairs(Character:GetChildren()) do
  348. if v:IsA("Pants") then
  349. v:Destroy()
  350. end
  351. end
  352. for i,v in pairs(Character:GetChildren()) do
  353. if v:IsA("Graphic Shirt") then
  354. v:Destroy()
  355. end
  356. end
  357. for i,v in pairs(Character:GetChildren()) do
  358. if v:IsA("GraphicShirt") then
  359. v:Destroy()
  360. end
  361. end
  362.  
  363. Head.BrickColor = BrickColor.new("White")
  364. RightArm.BrickColor = BrickColor.new("White")
  365. LeftArm.BrickColor = BrickColor.new("White")
  366. Torso.BrickColor = BrickColor.new("White")
  367. RightLeg.BrickColor = BrickColor.new("White")
  368. LeftLeg.BrickColor = BrickColor.new("White")
  369. ]]--
  370.  
  371. ArtificialHB = Instance.new("BindableEvent", script)
  372. ArtificialHB.Name = "ArtificialHB"
  373.  
  374. script:WaitForChild("ArtificialHB")
  375.  
  376. frame = Frame_Speed
  377. tf = 0
  378. allowframeloss = false
  379. tossremainder = false
  380. lastframe = tick()
  381. script.ArtificialHB:Fire()
  382.  
  383. game:GetService("RunService").Heartbeat:connect(function(s, p)
  384. tf = tf + s
  385. if tf >= frame then
  386. if allowframeloss then
  387. script.ArtificialHB:Fire()
  388. lastframe = tick()
  389. else
  390. for i = 1, math.floor(tf / frame) do
  391. script.ArtificialHB:Fire()
  392. end
  393. lastframe = tick()
  394. end
  395. if tossremainder then
  396. tf = 0
  397. else
  398. tf = tf - frame * math.floor(tf / frame)
  399. end
  400. end
  401. end)
  402.  
  403. --//=================================\\
  404. --|| Davo's fixed Rainbow Function
  405. --\\=================================//
  406.  
  407. -->|Fixed By XDavodioX|<--
  408.  
  409. local cR=255
  410. local cG=0
  411. local cB=0
  412. local flg5=1 local omgidk=1
  413. local add=10.5
  414. game:GetService('RunService').Heartbeat:connect(function()
  415. if omgidk>10000 then omgidk=0 end
  416. omgidk=omgidk+1
  417. if cR>=255 then flg5=1 end
  418. if cG>=255 then flg5=2 end
  419. if cB>=255 then flg5=3 end
  420. if flg5==1 then cR=cR-add cG=cG+add end
  421. if flg5==2 then cG=cG-add cB=cB+add end
  422. if flg5==3 then cB=cB-add cR=cR+add end
  423. end)
  424.  
  425. --[Now useable in FE scripts/requires!]--
  426.  
  427. --//=================================\\
  428. --|| End of Rainbow Function
  429. --\\=================================//
  430.  
  431. --//=================================\\
  432. --|| SOME FUNCTIONS
  433. --\\=================================//
  434.  
  435. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  436. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  437. end
  438.  
  439. function PositiveAngle(NUMBER)
  440. if NUMBER >= 0 then
  441. NUMBER = 0
  442. end
  443. return NUMBER
  444. end
  445.  
  446. function NegativeAngle(NUMBER)
  447. if NUMBER <= 0 then
  448. NUMBER = 0
  449. end
  450. return NUMBER
  451. end
  452.  
  453. function Swait(NUMBER)
  454. if NUMBER == 0 or NUMBER == nil then
  455. ArtificialHB.Event:wait()
  456. else
  457. for i = 1, NUMBER do
  458. ArtificialHB.Event:wait()
  459. end
  460. end
  461. end
  462.  
  463.  
  464.  
  465. function QuaternionFromCFrame(cf)
  466. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  467. local trace = m00 + m11 + m22
  468. if trace > 0 then
  469. local s = math.sqrt(1 + trace)
  470. local recip = 0.5 / s
  471. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  472. else
  473. local i = 0
  474. if m11 > m00 then
  475. i = 1
  476. end
  477. if m22 > (i == 0 and m00 or m11) then
  478. i = 2
  479. end
  480. if i == 0 then
  481. local s = math.sqrt(m00 - m11 - m22 + 1)
  482. local recip = 0.5 / s
  483. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  484. elseif i == 1 then
  485. local s = math.sqrt(m11 - m22 - m00 + 1)
  486. local recip = 0.5 / s
  487. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  488. elseif i == 2 then
  489. local s = math.sqrt(m22 - m00 - m11 + 1)
  490. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  491. end
  492. end
  493. end
  494.  
  495. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  496. local xs, ys, zs = x + x, y + y, z + z
  497. local wx, wy, wz = w * xs, w * ys, w * zs
  498. local xx = x * xs
  499. local xy = x * ys
  500. local xz = x * zs
  501. local yy = y * ys
  502. local yz = y * zs
  503. local zz = z * zs
  504. 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))
  505. end
  506.  
  507. function QuaternionSlerp(a, b, t)
  508. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  509. local startInterp, finishInterp;
  510. if cosTheta >= 0.0001 then
  511. if (1 - cosTheta) > 0.0001 then
  512. local theta = ACOS(cosTheta)
  513. local invSinTheta = 1 / SIN(theta)
  514. startInterp = SIN((1 - t) * theta) * invSinTheta
  515. finishInterp = SIN(t * theta) * invSinTheta
  516. else
  517. startInterp = 1 - t
  518. finishInterp = t
  519. end
  520. else
  521. if (1 + cosTheta) > 0.0001 then
  522. local theta = ACOS(-cosTheta)
  523. local invSinTheta = 1 / SIN(theta)
  524. startInterp = SIN((t - 1) * theta) * invSinTheta
  525. finishInterp = SIN(t * theta) * invSinTheta
  526. else
  527. startInterp = t - 1
  528. finishInterp = t
  529. end
  530. end
  531. 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
  532. end
  533.  
  534. function Clerp(a, b, t)
  535. local qa = {QuaternionFromCFrame(a)}
  536. local qb = {QuaternionFromCFrame(b)}
  537. local ax, ay, az = a.x, a.y, a.z
  538. local bx, by, bz = b.x, b.y, b.z
  539. local _t = 1 - t
  540. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  541. end
  542.  
  543. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  544. local frame = IT("Frame")
  545. frame.BackgroundTransparency = TRANSPARENCY
  546. frame.BorderSizePixel = BORDERSIZEPIXEL
  547. frame.Position = POSITION
  548. frame.Size = SIZE
  549. frame.BackgroundColor3 = COLOR
  550. frame.BorderColor3 = BORDERCOLOR
  551. frame.Name = NAME
  552. frame.Parent = PARENT
  553. return frame
  554. end
  555.  
  556. function CreateLabel(PARENT, TEXT, COLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  557. local label = IT("TextLabel")
  558. label.BackgroundTransparency = 1
  559. label.Size = UD2(1, 0, 1, 0)
  560. label.Position = UD2(0, 0, 0, 0)
  561. label.TextColor3 = COLOR
  562. label.TextStrokeTransparency = STROKETRANSPARENCY
  563. label.TextTransparency = TRANSPARENCY
  564. label.FontSize = TEXTFONTSIZE
  565. label.Font = TEXTFONT
  566. label.BorderSizePixel = BORDERSIZEPIXEL
  567. label.TextScaled = false
  568. label.Text = TEXT
  569. label.Name = NAME
  570. label.Parent = PARENT
  571. return label
  572. end
  573.  
  574. function NoOutlines(PART)
  575. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  576. end
  577.  
  578.  
  579. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  580. local NEWWELD = IT(TYPE)
  581. NEWWELD.Part0 = PART0
  582. NEWWELD.Part1 = PART1
  583. NEWWELD.C0 = C0
  584. NEWWELD.C1 = C1
  585. NEWWELD.Parent = PARENT
  586. return NEWWELD
  587. end
  588.  
  589. function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT)
  590. coroutine.resume(coroutine.create(function()
  591. local FADE = IT("Model",Effects)
  592. if PARENT ~= nil then
  593. FADE.Parent = PARENT
  594. end
  595. FADE.Name = "FadingEffect"
  596. for _, c in pairs(Character:GetChildren()) do
  597. if c.ClassName == "Part" then
  598. c.CanCollide = false
  599. local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Pearl"), c.Name, c.Size, true)
  600. FADER.CFrame = c.CFrame
  601. FADER.Color = COLOR
  602. if FADER.Name == "Head" then
  603. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER
  604. elseif FADER.Name == "HumanoidRootPart" then
  605. FADE.PrimaryPart = FADER
  606. FADER.Transparency = 1
  607. end
  608. end
  609. end
  610. local TRANS = 0.25/TIMER
  611. local DIST = nil
  612. if MOVEDIRECTION ~= nil then
  613. DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude
  614. end
  615. for i = 1, TIMER do
  616. Swait()
  617. for _, c in pairs(FADE:GetChildren()) do
  618. if c.ClassName == "Part" then
  619. c.Transparency = c.Transparency + TRANS
  620. end
  621. end
  622. if MOVEDIRECTION ~= nil then
  623. local ORI = FADE.PrimaryPart.Orientation
  624. FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z)))
  625. end
  626. end
  627. FADE:remove()
  628. end))
  629. end
  630.  
  631. function CreateSound(ID, PARENT, VOLUME, PITCH)
  632. local NEWSOUND = nil
  633. coroutine.resume(coroutine.create(function()
  634. NEWSOUND = IT("Sound", PARENT)
  635. NEWSOUND.Volume = VOLUME
  636. NEWSOUND.Pitch = PITCH
  637. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  638. Swait()
  639. NEWSOUND:play()
  640. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  641. end))
  642. return NEWSOUND
  643. end
  644.  
  645. function CreateClientSound(ID, PARENT, VOLUME, PITCH, TIME)
  646. local NEWCLIENTSOUND = nil
  647. local NEWCLIENTSOUNDDATA = nil
  648. if script:FindFirstChild("ClientSound") == nil then
  649. return error("ClientSound not found!")
  650. else
  651. NEWCLIENTSOUNDDATA = script.ClientSound
  652. local pt = NEWCLIENTSOUNDDATA:WaitForChild("SoundParent")
  653. local si = NEWCLIENTSOUNDDATA:WaitForChild("SoundID")
  654. local vo = NEWCLIENTSOUNDDATA:WaitForChild("SoundVolume")
  655. local pi = NEWCLIENTSOUNDDATA:WaitForChild("SoundPitch")
  656. local dt = NEWCLIENTSOUNDDATA:WaitForChild("DestroyTime")
  657. pt.Value = PARENT
  658. si.Value = tonumber(ID)
  659. vo.Value = tonumber(VOLUME)
  660. pi.Value = tonumber(PITCH)
  661. dt.Value = tonumber(TIME)
  662. NEWCLIENTSOUND = script.ClientSound:Clone()
  663. NEWCLIENTSOUND.Parent = PlayerGui
  664. NEWCLIENTSOUND.Disabled = false
  665. end
  666. end
  667.  
  668. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  669. local Sound = IT("Sound")
  670. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  671. Sound.Pitch = pitch or 1
  672. Sound.Volume = volume or 1
  673. Sound.Looped = looped or false
  674. if(autoPlay)then
  675. coroutine.wrap(function()
  676. repeat wait() until Sound.IsLoaded
  677. Sound.Playing = autoPlay or false
  678. end)()
  679. end
  680. if(not looped and effect)then
  681. Sound.Stopped:connect(function()
  682. Sound.Volume = 0
  683. Sound:destroy()
  684. end)
  685. elseif(effect)then
  686.  
  687. end
  688. Sound.Parent =parent or Torso
  689. return Sound
  690. end
  691.  
  692. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  693. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  694. local Sound = IT("Sound")
  695. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  696. Sound.Pitch = pitch or 1
  697. Sound.Volume = volume or 1
  698. Sound.Looped = looped or false
  699. if(autoPlay)then
  700. coroutine.wrap(function()
  701. repeat wait() until Sound.IsLoaded
  702. Sound.Playing = autoPlay or false
  703. end)()
  704. end
  705. if(not looped and effect)then
  706. Sound.Stopped:connect(function()
  707. Sound.Volume = 0
  708. soundPart:destroy()
  709. end)
  710. elseif(effect)then
  711. warn("Sound can't be looped and a sound effect!")
  712. end
  713. Sound.Parent = soundPart
  714. return Sound
  715. end
  716.  
  717. function CreateOutfit()
  718. if script:FindFirstChild("Outfit Mesh") == nil then
  719. return error("Outfit Folder not found!")
  720. else
  721. for _, b in pairs(script["Outfit Mesh"]:children()) do
  722. b.Parent = Character
  723. end
  724. end
  725. end
  726.  
  727. function CreateShield()
  728. local Shield = IT("MeshPart")
  729. Shield.Color = Color3.fromRGB(13, 105, 172)
  730. Shield.Transparency = 1
  731. Shield.CFrame = CF(Torso.Position)
  732. Shield.CanCollide = false
  733. Shield.Size = VT(5.4,6,5.4) --VT(3, 6.7, 5.44)
  734. Shield.Name = "BulletShield"
  735. Shield.Material = Enum.Material.Plastic
  736. Shield.Parent = workspace
  737. local ShieldMesh = IT("Weld")
  738. ShieldMesh.Parent = Shield
  739. ShieldMesh.Part0 = Shield
  740. ShieldMesh.Part1 = Torso
  741. end
  742.  
  743. function CreateSnapGui()
  744. for a, t in pairs(PlayersOfServer:GetPlayers()) do
  745. if script:FindFirstChild("ThanosSnap") == nil then
  746. return error("Thanos Snap Gui not found!")
  747. else
  748. local guisc = script.GuiScript:Clone()
  749. local clgui = script.ThanosSnap:Clone()
  750. clgui.Parent = t.PlayerGui
  751. guisc.Parent = clgui
  752. guisc.Disabled = false
  753. end
  754. end
  755. end
  756.  
  757. function CreateSelectionBox(PARENT, THICKNESS, COLOR, TRANS, SURFACECOLOR, SURFACETRANS)
  758. local box = IT("SelectionBox")
  759. box.Parent = PARENT
  760. box.Adornee = PARENT
  761. box.Color3 = COLOR
  762. box.Transparency = TRANS
  763. box.LineThickness = THICKNESS
  764. if SURFACECOLOR ~= nil then
  765. box.SurfaceColor3 = SURFACECOLOR
  766. else
  767. box.SurfaceColor3 = Color3.new(1,1,1)
  768. end
  769. if SURFACETRANS ~= nil then
  770. box.SurfaceTransparency = SURFACETRANS
  771. else
  772. box.SurfaceTransparency = 1
  773. end
  774. return box
  775. end
  776.  
  777. function CreateModelSelectionBox(MODEL, THICKNESS, COLOR, TRANS, SURFACECOLOR, SURFACETRANS)
  778. for f, g in pairs(MODEL:GetChildren()) do
  779. if g.ClassName == "Part" or g.ClassName == "MeshPart" then
  780. CreateSelectionBox(g , THICKNESS, COLOR, TRANS, SURFACECOLOR, SURFACETRANS)
  781. end
  782. end
  783. end
  784.  
  785. function CFrameFromTopBack(at, top, back)
  786. local right = top:Cross(back)
  787. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  788. end
  789.  
  790. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  791. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, COLOR, "Effect", VT(0,0,0))
  792. local mesh = IT("SpecialMesh",wave)
  793. mesh.MeshType = "FileMesh"
  794. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  795. mesh.Scale = SIZE
  796. mesh.Offset = VT(0,0,-SIZE.X/8)
  797. wave.CFrame = CFRAME
  798. coroutine.resume(coroutine.create(function(PART)
  799. for i = 1, WAIT do
  800. Swait()
  801. mesh.Scale = mesh.Scale + GROW
  802. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  803. if DOESROT == true then
  804. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  805. end
  806. wave.Transparency = wave.Transparency + (0.5/WAIT)
  807. if wave.Transparency > 0.99 then
  808. wave:remove()
  809. end
  810. end
  811. end))
  812. end
  813.  
  814. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  815. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, COLOR, "Effect", VT(0,0,0))
  816. local mesh = IT("SpecialMesh",wave)
  817. mesh.MeshType = "FileMesh"
  818. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  819. mesh.Scale = SIZE
  820. --mesh.Offset = VT(0,0,-SIZE.X/8)
  821. wave.CFrame = CFRAME
  822. coroutine.resume(coroutine.create(function(PART)
  823. for i = 1, WAIT do
  824. Swait()
  825. mesh.Scale = mesh.Scale + GROW
  826. --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  827. if DOESROT == true then
  828. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  829. end
  830. wave.Transparency = wave.Transparency + (0.5/WAIT)
  831. if wave.Transparency > 0.99 then
  832. wave:remove()
  833. end
  834. end
  835. end))
  836. end
  837.  
  838. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  839. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  840. local mesh = IT("SpecialMesh",wave)
  841. mesh.MeshType = "FileMesh"
  842. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  843. mesh.Scale = SIZE
  844. mesh.Offset = VT(0,0,0)
  845. wave.CFrame = CFRAME
  846. coroutine.resume(coroutine.create(function(PART)
  847. for i = 1, WAIT do
  848. Swait()
  849. mesh.Scale = mesh.Scale + GROW
  850. if DOESROT == true then
  851. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  852. end
  853. wave.Transparency = wave.Transparency + (0.5/WAIT)
  854. if wave.Transparency > 0.99 then
  855. wave:remove()
  856. end
  857. end
  858. end))
  859. end
  860.  
  861. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  862. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Color3.fromRGB(CR,CG,CB), "Effect", VT(0,0,0))
  863. local mesh = IT("SpecialMesh",wave)
  864. mesh.MeshType = "FileMesh"
  865. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  866. mesh.Scale = SIZE
  867. wave.CFrame = CFRAME
  868. coroutine.resume(coroutine.create(function(PART)
  869. for i = 1, WAIT do
  870. Swait()
  871. mesh.Scale = mesh.Scale + GROW
  872. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  873. if DOESROT == true then
  874. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  875. end
  876. wave.Transparency = wave.Transparency + (0.5/WAIT)
  877. if wave.Transparency > 0.99 then
  878. wave:remove()
  879. end
  880. end
  881. end))
  882. end
  883.  
  884.  
  885. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  886. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Color3.fromRGB(CR,CG,CB), "Effect", VT(1,1,1), true)
  887. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  888. wave.CFrame = CFRAME
  889. coroutine.resume(coroutine.create(function(PART)
  890. for i = 1, WAIT do
  891. Swait()
  892. mesh.Scale = mesh.Scale * GROW
  893. wave.Transparency = wave.Transparency + (0.5/WAIT)
  894. if wave.Transparency > 0.99 then
  895. wave:remove()
  896. end
  897. end
  898. end))
  899. end
  900.  
  901. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  902. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  903. local mesh = IT("SpecialMesh",wave)
  904. mesh.MeshType = "Sphere"
  905. mesh.Scale = SIZE
  906. mesh.Offset = VT(0,0,0)
  907. wave.CFrame = CFRAME
  908. coroutine.resume(coroutine.create(function(PART)
  909. for i = 1, WAIT do
  910. Swait()
  911. mesh.Scale = mesh.Scale + GROW
  912. wave.Transparency = wave.Transparency + (1/WAIT)
  913. if wave.Transparency > 0.99 then
  914. wave:remove()
  915. end
  916. end
  917. end))
  918. end
  919.  
  920. function MakeForm(PART,TYPE)
  921. if TYPE == "Cyl" then
  922. local MSH = IT("CylinderMesh",PART)
  923. elseif TYPE == "Ball" then
  924. local MSH = IT("SpecialMesh",PART)
  925. MSH.MeshType = "Sphere"
  926. elseif TYPE == "Wedge" then
  927. local MSH = IT("SpecialMesh",PART)
  928. MSH.MeshType = "Wedge"
  929. end
  930. end
  931.  
  932. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  933. if FLOOR ~= nil then
  934. coroutine.resume(coroutine.create(function()
  935. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  936. PART.CFrame = CF(POSITION)
  937. for i = 1, 45 do
  938. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  939. RingPiece.Material = FLOOR.Material
  940. RingPiece.Color = FLOOR.Color
  941. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  942. Debris:AddItem(RingPiece,SWAIT/100)
  943. end
  944. PART:remove()
  945. end))
  946. end
  947. end
  948.  
  949. function CheckTableForString(Table, String)
  950. for i, v in pairs(Table) do
  951. if string.find(string.lower(String), string.lower(v)) then
  952. return true
  953. end
  954. end
  955. return false
  956. end
  957.  
  958. function CheckIntangible(Hit)
  959. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  960. if Hit and Hit.Parent then
  961. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  962. return true
  963. end
  964. end
  965. return false
  966. end
  967.  
  968. function R_RANDOM(CFRAME,DIST)
  969. return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST)
  970. end
  971.  
  972. function WACKYEFFECT(Table)
  973. local TYPE = (Table.EffectType or "Sphere")
  974. local SIZE = (Table.Size or VT(1,1,1))
  975. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  976. local TRANSPARENCY = (Table.Transparency or 0)
  977. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  978. local CFRAME = (Table.CFrame or Torso.CFrame)
  979. local MOVEDIRECTION = (Table.MoveToPos or nil)
  980. local ROTATION1 = (Table.RotationX or 0)
  981. local ROTATION2 = (Table.RotationY or 0)
  982. local ROTATION3 = (Table.RotationZ or 0)
  983. local MATERIAL = (Table.Material or "Neon")
  984. local COLOR = (Table.Color or C3(1,1,1))
  985. local TIME = (Table.Time or 45)
  986. local SOUNDID = (Table.SoundID or nil)
  987. local SOUNDPITCH = (Table.SoundPitch or nil)
  988. local SOUNDVOLUME = (Table.SoundVolume or nil)
  989. coroutine.resume(coroutine.create(function()
  990. local PLAYSSOUND = false
  991. local SOUND = nil
  992. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  993. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  994. PLAYSSOUND = true
  995. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  996. end
  997. EFFECT.Color = COLOR
  998. local MSH = nil
  999. if TYPE == "Sphere" then
  1000. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1001. elseif TYPE == "Block" then
  1002. MSH = IT("BlockMesh",EFFECT)
  1003. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1004. elseif TYPE == "Wave" then
  1005. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1006. elseif TYPE == "Ring" then
  1007. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1008. elseif TYPE == "Slash" then
  1009. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1010. elseif TYPE == "Round Slash" then
  1011. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1012. elseif TYPE == "Swirl" then
  1013. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1014. elseif TYPE == "Skull" then
  1015. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1016. elseif TYPE == "Crystal" then
  1017. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1018. end
  1019. if MSH ~= nil then
  1020. local MOVESPEED = nil
  1021. if MOVEDIRECTION ~= nil then
  1022. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1023. end
  1024. local GROWTH = SIZE - ENDSIZE
  1025. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1026. if TYPE == "Block" then
  1027. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1028. else
  1029. EFFECT.CFrame = CFRAME
  1030. end
  1031. for LOOP = 1, TIME+1 do
  1032. Swait()
  1033. MSH.Scale = MSH.Scale - GROWTH/TIME
  1034. if TYPE == "Wave" then
  1035. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1036. end
  1037. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1038. if TYPE == "Block" then
  1039. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1040. else
  1041. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1042. end
  1043. if MOVEDIRECTION ~= nil then
  1044. local ORI = EFFECT.Orientation
  1045. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1046. EFFECT.Orientation = ORI
  1047. end
  1048. end
  1049. if PLAYSSOUND == false then
  1050. EFFECT:remove()
  1051. else
  1052. repeat Swait() until SOUND.Playing == false
  1053. EFFECT:remove()
  1054. end
  1055. else
  1056. if PLAYSSOUND == false then
  1057. EFFECT:remove()
  1058. else
  1059. repeat Swait() until SOUND.Playing == false
  1060. EFFECT:remove()
  1061. end
  1062. end
  1063. end))
  1064. end
  1065.  
  1066. function SpawnTrail(FROM,TO,BIG)
  1067. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  1068. MakeForm(TRAIL,"Cyl")
  1069. local DIST = (FROM - TO).Magnitude
  1070. if BIG == true then
  1071. TRAIL.Size = VT(0.5,DIST,0.5)
  1072. else
  1073. TRAIL.Size = VT(0.25,DIST,0.25)
  1074. end
  1075. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1076. coroutine.resume(coroutine.create(function()
  1077. for i = 1, 5 do
  1078. Swait()
  1079. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1080. end
  1081. TRAIL:remove()
  1082. end))
  1083. end
  1084.  
  1085. Debris = game:GetService("Debris")
  1086.  
  1087. function MagicSphere1(SIZE,WAIT,CFRAME,COLOR,GROW)
  1088. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Eye", VT(1,1,1), true)
  1089. wave.Color = COLOR
  1090. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  1091. wave.CFrame = CFRAME
  1092. coroutine.resume(coroutine.create(function(PART)
  1093. for i = 1, WAIT do
  1094. Swait()
  1095. mesh.Scale = mesh.Scale + GROW
  1096. wave.Transparency = wave.Transparency + (1/WAIT)
  1097. if wave.Transparency > 0.99 then
  1098. wave:remove()
  1099. end
  1100. end
  1101. end))
  1102. end
  1103.  
  1104. function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine)
  1105. if DoesCourontine == false then
  1106. local Direction = CF(Part.Position, ToLocation)
  1107. local Distance = (Part.Position - ToLocation).magnitude
  1108. for i = 1, AmountOfTime do
  1109. Swait()
  1110. Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
  1111. Direction = Part.CFrame
  1112. end
  1113. Part:remove()
  1114. elseif DoesCourontine == true then
  1115. coroutine.resume(coroutine.create(function()
  1116. local Direction = CF(Part.Position, ToLocation)
  1117. local Distance = (Part.Position - ToLocation).magnitude
  1118. for i = 1, AmountOfTime do
  1119. Swait()
  1120. Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
  1121. Direction = Part.CFrame
  1122. end
  1123. Part:remove()
  1124. end))
  1125. end
  1126. end
  1127.  
  1128. function CreateFlyingDebree2(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  1129. if FLOOR ~= nil then
  1130. for i = 1, AMOUNT do
  1131. local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Deep orange", "Debree", BLOCKSIZE, false)
  1132. DEBREE.Material = FLOOR.Material
  1133. DEBREE.Color = FLOOR.Color
  1134. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1135. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH))
  1136. coroutine.resume(coroutine.create(function()
  1137. Swait(15)
  1138. DEBREE.Parent = workspace
  1139. DEBREE.CanCollide = true
  1140. Debris:AddItem(DEBREE,SWAIT)
  1141. end))
  1142. end
  1143. end
  1144. end
  1145.  
  1146. function Slice2(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
  1147. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  1148. local mesh
  1149. if KIND == "Base" then
  1150. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
  1151. elseif KIND == "Thin" then
  1152. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  1153. elseif KIND == "Round" then
  1154. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  1155. end
  1156. wave.CFrame = CFRAME
  1157. coroutine.resume(coroutine.create(function(PART)
  1158. for i = 1, WAIT do
  1159. Swait()
  1160. mesh.Scale = mesh.Scale + GROW / 10
  1161. wave.Transparency = wave.Transparency + 0.5 / WAIT
  1162. if wave.Transparency > 0.99 then
  1163. wave:remove()
  1164. end
  1165. end
  1166. end))
  1167. end
  1168.  
  1169. function CreateDebreeRing2(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  1170. if FLOOR ~= nil then
  1171. coroutine.resume(coroutine.create(function()
  1172. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Lime green", "DebreeCenter", VT(0,0,0))
  1173. PART.CFrame = CF(POSITION)
  1174. for i = 1, 45 do
  1175. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really blue", "DebreePart", BLOCKSIZE)
  1176. RingPiece.Material = FLOOR.Material
  1177. RingPiece.Color = FLOOR.Color
  1178. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1179. Debris:AddItem(RingPiece,SWAIT)
  1180. end
  1181. PART:remove()
  1182. end))
  1183. end
  1184. end
  1185.  
  1186. function AddChildrenToTable(FROM, PARENT, DIST, TABLE)
  1187. for _, c in pairs(PARENT:GetChildren()) do
  1188. if c.ClassName == "Model" then
  1189. if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
  1190. local HUMANOID = c:FindFirstChildOfClass("Humanoid")
  1191. local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
  1192. if DIST > (TORSO.Position - FROM).Magnitude then
  1193. table.insert(TABLE, c)
  1194. end
  1195. AddChildrenToTable(FROM, c, DIST, TABLE)
  1196. elseif c.ClassName == "Folder" then
  1197. AddChildrenToTable(FROM, c, DIST, TABLE)
  1198. end
  1199. end
  1200. end
  1201. end
  1202.  
  1203. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1204. local Direction = CFrame.new(StartPos, Vec).lookVector
  1205. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1206. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1207. if RayHit and CheckIntangible(RayHit) then
  1208. if DelayIfHit then
  1209. wait()
  1210. end
  1211. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1212. end
  1213. return RayHit, RayPos, RayNormal
  1214. end
  1215.  
  1216. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1217. local DIRECTION = CF(StartPos,EndPos).lookVector
  1218. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1219. end
  1220.  
  1221. function turnto(position)
  1222. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1223. end
  1224.  
  1225. local BODY = {}
  1226.  
  1227. for _, c in pairs(Character:GetDescendants()) do
  1228. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1229. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1230. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1231. end
  1232. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1233. elseif c:IsA("JointInstance") then
  1234. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1235. end
  1236. end
  1237.  
  1238. for e = 1, #BODY do
  1239. if BODY[e] ~= nil then
  1240. local STUFF = BODY[e]
  1241. local PART = STUFF[1]
  1242. local PARENT = STUFF[2]
  1243. local MATERIAL = STUFF[3]
  1244. local COLOR = STUFF[4]
  1245. local TRANSPARENCY = STUFF[5]
  1246. if PART.ClassName == "Part" and PART ~= RootPart then
  1247. PART.Material = MATERIAL
  1248. PART.Color = COLOR
  1249. PART.Transparency = TRANSPARENCY
  1250. end
  1251. PART.AncestryChanged:Connect(function()
  1252. PART.Parent = PARENT
  1253. end)
  1254. end
  1255. end
  1256.  
  1257. function refit()
  1258. Character.Parent = megahax
  1259. for e = 1, #BODY do
  1260. if BODY[e] ~= nil then
  1261. local STUFF = BODY[e]
  1262. local PART = STUFF[1]
  1263. local PARENT = STUFF[2]
  1264. local MATERIAL = STUFF[3]
  1265. local COLOR = STUFF[4]
  1266. local TRANSPARENCY = STUFF[5]
  1267. if PART.ClassName == "Part" and PART ~= RootPart then
  1268. PART.Material = MATERIAL
  1269. PART.Color = COLOR
  1270. PART.Transparency = TRANSPARENCY
  1271. end
  1272. if PART.Parent ~= PARENT then
  1273. Humanoid:remove()
  1274. PART.Parent = PARENT
  1275. Humanoid = IT("Humanoid",Character)
  1276. end
  1277. end
  1278. end
  1279. end
  1280.  
  1281. Humanoid.Died:connect(function()
  1282. ATTACK = false
  1283. refit()
  1284. end)
  1285.  
  1286. Humanoid.HealthChanged:connect(function()
  1287. ATTACK = false
  1288. refit()
  1289. end)
  1290.  
  1291. --Weapon MAKE--
  1292.  
  1293. --Design--
  1294.  
  1295. local Gauntlet = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Gauntlet", VT(0, 0, 0),false)
  1296. local HandleMesh = CreateMesh("SpecialMesh", Gauntlet, "FileMesh", "1757389224", "1782744902", VT(0.062,0.062,0.062), VT(0,0, 0))
  1297. local Weld = CreateWeldOrSnapOrMotor("Weld", Gauntlet, LeftArm, Gauntlet, CF(0.265, -0.54, 0) * ANGLES(RAD(330), RAD(0), RAD(20)), CF(0, 0, 0))
  1298.  
  1299. local basgui = IT("GuiMain")
  1300. basgui.Parent = PlayerGui
  1301. basgui.Name = "VISgui"
  1302. local fullscreenz = IT("Frame")
  1303. fullscreenz.Parent = basgui
  1304. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  1305. fullscreenz.BackgroundTransparency = 1
  1306. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  1307. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  1308. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  1309.  
  1310. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  1311. imgl2.BackgroundTransparency = 1
  1312. imgl2.BorderSizePixel = 0
  1313. imgl2.ImageTransparency = 0.432
  1314. imgl2.ImageColor3 = Color3.new(255,255,255)
  1315. imgl2.Position = UDim2.new(0.90,-200,0.794,-200)
  1316. imgl2.Size = UDim2.new(0,400,0,400)
  1317. imgl2.Image = "rbxassetid://2480004800"
  1318.  
  1319. local circl = imgl2:Clone()
  1320. circl.Parent = fullscreenz
  1321. circl.ImageTransparency = 1
  1322. circl.Size = UDim2.new(0,550,0,550)
  1323. circl.Position = UDim2.new(0.75,25,0.55,25)
  1324. circl.ImageColor3 = Color3.new(255,255,255)
  1325. circl.Image = "rbxassetid://278749933"
  1326.  
  1327. local ned = Instance.new("TextLabel",fullscreenz)
  1328. ned.ZIndex = 2
  1329. ned.Font = "Antique"
  1330. ned.BackgroundTransparency = 1
  1331. ned.BorderSizePixel = 0.65
  1332. ned.Size = UDim2.new(0.3,0,0.2,0)
  1333. ned.Position = UDim2.new(0.7,0,0.788,0)
  1334. ned.TextColor3 = BrickColor.new("White").Color
  1335. ned.TextStrokeColor3 = BrickColor.new("White").Color
  1336. ned.TextScaled = true
  1337. ned.TextStrokeTransparency = 0
  1338. ned.Text = "Soul Gem"
  1339. ned.TextSize = 17.3
  1340. ned.Rotation = 1
  1341. ned.TextXAlignment = "Right"
  1342. ned.TextYAlignment = "Bottom"
  1343.  
  1344.  
  1345.  
  1346. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1347. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1348. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1349. local BODYGYRO = IT("BodyGyro", STATPART)
  1350. local BODYPOSITION = IT("BodyPosition", STATPART)
  1351. BODYPOSITION.P = 2000
  1352. BODYPOSITION.D = 100
  1353. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1354. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1355. game:GetService("Debris"):AddItem(STATPART ,5)
  1356. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1357. BILLBOARDGUI.Adornee = STATPART
  1358. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1359. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1360. BILLBOARDGUI.AlwaysOnTop = false
  1361. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1362. TEXTLABEL.BackgroundTransparency = 1
  1363. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1364. TEXTLABEL.Text = TEXT
  1365. TEXTLABEL.Font = "SciFi"
  1366. TEXTLABEL.FontSize="Size42"
  1367. TEXTLABEL.TextColor3 = COLOR
  1368. TEXTLABEL.TextStrokeTransparency = 1
  1369. TEXTLABEL.TextScaled = true
  1370. TEXTLABEL.TextWrapped = true
  1371. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1372. if LABELTYPE == "Normal" then
  1373. for i = 1, 30 do
  1374. Swait()
  1375. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  1376. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1377. end
  1378. elseif LABELTYPE == "Debuff" then
  1379. for i = 1, 30 do
  1380. Swait()
  1381. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  1382. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1383. end
  1384. elseif LABELTYPE == "Shock" then
  1385. local ORIGIN = STATPART.Position
  1386. for i = 1, 30 do
  1387. Swait()
  1388. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  1389. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1390. end
  1391. end
  1392. THEPART.Parent = nil
  1393. end),STATPART, BODYPOSITION, TEXTLABEL)
  1394. end
  1395.  
  1396. --Attack functions--
  1397.  
  1398. local masos = Instance.new("Model",game:GetService("Lighting"))
  1399. local IDFSGPARTICLE = Instance.new("ParticleEmitter")
  1400. IDFSGPARTICLE.Name = "idontfeelsogood"
  1401. IDFSGPARTICLE.Parent = masos
  1402. IDFSGPARTICLE.Speed = NumberRange.new(1, 1)
  1403. IDFSGPARTICLE.LightInfluence = 1
  1404. IDFSGPARTICLE.Texture = "rbxassetid://252644715"
  1405. IDFSGPARTICLE.Size = NumberSequence.new(0.20000000298023,0)
  1406. IDFSGPARTICLE.Acceleration = Vector3.new(3, 0, 0)
  1407. IDFSGPARTICLE.Lifetime = NumberRange.new(2, 2)
  1408. IDFSGPARTICLE.Rate = 200
  1409. IDFSGPARTICLE.RotSpeed = NumberRange.new(-60, 60)
  1410. IDFSGPARTICLE.Enabled = false
  1411.  
  1412. function GiveSpecialMesh(object, size, idmesh)
  1413. if object ~= nil then
  1414. local mesho = Instance.new("SpecialMesh")
  1415. mesho.Parent = object
  1416. mesho.Scale = size
  1417. mesho.MeshId = "rbxassetid://" ..idmesh
  1418. end
  1419. end
  1420.  
  1421. function GiveIDFSG(model)
  1422. if model ~= nil then
  1423. local yee = IDFSGPARTICLE:Clone()
  1424. yee.Parent = model
  1425. yee.Color = ColorSequence.new(model.Color)
  1426. yee.Enabled = true
  1427. end
  1428. end
  1429.  
  1430. function TurnBaby(who)
  1431. if who ~= nil and who ~= Character then
  1432. local hedos = who:FindFirstChild("Head")
  1433. local laos = who:FindFirstChild("Left Arm")
  1434. local llos = who:FindFirstChild("Left Leg")
  1435. local raos = who:FindFirstChild("Right Arm")
  1436. local rlos = who:FindFirstChild("Right Leg")
  1437. local toros = who:FindFirstChild("Torso")
  1438. if toros ~= nil and llos ~= nil and raos ~= nil and laos ~= nil and hedos ~= nil and rlos ~= nil then
  1439. laos.Transparency = 1
  1440. raos.Transparency = 1
  1441. toros.Size = Vector3.new(0.34,0.34,0.34)
  1442. llos.Size = Vector3.new(0.34,0.34,0.34)
  1443. rlos.Size = Vector3.new(0.34,0.34,0.34)
  1444. hedos.Size = Vector3.new(0.34,0.34,0.34)
  1445. rlos.Size = Vector3.new(0.34,0.34,0.34)
  1446. laos.Size = Vector3.new(0.34,0.34,0.34)
  1447. end
  1448. end
  1449. end
  1450.  
  1451. function ResetCharacter(Boi)
  1452. if Boi ~= Character then
  1453. Boi:LoadCharacter()
  1454. end
  1455. end
  1456.  
  1457. function BegoneBye(thaobject)
  1458. if thaobject ~= nil then
  1459. GiveIDFSG(thaobject)
  1460. coroutine.wrap(function()
  1461. for i = 0,1,0.01 do
  1462. wait()
  1463. if thaobject.Name == "HumanoidRootPart" then
  1464. thaobject:Destroy()
  1465. else
  1466. thaobject.Transparency = i
  1467. end
  1468. end
  1469. if thaobject.Transparency >= 0.9 then
  1470. thaobject:Destroy()
  1471. end
  1472. end)()
  1473. end
  1474. end
  1475.  
  1476. function BegoneByeModel(thaobject)
  1477. for f, g in pairs(thaobject:GetChildren()) do
  1478. if g.ClassName == "Part" or g.ClassName == "MeshPart" then
  1479. BegoneBye(g)
  1480. end
  1481. end
  1482. end
  1483.  
  1484. function killnearest(position, range, maxstrength)
  1485. for i, v in ipairs(workspace:GetChildren()) do
  1486. do
  1487. local body = v:GetChildren()
  1488. for part = 1, #body do
  1489. if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then
  1490. if v.ClassName == "Model" then
  1491. v:BreakJoints()
  1492. end
  1493. local bv = Instance.new("BodyVelocity")
  1494. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1495. bv.velocity = CF(position, body[part].Position).lookVector * maxstrength
  1496. bv.Parent = body[part]
  1497. Debris:AddItem(bv, 0.2)
  1498. body[part].Parent = Effects
  1499. body[part].Material = "Neon"
  1500. body[part].Color = Color3.fromRGB(167, 94, 155)
  1501. body[part].CanCollide = true
  1502. coroutine.resume(coroutine.create(function()
  1503. wait(5)
  1504. if body[part].Parent == Effects then
  1505. body[part]:remove()
  1506. end
  1507. end))
  1508. end
  1509. end
  1510. if v.ClassName == "Part" and v.Anchored == false and range > (v.Position - position).Magnitude then
  1511. v.Velocity = CFrame.new(position, v.Position).lookVector * 5 * maxstrength
  1512. end
  1513. end
  1514. end
  1515. end
  1516.  
  1517. function killnearest2(position, range, maxstrength, mode)
  1518. for i, v in ipairs(workspace:GetChildren()) do
  1519. do
  1520. local body = v:GetChildren()
  1521. for part = 1, #body do
  1522. if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then
  1523. if v.ClassName == "Model" then
  1524. if mode == "IDFSG" then
  1525. BegoneByeModel(v)
  1526. elseif mode == "NORMAL" then
  1527. v:BreakJoints()
  1528. end
  1529. end
  1530. local bv = Instance.new("BodyVelocity")
  1531. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1532. bv.velocity = CF(position, body[part].Position).lookVector * maxstrength
  1533. bv.Parent = body[part]
  1534. Debris:AddItem(bv, 0.2)
  1535. end
  1536. end
  1537. end
  1538. end
  1539. end
  1540.  
  1541. function Transparency(TRANS)
  1542. for _, c in pairs(Character:GetChildren()) do
  1543. if c.ClassName == "Part" and c ~= RootPart then
  1544. c.Transparency = TRANS
  1545. if c:FindFirstChildOfClass("Decal") then
  1546. c:FindFirstChildOfClass("Decal").Transparency = TRANS
  1547. end
  1548. elseif c.ClassName == "Accessory" then
  1549. c.Handle.Transparency = TRANS
  1550. elseif c.ClassName == "Model" then
  1551. for _, q in pairs(c:GetChildren()) do
  1552. if q.ClassName == "Part" then
  1553. q.Transparency = TRANS
  1554. if q:FindFirstChildOfClass("Decal") then
  1555. q:FindFirstChildOfClass("Decal").Transparency = TRANS
  1556. end
  1557. end
  1558. end
  1559. end
  1560. end
  1561. end
  1562.  
  1563. function Petrify(Char)
  1564. local NewCharacter = IT("Model",Effects)
  1565. NewCharacter.Name = "StonedPerson"
  1566. for _, c in pairs(Char:GetDescendants()) do
  1567. if c:IsA("BasePart") and c.Transparency == 0 then
  1568. if c.Parent == Char then
  1569.  
  1570. end
  1571. c:BreakJoints()
  1572. c.Material = "Cobblestone"
  1573. c.Color = C3(0.5,0.5,0.5)
  1574. c.CanCollide = true
  1575. c.Transparency = 0
  1576. if c:FindFirstChildOfClass("SpecialMesh") then
  1577. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1578. end
  1579. if c.Name == "Head" then
  1580. c:ClearAllChildren()
  1581. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1582. end
  1583. if c.ClassName == "MeshPart" then
  1584. c.TextureID = ""
  1585. end
  1586. if c:FindFirstChildOfClass("BodyPosition") then
  1587. c:FindFirstChildOfClass("BodyPosition"):remove()
  1588. end
  1589. if c:FindFirstChildOfClass("ParticleEmitter") then
  1590. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1591. end
  1592. c.Parent = NewCharacter
  1593. c.Name = "DeadPart"
  1594. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1595. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1596. end
  1597. end
  1598. Char:remove()
  1599. Debris:AddItem(NewCharacter,5)
  1600. end
  1601.  
  1602. function RealityBeam(FROM,TO,BRUTAL)
  1603. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  1604. coroutine.resume(coroutine.create(function()
  1605. if AIMHIT ~= nil then
  1606. if AIMHIT.Parent ~= Character then
  1607. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1608. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  1609. if BRUTAL == true then
  1610. Petrify(AIMHIT.Parent)
  1611. else
  1612. AIMHIT.Parent:BreakJoints()
  1613. if AIMHIT.Name == "Head" then
  1614. AIMHIT.Name = "HEADSHOT"
  1615. AIMHIT:remove()
  1616. end
  1617. end
  1618. else
  1619. if BRUTAL == true then
  1620. Petrify(AIMHIT.Parent.Parent)
  1621. else
  1622. AIMHIT.Parent.Parent:BreakJoints()
  1623. end
  1624. end
  1625. end
  1626. end
  1627. end
  1628. end))
  1629. SpawnTrail(FROM,AIMPOS)
  1630. return AIMHIT,AIMPOS,NORMAL
  1631. end
  1632.  
  1633. function TimeStopCharacter(who)
  1634. if who.Parent ~= Character and who:FindFirstChild("HumanoidRootPart") then
  1635. local TORSO = who:FindFirstChild("HumanoidRootPart")
  1636. local bex = IT("Part")
  1637. bex.Parent = Effects
  1638. bex.Orientation = VT(TORSO.Orientation)
  1639. bex.Size = VT(0.001,0.001,0.001)
  1640. bex.Transparency = 1
  1641. bex.CFrame = CF(TORSO.Position)
  1642. bex.CanCollide = false
  1643. bex.Name = "" ..math.random(10000,99999)
  1644. bex.Anchored = true
  1645. local wed = IT("Weld")
  1646. wed.Parent = bex
  1647. wed.Part0 = bex
  1648. wed.Part1 = TORSO
  1649. CreateSound("2099904460", bex, 0.7, MRANDOM(7, 12) / 10)
  1650. CreateModelSelectionBox(TORSO.Parent, 0.123, Color3.fromRGB(75, 151, 75), 0, nil, nil)
  1651. end
  1652. end
  1653.  
  1654. function TimeStopPart(prt)
  1655. if prt.Parent ~= Character then
  1656. if prt:IsA("Part") or prt:IsA("MeshPart") then
  1657. if prt:FindFirstChild("Already Stopped") ~= nil then
  1658. return
  1659. end
  1660. local vale = IT("StringValue")
  1661. vale.Parent = prt
  1662. vale.Name = "Already Stopped"
  1663. vale.Value = "nil"
  1664. local bex = IT("Part")
  1665. bex.Parent = Effects
  1666. bex.Orientation = VT(prt.Orientation)
  1667. bex.Size = VT(0.001,0.001,0.001)
  1668. bex.Transparency = 1
  1669. bex.CFrame = CF(prt.Position)
  1670. bex.CanCollide = false
  1671. bex.Name = "" ..math.random(10000,99999)
  1672. bex.Anchored = true
  1673. local wed = IT("Weld")
  1674. wed.Parent = bex
  1675. wed.Part0 = bex
  1676. wed.Part1 = prt
  1677. CreateSound("2099904460", bex, 0.7, MRANDOM(7, 12) / 10)
  1678. if prt.Transparency < 1 then
  1679. CreateSelectionBox(prt, 0.123, Color3.fromRGB(75, 151, 75), 0, nil, nil)
  1680. end
  1681. end
  1682. end
  1683. end
  1684.  
  1685. function IDontFeelSoGood(whom)
  1686. if whom ~= Character then
  1687. for i,v in pairs(whom:GetDescendants()) do
  1688.  
  1689. if v:IsA("BasePart") and v ~= whom.RootPart then
  1690. local function sandbox(var,func)
  1691. local env = getfenv(func)
  1692. local newenv = setmetatable({},{
  1693. __index = function(self,k)
  1694. if k=="script" then
  1695. return var
  1696. else
  1697. return env[k]
  1698. end
  1699. end,
  1700. })
  1701. setfenv(func,newenv)
  1702. return func
  1703. end
  1704.  
  1705. local cors = {}
  1706. local mas = Instance.new("Model",game:GetService("Lighting"))
  1707. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  1708. ParticleEmitter0.Name = "idontfeelsogood"
  1709. ParticleEmitter0.Parent = mas
  1710. ParticleEmitter0.Speed = NumberRange.new(1, 1)
  1711. ParticleEmitter0.LightInfluence = 1
  1712. ParticleEmitter0.Texture = "rbxassetid://252644715"
  1713. ParticleEmitter0.Size = NumberSequence.new(0.20000000298023,0)
  1714. ParticleEmitter0.Acceleration = Vector3.new(3, 0, 0)
  1715. ParticleEmitter0.Lifetime = NumberRange.new(2, 2)
  1716. ParticleEmitter0.Rate = 200
  1717. ParticleEmitter0.RotSpeed = NumberRange.new(-60, 60)
  1718. ParticleEmitter0.Enabled = false
  1719. for i,v in pairs(mas:GetChildren()) do
  1720. v.Parent = whom --script
  1721. pcall(function() v:MakeJoints() end)
  1722. end
  1723. mas:Destroy()
  1724. for i,v in pairs(cors) do
  1725. spawn(function()
  1726. pcall(v)
  1727. end)
  1728. end
  1729. local Particlee = ParticleEmitter0:Clone()
  1730. Particlee.Parent = v
  1731. Particlee.Color = ColorSequence.new(v.BrickColor.Color)
  1732. whom.Torso.Anchored = true
  1733. Particlee.Enabled = true
  1734. CreateSound("1874339971", whom.Torso, 7, 1)
  1735. coroutine.wrap(function()
  1736. for i = 0,0.7,0.01 do
  1737. wait()
  1738. Head.face.Transparency = i
  1739. v.Transparency = i
  1740. end
  1741.  
  1742. Particlee.Enabled = false
  1743. wait(5)
  1744. whom:Destroy()
  1745. Particlee:Destroy()
  1746. ParticleEmitter0:Destroy()
  1747. cors = {}
  1748. end)()
  1749. end
  1750. end
  1751. end
  1752. end
  1753.  
  1754. --Attacks--
  1755.  
  1756. function change_gem()
  1757. imgl2.ImageTransparency = 1
  1758. circl.ImageTransparency = 0.12
  1759. ned.TextStrokeTransparency = 1
  1760. ned.TextTransparency = 1
  1761. CreateClientSound("847061203",workspace,3,1,0.7)
  1762. Swait(20)
  1763. circl.ImageTransparency = 1
  1764. imgl2.ImageTransparency = 0.435
  1765. ned.TextStrokeTransparency = 0
  1766. ned.TextTransparency = 0
  1767. end
  1768.  
  1769. function SNAP()
  1770. ATTACK = true
  1771. Rooted = true
  1772. pumpk:Pause()
  1773. for i=0, 0.1, 0.1 / Animation_Speed do
  1774. Swait()
  1775. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1776. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1777. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(23)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1778. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-23)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1779. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1780. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1781. end
  1782. for i= 1, 3 do
  1783. Swait()
  1784. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Lilac",VT(i/3,i/3,0))
  1785. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"New Yeller",VT(i/3,i/3,0))
  1786. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Bright green",VT(i/3,i/3,0))
  1787. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Bright Orange",VT(i/3,i/3,0))
  1788. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Eggplant",VT(i/3,i/3,0))
  1789. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Bright blue",VT(i/3,i/3,0))
  1790. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(i/3,i/3,0))
  1791. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1792. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1793. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1794. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-23)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1795. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1796. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1797. end
  1798. CreateSound("2930668938", workspace, 10, 1)
  1799. CreateSnapGui()
  1800. for i,v in pairs(workspace:GetChildren()) do
  1801. if v.ClassName == "Model" and v ~= Character then
  1802. BegoneByeModel(v)
  1803. end
  1804. end
  1805.  
  1806. for i= 1, 6 do
  1807. Swait()
  1808. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Lilac",VT(i/3,i/3,0))
  1809. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"New Yeller",VT(i/3,i/3,0))
  1810. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Bright green",VT(i/3,i/3,0))
  1811. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Bright Orange",VT(i/3,i/3,0))
  1812. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Eggplant",VT(i/3,i/3,0))
  1813. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Bright blue",VT(i/3,i/3,0))
  1814. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(i/3,i/3,0))
  1815. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1816. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1817. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1818. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-23)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1819. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1820. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1821. end
  1822. for i=0, 0.83, 1.5 / Animation_Speed do
  1823. Swait()
  1824. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1825. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1826. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(23)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1827. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-23)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1828. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1829. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1830. end
  1831. ATTACK = false
  1832. Rooted = false
  1833. pumpk:Resume()
  1834. end
  1835.  
  1836. local punchallowed = false
  1837.  
  1838. function Punch()
  1839. ATTACK = true
  1840. Rooted = false
  1841. punchallowed = true
  1842. repeat
  1843. CreateSound("145487017", LeftArm, 3, .8)
  1844. for i = 1, 16 do
  1845. Swait()
  1846. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(10), RAD(0), RAD(-89)), 0.15 / Animation_Speed)
  1847. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1848. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1849. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(85), RAD(0), RAD(-17)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1850. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
  1851. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
  1852. end
  1853. Swait(5)
  1854. for i = 1, 10 do
  1855. Swait()
  1856. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-22)), 0.15 / Animation_Speed)
  1857. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1858. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1859. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(12), RAD(0), RAD(-4)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1860. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
  1861. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
  1862. end
  1863. Swait(5)
  1864. until HOLD == false
  1865. Swait(2)
  1866. ATTACK = false
  1867. Rooted = false
  1868. punchallowed = false
  1869. end
  1870.  
  1871. LeftArm.Touched:connect(function(h)
  1872. if punchallowed == true then
  1873. if h.Parent ~= Character and h.Name ~= "Baseplate" and h.Name ~= "Base" then
  1874. h:BreakJoints()
  1875. h.Anchored = false
  1876. local vel = Instance.new("BodyVelocity", h)
  1877. if gem_mode == 1 or gem_mode == 2 or gem_mode == 3 or gem_mode == 6 then
  1878. CreateSound("2401098476", h, 9e999, 1)
  1879. vel.Velocity = h.CFrame.lookVector * -43
  1880. elseif gem_mode == 4 then
  1881. CreateSound("440145223", h, 3, 1)
  1882. vel.Velocity = h.CFrame.lookVector * -231
  1883. MagicSphere(VT(0.5,0.5,0.5),11,CF(h.Position),Color3.fromRGB(167, 94, 155),VT(0.6,0.6,0.6))
  1884. h.Color = Color3.fromRGB(137, 64, 135)
  1885. elseif gem_mode == 5 then
  1886. if h:FindFirstChild("Already Stopped") ~= nil then
  1887. return
  1888. end
  1889. h.Anchored = true
  1890. vel.Velocity = h.CFrame.lookVector * 0
  1891. MagicSphere(VT(0.8,0.8,0.8),11,CF(h.Position),Color3.fromRGB(75, 151, 75),VT(0.7,0.7,0.7))
  1892. h.Color = Color3.fromRGB(45, 131, 45)
  1893. TimeStopPart(h)
  1894. elseif gem_mode == 7 then
  1895. CreateSound("138210320", h, 3, 1)
  1896. vel.Velocity = h.CFrame.lookVector * -666
  1897. MagicSphere(VT(0.8,0.8,0.8),11,CF(h.Position),Color3.fromRGB(255, 255, 0),VT(0.7,0.7,0.7))
  1898. end
  1899. vel.MaxForce = VT(math.huge,math.huge,math.huge)
  1900. if gem_mode == 7 then
  1901. Swait(10)
  1902. else
  1903. Swait(3)
  1904. end
  1905. Swait(3)
  1906. if gem_mode == 7 then
  1907. h:Destroy()
  1908. else
  1909. vel:Destroy()
  1910. end
  1911. end
  1912. end
  1913. end)
  1914.  
  1915. function Space_Teleport()
  1916. ATTACK = true
  1917. Rooted = true
  1918. local POS = VT(RootPart.Position.X, Mouse.Hit.p.Y + 6, RootPart.Position.Z)
  1919. local ROOT = CreatePart(3, Effects, "Neon", 0, 1, "Really yellow", "Warphole", VT(0, 0, 0))
  1920.  
  1921. local SpacePortal = script.ThanosPortal:Clone()
  1922. SpacePortal.CFrame = RootPart.CFrame * CF(0, 0, -3) * ANGLES(RAD(0), RAD(0), RAD(0))
  1923.  
  1924. local SpacePortal2 = script.ThanosPortal:Clone()
  1925. SpacePortal2.CFrame = CF(Mouse.Hit.p + VT(0, 6, 0), POS) * ANGLES(RAD(0), RAD(0), RAD(0))
  1926.  
  1927. ROOT.CFrame = CF(SpacePortal2.Position, RootPart.Position)
  1928.  
  1929. SpacePortal.Parent = Effects
  1930. SpacePortal2.Parent = Effects
  1931.  
  1932. CreateSound("1127492102", RootPart, 10, 0.7)
  1933. CreateSound("1127492102", RootPart, 10, 0.7)
  1934. for i = 1, 75 do
  1935. Swait()
  1936. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1937. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1938. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(19.7)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1939. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-17)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1940. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
  1941. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
  1942. end
  1943. VALUE1 = true
  1944. for i = 1, 15 do
  1945. Transparency(i / 15)
  1946. Swait()
  1947. RootPart.CFrame = RootPart.CFrame * CF(0, 0, -0.13)
  1948. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1949. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1950. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-90 * COS(SINE / 12)), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1951. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90 * COS(SINE / 12)), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1952. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0.2) * ANGLES(RAD(90 * COS(SINE / 12)), RAD(90), RAD(0)), 1)
  1953. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0.2) * ANGLES(RAD(-90 * COS(SINE / 12)), RAD(-90), RAD(0)), 1)
  1954. end
  1955. RootPart.CFrame = ROOT.CFrame
  1956. ROOT:remove()
  1957. for i = 1, 15 do
  1958. Transparency(1 - i / 15)
  1959. Swait()
  1960. RootPart.CFrame = RootPart.CFrame * CF(0, 0, -0.5)
  1961. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1962. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1963. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-90 * COS(SINE / 12)), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1964. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90 * COS(SINE / 12)), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1965. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0.2) * ANGLES(RAD(90 * COS(SINE / 12)), RAD(90), RAD(0)), 1)
  1966. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0.2) * ANGLES(RAD(-90 * COS(SINE / 12)), RAD(-90), RAD(0)), 1)
  1967. end
  1968. VALUE1 = false
  1969. coroutine.resume(coroutine.create(function()
  1970. for i = 1, 75 do
  1971. Swait()
  1972. SpacePortal.CFrame = SpacePortal.CFrame * ANGLES(RAD(0), RAD(i), RAD(0))
  1973. SpacePortal2.CFrame = SpacePortal2.CFrame * ANGLES(RAD(0), RAD(i), RAD(0))
  1974. end
  1975. SpacePortal:remove()
  1976. SpacePortal2:remove()
  1977. end))
  1978. ATTACK = false
  1979. Rooted = false
  1980. end
  1981.  
  1982. function Portal_Disapear()
  1983. ATTACK = true
  1984. Rooted = false
  1985. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
  1986. local SpacePortal = script.ThanosPortal:Clone()
  1987. SpacePortal.CFrame = Mouse.Target.Parent.HumanoidRootPart * CF(0, 0, -3) * ANGLES(RAD(0), RAD(90), RAD(0))
  1988. end
  1989. ATTACK = false
  1990. Rooted = false
  1991. end
  1992.  
  1993. function AreaPower()
  1994. ATTACK = true
  1995. Rooted = true
  1996. CreateSound("384105511",Torso,10,.85)
  1997. for i = 1, 25 do
  1998. Swait()
  1999. CreateRing(VT(0,0,0),false,0,5,RootPart.CFrame*ANGLES(RAD(0),RAD(90),RAD(0)),"Lilac",VT(i/5,i/5,0))
  2000. CreateRing(VT(0,0,0),false,0,5,RootPart.CFrame*ANGLES(RAD(0),RAD(0),RAD(0)),"Lilac",VT(i/5,i/5,0))
  2001. CreateRing(VT(0,0,0),false,0,25,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Plum",VT(i/3,i/3,0))
  2002. killnearest(RootPart.Position, 40, 100)
  2003. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-3), RAD(0), RAD(-12)), 0.15 / Animation_Speed)
  2004. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2005. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-4), RAD(0), RAD(11)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2006. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(160), RAD(20), RAD(-90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2007. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
  2008. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
  2009. end
  2010. ATTACK = false
  2011. Rooted = false
  2012. end
  2013.  
  2014. function Laser()
  2015. ATTACK = true
  2016. Rooted = false
  2017. repeat
  2018. local GYRO = IT("BodyGyro",RootPart)
  2019. GYRO.D = 175
  2020. GYRO.P = 20000
  2021. GYRO.MaxTorque = VT(0,40000,0)
  2022. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2023. for i=0, 0.0, 0.1 / Animation_Speed do
  2024. Swait()
  2025. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2026. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2027. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2028. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(19.7)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2029. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(MRANDOM(10,20)), RAD(MRANDOM(10,20))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2030. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
  2031. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
  2032. end
  2033. RealityBeam(LeftArm.Position,Mouse.Hit.p,true)
  2034. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(0.3,0,0.3), Size2 = VT(0.3,0.3,0.3), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame, MoveToPos = LeftArm.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(255, 89, 89), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2035. GYRO:remove()
  2036. ATTACK = false
  2037. Rooted = false
  2038. until KEYHOLD == false
  2039. end
  2040.  
  2041. function Begone()
  2042. ATTACK = true
  2043. Rooted = true
  2044. if Mouse.Target.Parent ~= Character and Mouse.Target:FindFirstChildOfClass("Part") ~= nil then
  2045. local TORSO = Mouse.Target:FindFirstChildOfClass("Part")
  2046. if TORSO then
  2047. local GYRO = IT("BodyGyro", RootPart)
  2048. GYRO.D = 750
  2049. GYRO.P = 2000
  2050. GYRO.MaxTorque = VT(0, 40000, 0)
  2051. for i = 0, 0.3, 0.1 / Animation_Speed do
  2052. Swait()
  2053. GYRO.cframe = CF(RootPart.Position, TORSO.Position)
  2054. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2055. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2056. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2057. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2058. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2059. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  2060. if ANIM == "Idle" then
  2061. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2062. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2063. elseif ANIM == "Walk" then
  2064. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2065. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2066. elseif ANIM == "Jump" or ANIM == "Fall" then
  2067. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2068. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2069. end
  2070. end
  2071. GYRO:remove()
  2072. CreateSound("1874339971", TORSO, 10, 1)
  2073. BegoneBye(TORSO)
  2074. for i = 0, 0.25, 0.1 / Animation_Speed do
  2075. Swait()
  2076. GYRO.cframe = CF(RootPart.Position, TORSO.Position)
  2077. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2078. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2079. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2080. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2081. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2082. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  2083. end
  2084. end
  2085. end
  2086. ATTACK = false
  2087. Rooted = false
  2088. end
  2089.  
  2090. function Timestopper()
  2091. ATTACK = true
  2092. Rooted = false
  2093. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
  2094. CreateSound("384105511",RootPart,3.3,1)
  2095. for i = 1, 25 do
  2096. Swait()
  2097. CreateRing(VT(0,0,0),false,0,5,LeftArm.CFrame*ANGLES(RAD(0),RAD(90),RAD(0)),"Camo",VT(i/7.5,i/7.5,0))
  2098. CreateRing(VT(0,0,0),false,0,5,LeftArm.CFrame*ANGLES(RAD(0),RAD(0),RAD(0)),"Camo",VT(i/7.5,i/7.5,0))
  2099. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-3), RAD(0), RAD(-12)), 0.15 / Animation_Speed)
  2100. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2101. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-4), RAD(0), RAD(11)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2102. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(94), RAD(12), RAD(-70)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2103. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
  2104. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
  2105. end
  2106. local TORSO = Mouse.Target.Parent:FindFirstChild("HumanoidRootPart")
  2107. local bex = IT("Part")
  2108. bex.Parent = Effects
  2109. bex.Orientation = VT(TORSO.Orientation)
  2110. bex.Size = VT(0.001,0.001,0.001)
  2111. bex.Transparency = 1
  2112. bex.CFrame = CF(TORSO.Position)
  2113. bex.CanCollide = false
  2114. bex.Name = "" ..math.random(10000,99999)
  2115. bex.Anchored = true
  2116. local wed = IT("Weld")
  2117. wed.Parent = bex
  2118. wed.Part0 = bex
  2119. wed.Part1 = TORSO
  2120. CreateSound("2099904460", bex, 0.7, MRANDOM(7, 12) / 10)
  2121. CreateModelSelectionBox(TORSO.Parent, 0.123, Color3.fromRGB(75, 151, 75), 0, nil, nil)
  2122. end
  2123. ATTACK = false
  2124. Rooted = false
  2125. end
  2126.  
  2127. function FullPowerBlast()
  2128. ATTACK = true
  2129. Rooted = true
  2130. CreateSound("581516887",Torso,2,0.88)
  2131. for i=0, 1.5, 0.1 / Animation_Speed do
  2132. Swait()
  2133. turnto(Mouse.Hit.p)
  2134. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2135. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2136. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(19.7)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2137. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-17)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2138. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
  2139. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
  2140. end
  2141. for i = 1, 50 do
  2142. Swait()
  2143. end
  2144. local LOOP = 0
  2145. local BEAM1 = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Lilac"), "Beamo", VT(0,0,0))
  2146. MakeForm(BEAM1, "Ball")
  2147. local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Lilac"), "Beame", VT(0,0,0))
  2148. MakeForm(BEAM2, "Ball")
  2149. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Lilac"), "Beam", VT(0, 0, 0), true)
  2150. MakeForm(BEAM, "Cyl")
  2151. CreateSound("1146690130",BEAM1,4,0.83)
  2152. local beamsound = IT("Sound")
  2153. beamsound.SoundId = "rbxassetid://1447681819"
  2154. beamsound.Looped = true
  2155. beamsound.Volume = 5
  2156. beamsound.Parent = BEAM
  2157. beamsound:Play()
  2158. repeat
  2159. local DISTANCE = (RightArm.Position - Mouse.Hit.p).Magnitude
  2160. if gem_mode == 7 then
  2161. TweenService:Create(BEAM,TweenInfo.new(1),{Color = Colours[Int]}):Play()
  2162. TweenService:Create(BEAM1,TweenInfo.new(1),{Color = Colours[Int]}):Play()
  2163. TweenService:Create(BEAM2,TweenInfo.new(1),{Color = Colours[Int]}):Play()
  2164. end
  2165. if gem_mode == 7 and Mouse.Target.Name ~= "Baseplate" and Mouse.Target.Name ~= "Base" then
  2166. Mouse.Target:Destroy()
  2167. elseif gem_mode ~= 7 and Mouse.Target.Name ~= "Baseplate" and Mouse.Target.Name ~= "Base" then
  2168. Mouse.Target:BreakJoints()
  2169. end
  2170. if DISTANCE < 2000 then
  2171. BEAM1.Size = VT(2.5 + 0.5 * COS(SINE / 8), 2.5 + 0.5 * COS(SINE / 8), 2.5 + 0.5 * COS(SINE / 8))
  2172. BEAM1.CFrame = CF(LeftArm.Position)
  2173. BEAM2.Size = VT(2.5 + 0.5 * COS(SINE / 8), 2.5 + 0.5 * COS(SINE / 8), 2.5 + 0.5 * COS(SINE / 8))
  2174. BEAM2.CFrame = CF(Mouse.Hit.p)
  2175. BEAM.Size = VT(2 + 0.25 * COS(SINE / 8), DISTANCE, 2 + 0.25 * COS(SINE / 8))
  2176. BEAM.CFrame = CF(LeftArm.Position, Mouse.Hit.p) * CF(0, 0, -DISTANCE / 2) * ANGLES(RAD(90), RAD(0), RAD(0))
  2177. Swait()
  2178. LOOP = LOOP + 1
  2179. end
  2180. until KEYHOLD == false and LOOP >= 35 or DISTANCE >= 2000
  2181. coroutine.resume(coroutine.create(function()
  2182. for i = 1, 15 do
  2183. Swait()
  2184. BEAM.Size = BEAM.Size - VT(0.1, 0, 0.1)
  2185. BEAM1.Size = BEAM1.Size - VT(0.1, 0.1, 0.1)
  2186. BEAM2.Size = BEAM2.Size - VT(0.1, 0.1, 0.1)
  2187. BEAM.Transparency = BEAM.Transparency + 0.06666666666666667
  2188. BEAM1.Transparency = BEAM1.Transparency + 0.06666666666666667
  2189. BEAM2.Transparency = BEAM2.Transparency + 0.06666666666666667
  2190. end
  2191. BEAM:remove()
  2192. BEAM1:remove()
  2193. BEAM2:remove()
  2194. end))
  2195. ATTACK = false
  2196. Rooted = false
  2197. end
  2198.  
  2199. function MouseDown(Mouse)
  2200. HOLD = true
  2201. if ATTACK == false then
  2202. Punch()
  2203. end
  2204. end
  2205.  
  2206. function MouseUp(Mouse)
  2207. HOLD = false
  2208. end
  2209.  
  2210. function KeyDown(Key)
  2211. KEYHOLD = true
  2212. if(Key == "z" and ATTACK == false)then
  2213. if gem_mode == 1 then
  2214.  
  2215. end
  2216. if gem_mode == 2 then
  2217. Laser()
  2218. end
  2219. if gem_mode == 3 then
  2220.  
  2221. end
  2222. if gem_mode == 4 then
  2223. FullPowerBlast()
  2224. end
  2225. if gem_mode == 5 then
  2226. Timestopper()
  2227. end
  2228. if gem_mode == 6 then
  2229.  
  2230. end
  2231. if gem_mode == 7 then
  2232. SNAP()
  2233. end
  2234. end
  2235.  
  2236. if(Key == "x" and ATTACK == false)then
  2237. if gem_mode == 1 then
  2238.  
  2239. end
  2240. if gem_mode == 2 then
  2241.  
  2242. end
  2243. if gem_mode == 3 then
  2244. Space_Teleport()
  2245. end
  2246. if gem_mode == 4 then
  2247. AreaPower()
  2248. end
  2249. if gem_mode == 5 then
  2250.  
  2251. end
  2252. if gem_mode == 6 then
  2253.  
  2254. end
  2255. if gem_mode == 7 then
  2256. FullPowerBlast()
  2257. end
  2258. end
  2259.  
  2260. if(Key == "c" and ATTACK == false)then
  2261. if gem_mode == 1 then
  2262.  
  2263. end
  2264. if gem_mode == 2 then
  2265.  
  2266. end
  2267. if gem_mode == 3 then
  2268.  
  2269. end
  2270. if gem_mode == 4 then
  2271.  
  2272. end
  2273. if gem_mode == 5 then
  2274.  
  2275. end
  2276. if gem_mode == 6 then
  2277.  
  2278. end
  2279. if gem_mode == 7 then
  2280.  
  2281. end
  2282. end
  2283.  
  2284. if(Key == "one" and ATTACK == false and gem_mode ~= 1)then
  2285. change_gem()
  2286. gem_mode = 1 --Soul
  2287. end
  2288.  
  2289. if(Key == "two" and ATTACK == false and gem_mode ~= 2)then
  2290. change_gem()
  2291. gem_mode = 2 --Reality
  2292. end
  2293.  
  2294. if(Key == "three" and ATTACK == false and gem_mode ~= 3)then
  2295. change_gem()
  2296. gem_mode = 3 --Space
  2297. end
  2298.  
  2299. if(Key == "four" and ATTACK == false and gem_mode ~= 4)then
  2300. change_gem()
  2301. gem_mode = 4 --Power
  2302. end
  2303.  
  2304. if(Key == "five" and ATTACK == false and gem_mode ~= 5)then
  2305. change_gem()
  2306. gem_mode = 5 --Time
  2307. end
  2308.  
  2309. if(Key == "six" and ATTACK == false and gem_mode ~= 6)then
  2310. change_gem()
  2311. gem_mode = 6 --Mind
  2312. end
  2313.  
  2314. if(Key == "seven" and ATTACK == false and gem_mode ~= 7)then
  2315. change_gem()
  2316. gem_mode = 7 --Every
  2317. end
  2318. end
  2319.  
  2320. function KeyUp(Key)
  2321. KEYHOLD = false
  2322. end
  2323.  
  2324. Mouse.Button1Down:connect(function(NEWKEY)
  2325. MouseDown(NEWKEY)
  2326. end)
  2327. Mouse.Button1Up:connect(function(NEWKEY)
  2328. MouseUp(NEWKEY)
  2329. end)
  2330. Mouse.KeyDown:connect(function(NEWKEY)
  2331. KeyDown(NEWKEY)
  2332. end)
  2333. Mouse.KeyUp:connect(function(NEWKEY)
  2334. KeyUp(NEWKEY)
  2335. end)
  2336.  
  2337.  
  2338. function unanchor()
  2339. local g = Character:GetChildren()
  2340. for i = 1, #g do
  2341. if g[i].ClassName == "Part" then
  2342. g[i].Anchored = false
  2343. end
  2344. end
  2345. end
  2346.  
  2347. Humanoid.Changed:connect(function(Jump)
  2348. if Jump == "Jump" and (Disable_Jump == true) then
  2349. Humanoid.Jump = false
  2350. end
  2351. end)
  2352.  
  2353. spawn(function()
  2354. while wait(0.64) do
  2355. Swait()
  2356. --[[
  2357. Swait(6)
  2358. ChangeColorNumber = 1
  2359. Swait(6)
  2360. ChangeColorNumber = 2
  2361. Swait(6)
  2362. ChangeColorNumber = 3
  2363. Swait(6)
  2364. ChangeColorNumber = 4
  2365. Swait(6)
  2366. ChangeColorNumber = 5
  2367. Swait(6)
  2368. ChangeColorNumber = 6
  2369. ]]
  2370. if gem_mode == 7 then
  2371. if Int == #Colours then Int = 0 end
  2372. Int = Int+1
  2373. TweenService:Create(ned,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
  2374. TweenService:Create(ned,TweenInfo.new(1),{TextStrokeColor3 = Colours2[Int]}):Play()
  2375. end
  2376. end
  2377. end)
  2378.  
  2379. CreateOutfit()
  2380. CreateShield()
  2381.  
  2382. while true do
  2383. Swait()
  2384. refit()
  2385. ANIMATE.Parent = nil
  2386. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2387. v:Stop();
  2388. end
  2389. SINE = SINE + CHANGE
  2390. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2391. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2392. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2393. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2394. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2395. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2396. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2397. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2398. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2399. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2400. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2401. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2402. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2403. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2404. end
  2405. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2406. ANIM = "Jump"
  2407. if ATTACK == false then
  2408. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2409. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2410. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2411. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2412. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2413. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2414. end
  2415. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2416. ANIM = "Fall"
  2417. if ATTACK == false then
  2418. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2419. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2420. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(100), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2421. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-100), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2422. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2423. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2424. end
  2425. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2426. ANIM = "Idle"
  2427. if ATTACK == false then
  2428. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2429. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2430. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(23)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2431. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-23)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2432. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(7), RAD(0)), 0.15 / Animation_Speed)
  2433. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(-7), RAD(0)), 0.15 / Animation_Speed)
  2434. end
  2435. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2436. ANIM = "Walk"
  2437. if ATTACK == false then
  2438. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2439. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2440. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-90 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2441. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2442. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0.2) * ANGLES(RAD(90 * COS(SINE / WALKSPEEDVALUE)), RAD(90), RAD(0)), 1)
  2443. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0.2) * ANGLES(RAD(-90 * COS(SINE / WALKSPEEDVALUE)), RAD(-90), RAD(0)), 1)
  2444. end
  2445. end
  2446. circl.Rotation = circl.Rotation - 0.14 + 1.5
  2447. if gem_mode == 7 then
  2448. ned.Rotation = 0 -2 * math.cos(SINE / 1) + math.random(-3,3)
  2449. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  2450. else
  2451. ned.Rotation = 0 - 2 * math.cos(SINE / 24)
  2452. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(SINE / 32),0.8,0 - 10 * math.cos(SINE / 45))
  2453. end
  2454. if Weld == nil then
  2455. local Weld = CreateWeldOrSnapOrMotor("Weld", Gauntlet, LeftArm, Gauntlet, CF(0.265, -0.54, 0) * ANGLES(RAD(330), RAD(0), RAD(20)), CF(0, 0, 0))
  2456. end
  2457. unanchor()
  2458. if workspace:FindFirstChild("BulletShield") == nil then
  2459. CreateShield()
  2460. end
  2461. if gem_mode == 1 then
  2462. imgl2.Image = "rbxassetid://2480004800"
  2463. ned.Text = "Soul Gem"
  2464. ned.TextStrokeColor3 = BrickColor.new("Gold").Color
  2465. ned.TextColor3 = BrickColor.new("Bright orange").Color
  2466. end
  2467. if gem_mode == 2 then
  2468. imgl2.Image = "rbxassetid://2480005731"
  2469. ned.Text = "Reality Gem"
  2470. ned.TextStrokeColor3 = BrickColor.new("Really red").Color
  2471. ned.TextColor3 = BrickColor.new("Persimmon").Color
  2472. end
  2473. if gem_mode == 3 then
  2474. imgl2.Image = "rbxassetid://2480007159"
  2475. ned.Text = "Space Gem"
  2476. ned.TextStrokeColor3 = BrickColor.new("Bright blue").Color
  2477. ned.TextColor3 = BrickColor.new("Teal").Color
  2478. end
  2479. if gem_mode == 4 then
  2480. imgl2.Image = "rbxassetid://2480007882"
  2481. ned.Text = "Power Gem"
  2482. ned.TextStrokeColor3 = BrickColor.new("Bright reddish lilac").Color
  2483. ned.TextColor3 = BrickColor.new("Eggplant").Color
  2484. end
  2485. if gem_mode == 5 then
  2486. imgl2.Image = "rbxassetid://2480008988"
  2487. ned.Text = "Time Gem"
  2488. ned.TextStrokeColor3 = BrickColor.new("Olivine").Color
  2489. ned.TextColor3 = BrickColor.new("Mint").Color
  2490. end
  2491. if gem_mode == 6 then
  2492. imgl2.Image = "rbxassetid://2480009679"
  2493. ned.Text = "Mind Gem"
  2494. ned.TextStrokeColor3 = BrickColor.new("New Yeller").Color
  2495. ned.TextColor3 = BrickColor.new("Bright yellow").Color
  2496. end
  2497. if gem_mode == 7 then
  2498. imgl2.Image = "rbxassetid://2481697056"
  2499. ned.Text = "Every Gem"
  2500. --ned.TextStrokeColor3 = BrickColor.new(EveryStroke[ChangeColorNumber]).Color
  2501. --ned.TextColor3 = BrickColor.new(EveryColor[ChangeColorNumber]).Color
  2502. end
  2503. Humanoid.MaxHealth = 1e99999
  2504. Humanoid.Health = Humanoid.Health + 1e9999
  2505. if Rooted == false then
  2506. Disable_Jump = false
  2507. Humanoid.WalkSpeed = Speed
  2508. elseif Rooted == true then
  2509. Disable_Jump = true
  2510. Humanoid.WalkSpeed = 0
  2511. end
  2512. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement