Void_scripter0

in

Feb 26th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 85.39 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141. --//====================================================\\--
  142. --|| CREATED BY SHACKLUSTER
  143. --\\====================================================//--
  144.  
  145. wait(0.2)
  146.  
  147. Player = game:GetService("Players").LocalPlayer
  148. PlayerGui = Player.PlayerGui
  149. Cam = workspace.CurrentCamera
  150. Backpack = Player.Backpack
  151. Character = Player.Character
  152. Humanoid = Character.Humanoid
  153. Mouse = Player:GetMouse()
  154. RootPart = Character["HumanoidRootPart"]
  155. Torso = Character["Torso"]
  156. Head = Character["Head"]
  157. RightArm = Character["Right Arm"]
  158. LeftArm = Character["Left Arm"]
  159. RightLeg = Character["Right Leg"]
  160. LeftLeg = Character["Left Leg"]
  161. RootJoint = RootPart["RootJoint"]
  162. Neck = Torso["Neck"]
  163. RightShoulder = Torso["Right Shoulder"]
  164. LeftShoulder = Torso["Left Shoulder"]
  165. RightHip = Torso["Right Hip"]
  166. LeftHip = Torso["Left Hip"]
  167. Character.Archivable = true
  168. Player:ClearCharacterAppearance()
  169.  
  170. IT = Instance.new
  171. CF = CFrame.new
  172. VT = Vector3.new
  173. RAD = math.rad
  174. C3 = Color3.new
  175. UD2 = UDim2.new
  176. BRICKC = BrickColor.new
  177. ANGLES = CFrame.Angles
  178. EULER = CFrame.fromEulerAnglesXYZ
  179. COS = math.cos
  180. ACOS = math.acos
  181. SIN = math.sin
  182. ASIN = math.asin
  183. ABS = math.abs
  184. MRANDOM = math.random
  185. FLOOR = math.floor
  186.  
  187. --//=================================\\
  188. --|| USEFUL VALUES
  189. --\\=================================//
  190.  
  191. Animation_Speed = 3
  192. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  193. local Speed = 20
  194. local SIZE = 1.4
  195. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  196. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  197. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  198. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  199. local DAMAGEMULTIPLIER = 1
  200. local ANIM = "Idle"
  201. local ATTACK = false
  202. local EQUIPPED = false
  203. local HOLD = false
  204. local COMBO = 1
  205. local Rooted = false
  206. local SINE = 0
  207. local KEYHOLD = false
  208. local CHANGE = 2 / Animation_Speed
  209. local WALKINGANIM = false
  210. local VALUE1 = false
  211. local VALUE2 = false
  212. local ROBLOXIDLEANIMATION = IT("Animation")
  213. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  214. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  215. local ATANIM = IT("Animation")
  216. ATANIM.Name = "Attack Animation"
  217. ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
  218. --ROBLOXIDLEANIMATION.Parent = Humanoid
  219. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  220. WEAPONGUI.Name = "Weapon GUI"
  221. local Weapon = IT("Model")
  222. Weapon.Name = "Adds"
  223. local Effects = IT("Folder", Weapon)
  224. Effects.Name = "Effects"
  225. local ANIMATOR = Humanoid.Animator
  226. local ANIMATE = Character.Animate
  227. local UNANCHOR = true
  228. local CLOCKLOOP = 0
  229. local SONG = 929330882
  230. local CLOCKTARGET = nil
  231. local CLOCKSPEED = 1
  232. script.Parent = WEAPONGUI
  233. local CLONE = Character:Clone()
  234. CLONE.Parent = nil
  235. Character.Archivable = false
  236. local sick = Instance.new("Sound",Torso)
  237.  
  238. --//=================================\\
  239. --\\=================================//
  240.  
  241.  
  242. --//=================================\\
  243. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  244. --\\=================================//
  245.  
  246. ArtificialHB = Instance.new("BindableEvent", script)
  247. ArtificialHB.Name = "ArtificialHB"
  248.  
  249. script:WaitForChild("ArtificialHB")
  250.  
  251. frame = Frame_Speed
  252. tf = 0
  253. allowframeloss = false
  254. tossremainder = false
  255. lastframe = tick()
  256. script.ArtificialHB:Fire()
  257.  
  258. game:GetService("RunService").Heartbeat:connect(function(s, p)
  259. tf = tf + s
  260. if tf >= frame then
  261. if allowframeloss then
  262. script.ArtificialHB:Fire()
  263. lastframe = tick()
  264. else
  265. for i = 1, math.floor(tf / frame) do
  266. script.ArtificialHB:Fire()
  267. end
  268. lastframe = tick()
  269. end
  270. if tossremainder then
  271. tf = 0
  272. else
  273. tf = tf - frame * math.floor(tf / frame)
  274. end
  275. end
  276. end)
  277.  
  278. --//=================================\\
  279. --\\=================================//
  280.  
  281. --//=================================\\
  282. --|| SOME FUNCTIONS
  283. --\\=================================//
  284.  
  285. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  286. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  287. end
  288.  
  289. function PositiveAngle(NUMBER)
  290. if NUMBER >= 0 then
  291. NUMBER = 0
  292. end
  293. return NUMBER
  294. end
  295.  
  296. function NegativeAngle(NUMBER)
  297. if NUMBER <= 0 then
  298. NUMBER = 0
  299. end
  300. return NUMBER
  301. end
  302.  
  303. function Swait(NUMBER)
  304. if NUMBER == 0 or NUMBER == nil then
  305. ArtificialHB.Event:wait()
  306. else
  307. for i = 1, NUMBER do
  308. ArtificialHB.Event:wait()
  309. end
  310. end
  311. end
  312.  
  313. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  314. local NEWMESH = IT(MESH)
  315. if MESH == "SpecialMesh" then
  316. NEWMESH.MeshType = MESHTYPE
  317. if MESHID ~= "nil" and MESHID ~= "" then
  318. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  319. end
  320. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  321. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  322. end
  323. end
  324. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  325. NEWMESH.Scale = SCALE
  326. NEWMESH.Parent = PARENT
  327. return NEWMESH
  328. end
  329.  
  330. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  331. local NEWPART = IT("Part")
  332. NEWPART.formFactor = FORMFACTOR
  333. NEWPART.Reflectance = REFLECTANCE
  334. NEWPART.Transparency = TRANSPARENCY
  335. NEWPART.CanCollide = false
  336. NEWPART.Locked = true
  337. NEWPART.Anchored = true
  338. if ANCHOR == false then
  339. NEWPART.Anchored = false
  340. end
  341. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  342. NEWPART.Name = NAME
  343. NEWPART.Size = SIZE
  344. NEWPART.Position = Torso.Position
  345. NEWPART.Material = MATERIAL
  346. NEWPART:BreakJoints()
  347. NEWPART.Parent = PARENT
  348. return NEWPART
  349. end
  350.  
  351. local function weldBetween(a, b)
  352. local weldd = Instance.new("ManualWeld")
  353. weldd.Part0 = a
  354. weldd.Part1 = b
  355. weldd.C0 = CFrame.new()
  356. weldd.C1 = b.CFrame:inverse() * a.CFrame
  357. weldd.Parent = a
  358. return weldd
  359. end
  360.  
  361.  
  362. function QuaternionFromCFrame(cf)
  363. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  364. local trace = m00 + m11 + m22
  365. if trace > 0 then
  366. local s = math.sqrt(1 + trace)
  367. local recip = 0.5 / s
  368. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  369. else
  370. local i = 0
  371. if m11 > m00 then
  372. i = 1
  373. end
  374. if m22 > (i == 0 and m00 or m11) then
  375. i = 2
  376. end
  377. if i == 0 then
  378. local s = math.sqrt(m00 - m11 - m22 + 1)
  379. local recip = 0.5 / s
  380. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  381. elseif i == 1 then
  382. local s = math.sqrt(m11 - m22 - m00 + 1)
  383. local recip = 0.5 / s
  384. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  385. elseif i == 2 then
  386. local s = math.sqrt(m22 - m00 - m11 + 1)
  387. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  388. end
  389. end
  390. end
  391.  
  392. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  393. local xs, ys, zs = x + x, y + y, z + z
  394. local wx, wy, wz = w * xs, w * ys, w * zs
  395. local xx = x * xs
  396. local xy = x * ys
  397. local xz = x * zs
  398. local yy = y * ys
  399. local yz = y * zs
  400. local zz = z * zs
  401. 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))
  402. end
  403.  
  404. function QuaternionSlerp(a, b, t)
  405. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  406. local startInterp, finishInterp;
  407. if cosTheta >= 0.0001 then
  408. if (1 - cosTheta) > 0.0001 then
  409. local theta = ACOS(cosTheta)
  410. local invSinTheta = 1 / SIN(theta)
  411. startInterp = SIN((1 - t) * theta) * invSinTheta
  412. finishInterp = SIN(t * theta) * invSinTheta
  413. else
  414. startInterp = 1 - t
  415. finishInterp = t
  416. end
  417. else
  418. if (1 + cosTheta) > 0.0001 then
  419. local theta = ACOS(-cosTheta)
  420. local invSinTheta = 1 / SIN(theta)
  421. startInterp = SIN((t - 1) * theta) * invSinTheta
  422. finishInterp = SIN(t * theta) * invSinTheta
  423. else
  424. startInterp = t - 1
  425. finishInterp = t
  426. end
  427. end
  428. 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
  429. end
  430.  
  431. function Clerp(a, b, t)
  432. local qa = {QuaternionFromCFrame(a)}
  433. local qb = {QuaternionFromCFrame(b)}
  434. local ax, ay, az = a.x, a.y, a.z
  435. local bx, by, bz = b.x, b.y, b.z
  436. local _t = 1 - t
  437. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  438. end
  439.  
  440. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  441. local frame = IT("Frame")
  442. frame.BackgroundTransparency = TRANSPARENCY
  443. frame.BorderSizePixel = BORDERSIZEPIXEL
  444. frame.Position = POSITION
  445. frame.Size = SIZE
  446. frame.BackgroundColor3 = COLOR
  447. frame.BorderColor3 = BORDERCOLOR
  448. frame.Name = NAME
  449. frame.Parent = PARENT
  450. return frame
  451. end
  452.  
  453. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  454. local label = IT("TextLabel")
  455. label.BackgroundTransparency = 1
  456. label.Size = UD2(1, 0, 1, 0)
  457. label.Position = UD2(0, 0, 0, 0)
  458. label.TextColor3 = TEXTCOLOR
  459. label.TextStrokeTransparency = STROKETRANSPARENCY
  460. label.TextTransparency = TRANSPARENCY
  461. label.FontSize = TEXTFONTSIZE
  462. label.Font = TEXTFONT
  463. label.BorderSizePixel = BORDERSIZEPIXEL
  464. label.TextStrokeColor3 = C3(1,1,1)
  465. label.TextScaled = false
  466. label.Text = TEXT
  467. label.Name = NAME
  468. label.Parent = PARENT
  469. return label
  470. end
  471.  
  472. function NoOutlines(PART)
  473. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  474. end
  475.  
  476. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  477. local NEWWELD = IT(TYPE)
  478. NEWWELD.Part0 = PART0
  479. NEWWELD.Part1 = PART1
  480. NEWWELD.C0 = C0
  481. NEWWELD.C1 = C1
  482. NEWWELD.Parent = PARENT
  483. return NEWWELD
  484. end
  485.  
  486. local S = IT("Sound")
  487. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  488. local NEWSOUND = nil
  489. coroutine.resume(coroutine.create(function()
  490. NEWSOUND = S:Clone()
  491. NEWSOUND.Parent = PARENT
  492. NEWSOUND.Volume = VOLUME
  493. NEWSOUND.Pitch = PITCH
  494. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  495. NEWSOUND:play()
  496. if DOESLOOP == true then
  497. NEWSOUND.Looped = true
  498. else
  499. repeat wait(1) until NEWSOUND.Playing == false
  500. NEWSOUND:remove()
  501. end
  502. end))
  503. return NEWSOUND
  504. end
  505.  
  506. function CFrameFromTopBack(at, top, back)
  507. local right = top:Cross(back)
  508. 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)
  509. end
  510.  
  511. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  512. function WACKYEFFECT(Table)
  513. local TYPE = (Table.EffectType or "Sphere")
  514. local SIZE = (Table.Size or VT(1,1,1))
  515. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  516. local TRANSPARENCY = (Table.Transparency or 0)
  517. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  518. local CFRAME = (Table.CFrame or Torso.CFrame)
  519. local MOVEDIRECTION = (Table.MoveToPos or nil)
  520. local ROTATION1 = (Table.RotationX or 0)
  521. local ROTATION2 = (Table.RotationY or 0)
  522. local ROTATION3 = (Table.RotationZ or 0)
  523. local MATERIAL = (Table.Material or "Neon")
  524. local COLOR = (Table.Color or C3(1,1,1))
  525. local TIME = (Table.Time or 45)
  526. local SOUNDID = (Table.SoundID or nil)
  527. local SOUNDPITCH = (Table.SoundPitch or nil)
  528. local SOUNDVOLUME = (Table.SoundVolume or nil)
  529. coroutine.resume(coroutine.create(function()
  530. local PLAYSSOUND = false
  531. local SOUND = nil
  532. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  533. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  534. PLAYSSOUND = true
  535. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  536. end
  537. EFFECT.Color = COLOR
  538. local MSH = nil
  539. if TYPE == "Sphere" then
  540. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  541. elseif TYPE == "Block" then
  542. MSH = IT("BlockMesh",EFFECT)
  543. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  544. elseif TYPE == "Wave" then
  545. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  546. elseif TYPE == "Ring" then
  547. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  548. elseif TYPE == "Slash" then
  549. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  550. elseif TYPE == "Round Slash" then
  551. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  552. elseif TYPE == "Swirl" then
  553. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  554. elseif TYPE == "Skull" then
  555. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  556. elseif TYPE == "Crystal" then
  557. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  558. end
  559. if MSH ~= nil then
  560. local MOVESPEED = nil
  561. if MOVEDIRECTION ~= nil then
  562. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  563. end
  564. local GROWTH = SIZE - ENDSIZE
  565. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  566. if TYPE == "Block" then
  567. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  568. else
  569. EFFECT.CFrame = CFRAME
  570. end
  571. for LOOP = 1, TIME+1 do
  572. Swait()
  573. MSH.Scale = MSH.Scale - GROWTH/TIME
  574. if TYPE == "Wave" then
  575. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  576. end
  577. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  578. if TYPE == "Block" then
  579. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  580. else
  581. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  582. end
  583. if MOVEDIRECTION ~= nil then
  584. local ORI = EFFECT.Orientation
  585. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  586. EFFECT.Orientation = ORI
  587. end
  588. end
  589. if PLAYSSOUND == false then
  590. EFFECT:remove()
  591. else
  592. repeat Swait() until SOUND.Playing == false
  593. EFFECT:remove()
  594. end
  595. else
  596. if PLAYSSOUND == false then
  597. EFFECT:remove()
  598. else
  599. repeat Swait() until SOUND.Playing == false
  600. EFFECT:remove()
  601. end
  602. end
  603. end))
  604. end
  605.  
  606. function MakeForm(PART,TYPE)
  607. if TYPE == "Cyl" then
  608. local MSH = IT("CylinderMesh",PART)
  609. elseif TYPE == "Ball" then
  610. local MSH = IT("SpecialMesh",PART)
  611. MSH.MeshType = "Sphere"
  612. elseif TYPE == "Wedge" then
  613. local MSH = IT("SpecialMesh",PART)
  614. MSH.MeshType = "Wedge"
  615. end
  616. end
  617.  
  618. Debris = game:GetService("Debris")
  619.  
  620. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  621. local DIRECTION = CF(StartPos,EndPos).lookVector
  622. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  623. end
  624.  
  625. function turnto(position)
  626. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  627. end
  628.  
  629. --//=================================\\
  630. --|| WEAPON CREATION
  631. --\\=================================//
  632.  
  633. Humanoid.Parent = nil
  634. RootPart.Size = RootPart.Size*SIZE
  635. Torso.Size = Torso.Size*SIZE
  636. RightArm.Size = RightArm.Size*SIZE
  637. RightLeg.Size = RightLeg.Size*SIZE
  638. LeftArm.Size = LeftArm.Size*SIZE
  639. LeftLeg.Size = LeftLeg.Size*SIZE
  640. RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  641. RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  642. Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  643. Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
  644. RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  645. LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  646. RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  647. LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  648. RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  649. LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  650. Head.Size = Head.Size*SIZE
  651. RootJoint.Parent = RootPart
  652. Neck.Parent = Torso
  653. RightShoulder.Parent = Torso
  654. LeftShoulder.Parent = Torso
  655. RightHip.Parent = Torso
  656. LeftHip.Parent = Torso
  657.  
  658. Humanoid.DisplayDistanceType = "None"
  659. local naeeym2 = IT("BillboardGui",Character)
  660. naeeym2.AlwaysOnTop = true
  661. naeeym2.Size = UDim2.new(5,35,2,15)
  662. naeeym2.StudsOffset = Vector3.new(0,2,0)
  663. naeeym2.MaxDistance = 75
  664. naeeym2.Adornee = Character.Head
  665. naeeym2.Name = "Name"
  666.  
  667. local tecks2 = IT("TextLabel",naeeym2)
  668. tecks2.BackgroundTransparency = 1
  669. tecks2.TextScaled = true
  670. tecks2.BorderSizePixel = 0
  671. tecks2.Text = "Injustice"
  672. tecks2.Font = "Fantasy"
  673. tecks2.TextSize = 30
  674. tecks2.TextStrokeTransparency = 0
  675. tecks2.TextColor3 = C3(255,255,255)
  676. tecks2.TextStrokeColor3 = C3(255/255, 255/255, 0/255)
  677. tecks2.Size = UDim2.new(1,0,0.5,0)
  678. tecks2.Parent = naeeym2
  679. local top = Instance.new("Shirt")
  680. top.ShirtTemplate = "rbxassetid://338740550"
  681. top.Parent = Character
  682. top.Name = "Cloth"
  683. local bottom = Instance.new("Pants")
  684. bottom.PantsTemplate = "rbxassetid://338750779"
  685. bottom.Parent = Character
  686. bottom.Name = "Cloth"
  687. local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false)
  688. PRT.Color = C3(0,0,0)
  689. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
  690. CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "82907376", VT(1,1,1)*SIZE, VT(0,0,0))
  691. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false)
  692. PRT.Color = C3(0,0,0)
  693. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  694. CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0))
  695. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false)
  696. MakeForm(PRT,"Ball")
  697. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  698. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false)
  699. PRT.Color = C3(255/255, 255/255, 42/255)
  700. MakeForm(PRT,"Ball")
  701. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
  702. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
  703. PRT.Color = C3(255/255, 255/255, 42/255)
  704. MakeForm(PRT,"Ball")
  705. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  706. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
  707. PRT.Color = C3(255/255, 255/255, 42/255)
  708. MakeForm(PRT,"Ball")
  709. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  710. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
  711. PRT.Color = C3(255/255, 255/255, 42/255)
  712. MakeForm(PRT,"Ball")
  713. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
  714. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
  715. PRT.Color = C3(255/255, 255/255, 42/255)
  716. MakeForm(PRT,"Ball")
  717. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0))
  718.  
  719.  
  720.  
  721. local LASTPART = Head
  722. for i = 1, 24 do
  723. local MATH = (1-(i/30))
  724. if LASTPART == Head then
  725. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  726. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0))
  727. LASTPART = Horn
  728. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),42/255)
  729. else
  730. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  731. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
  732. LASTPART = Horn
  733. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),42/255)
  734. end
  735. end
  736. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false)
  737. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  738. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false)
  739. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  740. MakeForm(PRT,"Cyl")
  741. local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false)
  742. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  743. MakeForm(PRT,"Cyl")
  744. PRT.Color = C3(255/255, 255/255, 42/255)
  745. local RING = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false)
  746. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  747. MakeForm(RING,"Cyl")
  748. RING.Color = C3(0/0, 0/0, 0/0)
  749. for i = 1, 12 do
  750. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false)
  751. PRT.Color = C3(0/0, 0/0, 0/0)
  752. local MSH = IT("BlockMesh",PRT)
  753. MSH.Scale = VT(0.6,1,1)
  754. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE))
  755. end
  756. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false)
  757. PRT.Color = C3(0,0,0)
  758. local MSH = IT("BlockMesh",PRT)
  759. MSH.Scale = VT(0.4,1,1)
  760. local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE))
  761. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false)
  762. PRT.Color = C3(0,0,0)
  763. local MSH = IT("BlockMesh",PRT)
  764. MSH.Scale = VT(0.4,1,1)
  765. local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE))
  766. coroutine.resume(coroutine.create(function()
  767. while true do
  768. Swait()
  769. CLOCKLOOP = CLOCKLOOP - 3*CLOCKSPEED
  770. WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed)
  771. WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed)
  772. if CLOCKLOOP <= -150 then
  773. if VALUE1 == false then
  774. CLOCKLOOP = 0
  775. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 42/255), SoundID , SoundPitch = 1.2, SoundVolume = 4})
  776. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  777. ApplyAoE(HITPOS,10,15,45,75,false)
  778. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 42/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  779. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 42/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  780. if CLOCKTARGET ~= nil then
  781. CLOCKTARGET.Health = CLOCKTARGET.Health - 20
  782. if CLOCKTARGET.Torso ~= nil then
  783. CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
  784. end
  785. if CLOCKTARGET.Health == 0 then
  786. CLOCKTARGET = nil
  787. end
  788. end
  789. end
  790. end
  791. end
  792. end))
  793.  
  794. for _, c in pairs(Weapon:GetChildren()) do
  795. if c.ClassName == "Part" then
  796. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  797. end
  798. end
  799.  
  800. Neck.Name = "Weld"
  801. RootJoint.Name = "Weld"
  802. RightShoulder.Name = "Weld"
  803. LeftShoulder.Name = "Weld"
  804. RightHip.Name = "Weld"
  805. LeftHip.Name = "Weld"
  806.  
  807. local SKILLTEXTCOLOR = C3(255/255, 255/255, 42/255)
  808. local SKILLFONT = "Fantasy"
  809. local SKILLTEXTSIZE = 7
  810.  
  811. Weapon.Parent = Character
  812. Humanoid.Parent = Character
  813.  
  814. Humanoid.Died:connect(function()
  815. ATTACK = true
  816. end)
  817.  
  818. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  819. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  820. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  821. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  822. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  823. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.76, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  824.  
  825. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Watch Booster", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  826. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Justiced punch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  827. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Gone from above", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  828. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Unjustified box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  829. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[G] Clock break", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6")
  830. --//=================================\\
  831. --|| DAMAGING
  832. --\\=================================//
  833.  
  834. function ApplyDamage(Humanoid,Damage,TorsoPart)
  835. local defence = Instance.new("BoolValue",Humanoid.Parent)
  836. defence.Name = ("HitBy"..Player.Name)
  837. game:GetService("Debris"):AddItem(defence, 0.001)
  838. Damage = Damage * DAMAGEMULTIPLIER
  839. if Humanoid.Health ~= 0 then
  840. local CritChance = MRANDOM(1,100)
  841. if Damage > Humanoid.Health then
  842. Damage = math.ceil(Humanoid.Health)
  843. if Damage == 0 then
  844. Damage = 0.1
  845. end
  846. end
  847. Humanoid.Health = Humanoid.Health - Damage
  848. end
  849. end
  850.  
  851. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  852. local CHILDREN = workspace:GetDescendants()
  853. for index, CHILD in pairs(CHILDREN) do
  854. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  855. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  856. if HUM then
  857. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  858. if TORSO then
  859. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  860. if INSTAKILL == true then
  861. CHILD:BreakJoints()
  862. else
  863. local DMG = MRANDOM(MINDMG,MAXDMG)
  864. ApplyDamage(HUM,DMG,TORSO)
  865. end
  866. if FLING > 0 then
  867. for _, c in pairs(CHILD:GetChildren()) do
  868. if c:IsA("BasePart") then
  869. local bv = Instance.new("BodyVelocity")
  870. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  871. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  872. bv.Parent = c
  873. Debris:AddItem(bv,0.05)
  874. end
  875. end
  876. end
  877. end
  878. end
  879. end
  880. end
  881. end
  882. end
  883.  
  884. --//=================================\\
  885. --|| ATTACK FUNCTIONS AND STUFF
  886. --\\=================================//
  887.  
  888. function MagicMissiles()
  889. ATTACK = true
  890. Rooted = true
  891. local SELECTING = true
  892. local SPOTS = {}
  893. coroutine.resume(coroutine.create(function()
  894. local LOOP = 0
  895. repeat
  896. LOOP = LOOP + 1
  897. Swait()
  898. if LOOP >= 10 then
  899. LOOP = 0
  900. for i = 1, #SPOTS do
  901. if SPOTS[i] ~= nil then
  902. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  903. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  904. end
  905. end
  906. end
  907. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  908. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  909. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  910. 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)
  911. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  912. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  913. until SELECTING == false
  914. Rooted = false
  915. repeat
  916. LOOP = LOOP + 1
  917. Swait()
  918. if LOOP >= 10 then
  919. LOOP = 0
  920. for i = 1, #SPOTS do
  921. if SPOTS[i] ~= nil then
  922. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  923. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  924. end
  925. end
  926. end
  927. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  928. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
  929. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  930. 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)
  931. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  932. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  933. until ATTACK == false
  934. end))
  935. repeat
  936. repeat Swait() until HOLD == true
  937. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  938. if DIST > 65 then
  939. DIST = 65
  940. end
  941. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  942. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  943. if HITFLOOR ~= nil then
  944. table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)))
  945. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,2,6), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6})
  946. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  947. end
  948. repeat Swait() until HOLD == false
  949. until #SPOTS == 5
  950. SELECTING = false
  951. for i = 1, #SPOTS do
  952. if SPOTS[i] ~= nil then
  953. local POS = SPOTS[i]
  954. coroutine.resume(coroutine.create(function()
  955. local MISSILE = IT("Model",Effects)
  956. MISSILE.Name = "Missile"
  957. local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,2,2))
  958. MakeForm(BASEPART,"Cyl")
  959. MISSILE.PrimaryPart = BASEPART
  960. BASEPART.CFrame = POS*CF(0,-30*3,0)
  961. local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,4,2))
  962. MakeForm(HEAD,"Ball")
  963. HEAD.CFrame = BASEPART.CFrame*CF(0,1,0)
  964. local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2.5,0.1,2.5))
  965. MakeForm(TAIL,"Cyl")
  966. TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0)
  967. for i = 1, 10 do
  968. Swait()
  969. for _, c in pairs(MISSILE:GetChildren()) do
  970. if c.ClassName == "Part" then
  971. c.Transparency = c.Transparency - 1/10
  972. end
  973. end
  974. end
  975. for i = 1, 15*1.5 do
  976. Swait()
  977. MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0))
  978. end
  979. ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false)
  980. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(75,1,75), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  981. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4})
  982. WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(22,2,22), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  983. WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(20,3,20), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  984. MISSILE:remove()
  985. end))
  986. end
  987. end
  988. wait(0.6)
  989. ATTACK = false
  990. Rooted = false
  991. end
  992.  
  993.  
  994. function GoldPunch()
  995. ATTACK = true
  996. Rooted = false
  997. local SPEED = Speed
  998. Speed = 8
  999. CreateSound("0", RightArm, 10, 1.1)
  1000. for i=0, 4, 0.1 / Animation_Speed do
  1001. Swait()
  1002. turnto(Mouse.Hit.p)
  1003. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Gold",VT(-1/15,-1/15,-1/15))
  1004. MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Really black",VT(-2/15,-2/15,-2/15))
  1005. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
  1006. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed)
  1007. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1008. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1009. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1010. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1011. end
  1012. for i=0, 0.15, 0.1 / Animation_Speed do
  1013. Swait()
  1014. turnto(Mouse.Hit.p)
  1015. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed)
  1016. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
  1017. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1018. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1019. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1020. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1021. end
  1022. local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Gold", "Punch", VT(50,50,50),false)
  1023. PART.CFrame = RootPart.CFrame * CF(0,0,-25)
  1024. PART.Shape = "Ball"
  1025. local bv = Instance.new("BodyVelocity")
  1026. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1027. bv.velocity = RootPart.CFrame.lookVector*600
  1028. bv.Parent = PART
  1029. bv.Name = "PROJECTILEVELOCITY"
  1030. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really black",VT(2.5,0.2,2.5))
  1031. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(3,0.2,3))
  1032. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(2,0.6,2))
  1033. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Instutional white",VT(2.2,0.6,2.2))
  1034. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  1035. coroutine.resume(coroutine.create(function()
  1036. for i = 1, 10 do
  1037. Swait()
  1038. PART.Transparency = PART.Transparency + 0.2/10
  1039. PART.Size = PART.Size + VT(5,5,5)
  1040. killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame)
  1041. end
  1042. PART:Destroy()
  1043. end))
  1044. for i=0, 1, 0.1 / Animation_Speed do
  1045. Swait()
  1046. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed)
  1047. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed)
  1048. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1049. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1050. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed)
  1051. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed)
  1052. end
  1053. Speed = SPEED
  1054. ATTACK = false
  1055. Rooted = false
  1056. end
  1057.  
  1058. function WarpMeteor()
  1059. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  1060. if DIST > 180 then
  1061. DIST = 180
  1062. end
  1063. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  1064. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character)
  1065. if HITFLOOR then
  1066. local POS = HITPOS
  1067. ATTACK = true
  1068. Rooted = true
  1069. local WARPED = false
  1070. local SMASHED = false
  1071. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  1072. coroutine.resume(coroutine.create(function()
  1073. repeat
  1074. Swait()
  1075. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1076. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1077. RightShoulder.C0 = Clerp(RightShoulder.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))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1078. 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)
  1079. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1080. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1081. until WARPED == true
  1082. repeat
  1083. Swait()
  1084. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1085. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1086. RightShoulder.C0 = Clerp(RightShoulder.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))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1087. 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)
  1088. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE + 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1089. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1090. until SMASHED == true
  1091. repeat
  1092. Swait()
  1093. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed)
  1094. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 1 / Animation_Speed)
  1095. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(-15), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1096. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(15), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1097. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
  1098. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1099. until ATTACK == false
  1100. end))
  1101. VALUE1 = true
  1102. CreateSound(233856115, Torso, 5, 1.6, false)
  1103. for i = 1, 25 do
  1104. Swait()
  1105. for _, c in pairs(Character:GetChildren()) do
  1106. if c.ClassName == "Part" then
  1107. c.Transparency = c.Transparency + 1/25
  1108. end
  1109. end
  1110. for _, c in pairs(Weapon:GetChildren()) do
  1111. if c.ClassName == "Part" then
  1112. c.Transparency = c.Transparency + 1/25
  1113. end
  1114. end
  1115. end
  1116. UNANCHOR = false
  1117. RootPart.Anchored = true
  1118. RootPart.Velocity = VT(0,0,0)
  1119. local ROOTPOS = RootPart.Position
  1120. RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z))
  1121. WARPED = true
  1122. for i = 1, 25 do
  1123. Swait()
  1124. for _, c in pairs(Character:GetChildren()) do
  1125. if c.ClassName == "Part" then
  1126. c.Transparency = c.Transparency - 1/25
  1127. end
  1128. end
  1129. for _, c in pairs(Weapon:GetChildren()) do
  1130. if c.ClassName == "Part" then
  1131. c.Transparency = c.Transparency - 1/25
  1132. end
  1133. end
  1134. end
  1135. local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Part", VT(0,0,0))
  1136. SHELL.CFrame = RootPart.CFrame
  1137. MakeForm(SHELL,"Ball")
  1138. CreateSound(402981977, SHELL, 5, 1.6, false)
  1139. for i = 1, 10 do
  1140. Swait()
  1141. SHELL.Transparency = SHELL.Transparency - 1/10
  1142. SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8
  1143. end
  1144. for i = 1, math.ceil(75/2) do
  1145. Swait()
  1146. RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0)
  1147. SHELL.CFrame = CF(RootPart.Position)
  1148. WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(5,3,5), Transparency = 0.5, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = SHELL.Position+VT(0,15,0), RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  1149. end
  1150. RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z))
  1151. SHELL.CFrame = CF(RootPart.Position)
  1152. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(35,35,35)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
  1153. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*3.8, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  1154. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  1155. for i = 1, 5 do
  1156. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*4, Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1157. end
  1158. SHELL:remove()
  1159. ApplyAoE(RootPart.Position,75,35,75,175,false)
  1160. SMASHED = true
  1161. wait(1)
  1162. VALUE1 = false
  1163. UNANCHOR = true
  1164. ATTACK = false
  1165. Rooted = false
  1166. end
  1167. end
  1168.  
  1169. function PandorasBox()
  1170. local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  1171. if HITFLOOR ~= nil then
  1172. ATTACK = true
  1173. Rooted = true
  1174. local RINGSPIN = true
  1175. local CONSTRUCTING = true
  1176. local RING = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Ring", VT(0,0,0))
  1177. RING.Color = C3(0,0,0)
  1178. MakeForm(RING,"Cyl")
  1179. RING.CFrame = CF(HITPOS)
  1180. CreateSound(402981977, RING, 5, 1.2, false)
  1181. coroutine.resume(coroutine.create(function()
  1182. repeat
  1183. Swait()
  1184. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1185. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1186. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1187. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1188. 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)
  1189. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1190. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1191. until CONSTRUCTING == false
  1192. repeat
  1193. Swait()
  1194. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1195. until RINGSPIN == false
  1196. for i = 1, 25 do
  1197. Swait()
  1198. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1199. RING.Size = RING.Size - VT(0.15,0,0.15)
  1200. --DECAL.Transparency = DECAL.Transparency + 1/25
  1201. RING.Transparency = RING.Transparency + 1/25
  1202. end
  1203. RING:remove()
  1204. end))
  1205. for i = 1, 15 do
  1206. Swait()
  1207. RING.Size = RING.Size + VT(0.75,0,0.75)
  1208. RING.Transparency = RING.Transparency - 1/15
  1209. end
  1210. local BOXSPIN = true
  1211. local PANDORASBOX = IT("Model",Effects)
  1212. PANDORASBOX.Name = "Pandora's Box"
  1213. local BOX = IT("Model",PANDORASBOX)
  1214. BOX.Name = "Body"
  1215. local LID = IT("Model",PANDORASBOX)
  1216. LID.Name = "Lid"
  1217. --BUILDING THE BOX--
  1218. local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Alder", "Black", VT(2,1.8,2))
  1219. BASE.Color = C3(0,0,0)
  1220. PANDORASBOX.PrimaryPart = BASE
  1221. BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
  1222. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Neon", VT(0.2,1.9,0.2))
  1223. WOOD.CFrame = BASE.CFrame*CF(1,0,1)
  1224. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Neon", VT(0.2,1.9,0.2))
  1225. WOOD.CFrame = BASE.CFrame*CF(1,0,-1)
  1226. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Neon", VT(0.2,1.9,0.2))
  1227. WOOD.CFrame = BASE.CFrame*CF(-1,0,1)
  1228. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Neon", VT(0.2,1.9,0.2))
  1229. WOOD.CFrame = BASE.CFrame*CF(-1,0,-1)
  1230. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Neon", VT(2.1,0.2,0.2))
  1231. WOOD.CFrame = BASE.CFrame*CF(0,0.9,1)
  1232. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Neon", VT(2.1,0.2,0.2))
  1233. WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1)
  1234. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Neon", VT(0.2,0.2,2.1))
  1235. WOOD.CFrame = BASE.CFrame*CF(1,0.9,0)
  1236. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Neon", VT(0.2,0.2,2.1))
  1237. WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0)
  1238. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Neon", VT(2.1,0.2,0.2))
  1239. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1)
  1240. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Neon", VT(2.1,0.2,0.2))
  1241. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1)
  1242. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1243. WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0)
  1244. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1245. WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0)
  1246. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1))
  1247. WOOD.CFrame = BASE.CFrame*CF(0,0,1)
  1248. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1))
  1249. WOOD.CFrame = BASE.CFrame*CF(0,0,-1)
  1250. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1))
  1251. WOOD.CFrame = BASE.CFrame*CF(1,0,0)
  1252. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1))
  1253. WOOD.CFrame = BASE.CFrame*CF(-1,0,0)
  1254. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1))
  1255. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0)
  1256. -------------
  1257. local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Daisy orange", "Neon", VT(2.1,0.1,2.1))
  1258. LIDPART.CFrame = BASE.CFrame*CF(0,1,0)
  1259. LID.PrimaryPart = LIDPART
  1260. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  1261. WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1)
  1262. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  1263. WOOD.CFrame = LIDPART.CFrame*CF(0,0,1)
  1264. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1265. WOOD.CFrame = LIDPART.CFrame*CF(1,0,0)
  1266. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  1267. WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0)
  1268. local DECAL = IT("Decal",LIDPART)
  1269. DECAL.Face = "Top"
  1270. DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061"
  1271. DECAL.Color3 = C3(0,0,0)
  1272. --BUILDING THE BOX--
  1273. coroutine.resume(coroutine.create(function()
  1274. repeat
  1275. Swait()
  1276. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0)))
  1277. until BOXSPIN == false
  1278. end))
  1279. for i = 1, 25 do
  1280. Swait()
  1281. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0))
  1282. end
  1283. wait(0.5)
  1284. BOXSPIN = false
  1285. CONSTRUCTING = false
  1286. coroutine.resume(coroutine.create(function()
  1287. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = LIDPART.Size, Size2 = VT(3,0,3)*4, Transparency = 0, Transparency2 = 1, CFrame = LIDPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 168586586, SoundPitch = 1.3, SoundVolume = 6})
  1288. --[[for i = 1, 45 do
  1289. Swait()
  1290. LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0)))
  1291. end-
  1292. LID:remove()]]--
  1293. for _, c in pairs(LID:GetChildren()) do
  1294. if c.ClassName == "Part" then
  1295. c.Anchored = false
  1296. c.CanCollide = true
  1297. if c ~= LIDPART then
  1298. weldBetween(LIDPART,c)
  1299. end
  1300. end
  1301. end
  1302. LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65
  1303. Debris:AddItem(LID,15)
  1304. wait(0.5)
  1305. local RANDOMEFFECT = MRANDOM(1,4)
  1306. if RANDOMEFFECT == 1 then
  1307. for i = 1, 45 do
  1308. wait((2-(i/15))/15)
  1309. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,MRANDOM(12,15),0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(1,5)), MoveToPos = BASE.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.8, SoundVolume = 6})
  1310. end
  1311. wait(1)
  1312. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*12, Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
  1313. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*10, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 469345336, SoundPitch = 0.75, SoundVolume = 6})
  1314. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*9, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  1315. for i = 1, 5 do
  1316. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*12, Transparency = 0.5, Transparency2 = 1, CFrame = BASE.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1317. end
  1318. ApplyAoE(BASE.Position,50,1,200,375,false)
  1319. ApplyAoE(BASE.Position,250,35,75,175,false)
  1320. elseif RANDOMEFFECT == 2 then
  1321. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3))
  1322. FIELD.CFrame = BASE.CFrame
  1323. MakeForm(FIELD,"Ball")
  1324. for i = 1, 50 do
  1325. Swait()
  1326. FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
  1327. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  1328. end
  1329. wait(0.2)
  1330. local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true)
  1331. coroutine.resume(coroutine.create(function()
  1332. for i = 1, 75 do
  1333. Swait()
  1334. LOOP.Volume = LOOP.Volume + 10/75
  1335. LOOP.Parent = FIELD
  1336. local CHILDREN = workspace:GetDescendants()
  1337. for index, CHILD in pairs(CHILDREN) do
  1338. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1339. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1340. if HUM then
  1341. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1342. if TORSO then
  1343. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  1344. HUM.Health = HUM.Health - 0.1
  1345. TORSO.Velocity = VT(0,5,0)
  1346. HUM.PlatformStand = true
  1347. if TORSO.RotVelocity.Magnitude < 15 then
  1348. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  1349. end
  1350. end
  1351. end
  1352. end
  1353. end
  1354. end
  1355. FIELD.Size = FIELD.Size + VT(3,3,3)
  1356. FIELD.Transparency = FIELD.Transparency + 0.8/75
  1357. end
  1358. for i = 1, 500 do
  1359. Swait()
  1360. LOOP.Parent = FIELD
  1361. local CHILDREN = workspace:GetDescendants()
  1362. for index, CHILD in pairs(CHILDREN) do
  1363. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1364. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1365. if HUM then
  1366. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1367. if TORSO then
  1368. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  1369. TORSO.Velocity = VT(0,5,0)
  1370. HUM.Health = HUM.Health - 0.1
  1371. HUM.PlatformStand = true
  1372. if TORSO.RotVelocity.Magnitude < 15 then
  1373. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  1374. end
  1375. end
  1376. end
  1377. end
  1378. end
  1379. end
  1380. end
  1381. for i = 1, 25 do
  1382. Swait()
  1383. LOOP.Volume = LOOP.Volume + 10/25
  1384. LOOP.Parent = FIELD
  1385. local CHILDREN = workspace:GetDescendants()
  1386. for index, CHILD in pairs(CHILDREN) do
  1387. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1388. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1389. if HUM then
  1390. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1391. if TORSO then
  1392. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
  1393. TORSO.Velocity = VT(0,5,0)
  1394. HUM.Health = HUM.Health - 0.1
  1395. HUM.PlatformStand = false
  1396. if TORSO.RotVelocity.Magnitude < 15 then
  1397. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  1398. end
  1399. end
  1400. end
  1401. end
  1402. end
  1403. end
  1404. FIELD.Size = FIELD.Size - VT(3,3,3)
  1405. FIELD.Transparency = FIELD.Transparency + 0.2/25
  1406. end
  1407. FIELD:remove()
  1408. end))
  1409. elseif RANDOMEFFECT == 3 then
  1410. for i = 1, 10 do
  1411. wait(0.15)
  1412. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,8,3), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,0.3,0), MoveToPos = BASE.Position+VT(0,6,0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 0.8, SoundVolume = 6})
  1413. coroutine.resume(coroutine.create(function()
  1414. local MINION = CLONE:Clone()
  1415. MINION.Parent = Effects
  1416. MINION.Name = "Shadow"
  1417. MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))
  1418. MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100)
  1419. for _, c in pairs(MINION:GetChildren()) do
  1420. if c.ClassName == "Part" then
  1421. c.Material = "Neon"
  1422. c.Color = C3(255/255, 255/255, 0/255)
  1423. c.Transparency = 0.25
  1424. if c.Name == "Head" then
  1425. c:ClearAllChildren()
  1426. local MSH = IT("BlockMesh",c)
  1427. MSH.Scale = VT(0.5,1,1)
  1428. end
  1429. end
  1430. end
  1431. local TORSO = MINION.Torso
  1432. local HUMAN = MINION.Humanoid
  1433. HUMAN.WalkSpeed = 20
  1434. HUMAN.MaxHealth = math.huge
  1435. HUMAN.Health = math.huge
  1436. HUMAN.DisplayDistanceType = "None"
  1437. HUMAN.Died:connect(function()
  1438. MINION:remove()
  1439. --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
  1440. end)
  1441. wait(1)
  1442. local findNearestTorso = function(POS)
  1443. local list = game.Workspace:GetDescendants()
  1444. local torso = nil
  1445. local dist = 500
  1446. local temp = nil
  1447. local human = nil
  1448. local temp2 = nil
  1449. for x = 1, #list do
  1450. temp2 = list[x]
  1451. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
  1452. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  1453. human = temp2:findFirstChildOfClass("Humanoid")
  1454. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1455. if (temp.Position - POS).magnitude < dist then
  1456. torso = temp
  1457. dist = (temp.Position - POS).magnitude
  1458. end
  1459. end
  1460. end
  1461. end
  1462. return torso, dist
  1463. end
  1464. for i = 1, 40 do
  1465. if HUMAN.Health == 0 then
  1466. break
  1467. end
  1468. wait(0.3)
  1469. local target,dist= findNearestTorso(TORSO.Position)
  1470. if target then
  1471. HUMAN:MoveTo(target.Position)
  1472. if dist < 25 then
  1473. CreateSound(348663022, TORSO, 10, 1, true)
  1474. wait(2)
  1475. --local ANIM = HUMAN:LoadAnimation(ATANIM)
  1476. --ANIM:Play()
  1477. --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
  1478. ApplyAoE(TORSO.Position,10,0,0,85,true)
  1479. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 201858087, SoundPitch = 0.8, SoundVolume = 10})
  1480. for i = 1, 5 do
  1481. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-15,15)/7.5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1482. end
  1483. break
  1484. end
  1485. end
  1486. end
  1487. MINION:remove()
  1488. end))
  1489. end
  1490. elseif RANDOMEFFECT == 4 then
  1491. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3))
  1492. FIELD.Color = C3(0,0,0)
  1493. FIELD.CFrame = BASE.CFrame
  1494. MakeForm(FIELD,"Ball")
  1495. FIELD.CanCollide = true
  1496. for i = 1, 50 do
  1497. Swait()
  1498. FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
  1499. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  1500. end
  1501. wait(0.2)
  1502. local LOOP = CreateSound(487214658, FIELD, 0, 1, true)
  1503. coroutine.resume(coroutine.create(function()
  1504. local E = 0
  1505. for i = 1, 75 do
  1506. E = E + 1
  1507. Swait()
  1508. if E >= 35 then
  1509. E = 0
  1510. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
  1511. end
  1512. LOOP.Volume = LOOP.Volume + 10/75
  1513. LOOP.Parent = FIELD
  1514. local CHILDREN = workspace:GetDescendants()
  1515. for index, CHILD in pairs(CHILDREN) do
  1516. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1517. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1518. if HUM then
  1519. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1520. if TORSO then
  1521. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
  1522. for _, c in pairs(CHILD:GetChildren()) do
  1523. if c:IsA("BasePart") then
  1524. local bv = Instance.new("BodyVelocity")
  1525. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1526. bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
  1527. bv.Parent = c
  1528. Debris:AddItem(bv,0.05)
  1529. end
  1530. end
  1531. HUM.Health = HUM.Health - 0.3
  1532. end
  1533. end
  1534. end
  1535. end
  1536. end
  1537. FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5
  1538. end
  1539. for i = 1, 180 do
  1540. E = E + 1
  1541. Swait()
  1542. if E >= 35 then
  1543. E = 0
  1544. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
  1545. end
  1546. LOOP.Parent = FIELD
  1547. local CHILDREN = workspace:GetDescendants()
  1548. for index, CHILD in pairs(CHILDREN) do
  1549. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1550. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1551. if HUM then
  1552. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1553. if TORSO then
  1554. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
  1555. for _, c in pairs(CHILD:GetChildren()) do
  1556. if c:IsA("BasePart") then
  1557. local bv = Instance.new("BodyVelocity")
  1558. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1559. bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
  1560. bv.Parent = c
  1561. Debris:AddItem(bv,0.05)
  1562. end
  1563. end
  1564. HUM.Health = HUM.Health - 0.3
  1565. end
  1566. end
  1567. end
  1568. end
  1569. end
  1570. end
  1571. ApplyAoE(FIELD.Position,40,15,20,375,false)
  1572. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = FIELD.Size, Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 231917744, SoundPitch = 1, SoundVolume = 6})
  1573. for i = 1, 5 do
  1574. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIELD.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1575. end
  1576. FIELD:remove()
  1577. end))
  1578. elseif RANDOMEFFECT == 5 then
  1579. end
  1580. wait(0.5)
  1581. for i = 1, 25 do
  1582. Swait()
  1583. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0))
  1584. end
  1585. PANDORASBOX:remove()
  1586. RINGSPIN = false
  1587. end))
  1588. ATTACK = false
  1589. Rooted = false
  1590. end
  1591. end
  1592.  
  1593.  
  1594. --//=================================\\
  1595. --|| ASSIGN THINGS TO KEYS
  1596. --\\=================================//
  1597.  
  1598. function MouseDown(Mouse)
  1599. HOLD = true
  1600. if ATTACK == false then
  1601. end
  1602. end
  1603.  
  1604. function MouseUp(Mouse)
  1605. HOLD = false
  1606. end
  1607.  
  1608. function KeyDown(Key)
  1609. KEYHOLD = true
  1610. if Key == "" and ATTACK == false then
  1611. MagicMissiles()
  1612. end
  1613.  
  1614. if Key == "b" and ATTACK == false then
  1615. TimesUp()
  1616. end
  1617.  
  1618. if Key == "c" and ATTACK == false then
  1619. GoldPunch()
  1620. end
  1621.  
  1622. if Key == "v" and ATTACK == false then
  1623. WarpMeteor()
  1624. end
  1625.  
  1626. if Key == "x" and ATTACK == false then
  1627. PandorasBox()
  1628. end
  1629.  
  1630. if Key == "t" and ATTACK == false then
  1631. Taunt()
  1632. end
  1633. if Key == "g" and ATTACK == false then
  1634. TimeStop()
  1635. end
  1636. end
  1637. function KeyUp(Key)
  1638. KEYHOLD = false
  1639. end
  1640.  
  1641. Mouse.Button1Down:connect(function(NEWKEY)
  1642. MouseDown(NEWKEY)
  1643. end)
  1644. Mouse.Button1Up:connect(function(NEWKEY)
  1645. MouseUp(NEWKEY)
  1646. end)
  1647. Mouse.KeyDown:connect(function(NEWKEY)
  1648. KeyDown(NEWKEY)
  1649. end)
  1650. Mouse.KeyUp:connect(function(NEWKEY)
  1651. KeyUp(NEWKEY)
  1652. end)
  1653.  
  1654. --//=================================\\
  1655. --\\=================================//
  1656.  
  1657.  
  1658. function unanchor()
  1659. if UNANCHOR == true then
  1660. RootPart.Anchored = false
  1661. end
  1662. g = Character:GetChildren()
  1663. for i = 1, #g do
  1664. if g[i].ClassName == "Part" and g[i] ~= RootPart then
  1665. g[i].Anchored = false
  1666. end
  1667. end
  1668. g = Weapon:GetChildren()
  1669. for i = 1, #g do
  1670. if g[i].ClassName == "Part" then
  1671. g[i].Anchored = false
  1672. end
  1673. end
  1674. end
  1675.  
  1676.  
  1677. --//=================================\\
  1678. --|| WRAP THE WHOLE SCRIPT UP
  1679. --\\=================================//
  1680.  
  1681. Humanoid.Changed:connect(function(Jump)
  1682. if Jump == "Jump" and (Disable_Jump == true) then
  1683. Humanoid.Jump = false
  1684. end
  1685. end)
  1686.  
  1687. while true do
  1688. Swait()
  1689. script.Parent = WEAPONGUI
  1690. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1691. v:Stop();
  1692. end
  1693. ANIMATE.Parent = nil
  1694. SINE = SINE + CHANGE*1.5
  1695. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1696. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1697. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  1698. local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
  1699. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1700. 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)
  1701. 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)
  1702. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1703. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1704. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1705. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1706. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1707. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1708. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1709. end
  1710. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1711. ANIM = "Jump"
  1712. if ATTACK == false then
  1713. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1714. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1715. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1716. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1717. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
  1718. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed)
  1719. end
  1720. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1721. ANIM = "Fall"
  1722. if ATTACK == false then
  1723. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1724. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1725. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1726. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1727. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  1728. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed)
  1729. end
  1730. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1731. ANIM = "Idle"
  1732. if ATTACK == false then
  1733. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1734. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1735. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 1*SIZE, -0.3*SIZE) * ANGLES(RAD(0.98), RAD(-119.59 + 2.5 * SIN(SINE / 25)), RAD(-175.39 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1736. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.3*SIZE) * ANGLES(RAD(9.71), RAD(3.14 - -2.5 * SIN(SINE / 12)), RAD(0.2 - -2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1737. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1738. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1739. end
  1740. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1741. ANIM = "Walk"
  1742. if ATTACK == false then
  1743. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1744. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed)
  1745. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(45), RAD(-10 + 2.5 * SIN(SINE / 12)), RAD(-75 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1746. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.2*SIZE, -0.4*SIZE) * ANGLES(RAD(50), RAD(10 - 2.5 * SIN(SINE / 12)), RAD(75 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1747. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1748. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1749. end
  1750. end
  1751. unanchor()
  1752. Humanoid.MaxHealth = "inf"
  1753. Humanoid.Health = "inf"
  1754. if Rooted == false then
  1755. Disable_Jump = false
  1756. Humanoid.WalkSpeed = Speed
  1757. elseif Rooted == true then
  1758. Disable_Jump = true
  1759. Humanoid.WalkSpeed = 0
  1760. end
  1761. for _, c in pairs(Character:GetChildren()) do
  1762. if c.ClassName == "Part" and c.Name ~= "Detail" then
  1763. c.Material = "Fabric"
  1764. if c:FindFirstChildOfClass("ParticleEmitter") then
  1765. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1766. end
  1767. if c ~= Head then
  1768. c.Color = C3(0,0,0)
  1769. else
  1770. c.Color = C3(1,1,1)
  1771. end
  1772. if c == Head then
  1773. if c:FindFirstChild("face") then
  1774. c.face:remove()
  1775. end
  1776. end
  1777. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1778. c:remove()
  1779. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1780. c:remove()
  1781. end
  1782. end
  1783. sick.SoundId = "rbxassetid://"..SONG
  1784. sick.Looped = true
  1785. sick.Pitch = 1
  1786. sick.Volume = 5
  1787. sick.Parent = Torso
  1788. sick:Resume()
  1789. --sick.Playing = false
  1790. Humanoid.Name = "Injustice = "..Player.Name
  1791. end
  1792.  
  1793. --//=================================\\
  1794. --\\=================================//
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800. --//====================================================\\--
  1801. --|| END OF SCRIPT
  1802. --\\====================================================//--
Add Comment
Please, Sign In to add comment