Advertisement
bmrx13

void glove (snatch and smash them skids) fe

May 31st, 2018
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.83 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. local rp = RealPlayer
  8. script.Parent = rp.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent then
  34. for _,f in pairs(t.Functions) do
  35. f(...)
  36. end
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=rp then return end
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. if not io.isMouse then
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  52. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local Mouse = Player:GetMouse()
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88.  
  89. ----Sandboxed game object that allows the usage of client-side methods and services
  90. --Real game object
  91. local _rg = game
  92.  
  93. --Metatable for fake service
  94. local fsmt = {
  95. __index = function(self,k)
  96. local s = rawget(self,"_RealService")
  97. if s then
  98. return typeof(s[k])=="function"
  99. and function(_,...)return s[k](s,...)end or s[k]
  100. end
  101. end,
  102. __newindex = function(self,k,v)
  103. local s = rawget(self,"_RealService")
  104. if s then s[k]=v end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return rawget(self,s) or _rg:GetService(s)
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. RunService = FakeService({
  123. _btrs = {},
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132. }
  133. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  134. g.service = g.GetService
  135. FakeService(g,game)
  136. --Changing owner to fake player object to support owner:GetMouse()
  137. game,owner = g,g.Players.LocalPlayer
  138. end
  139.  
  140. wait(0.2)
  141.  
  142.  
  143.  
  144. Player = game:GetService("Players").LocalPlayer
  145. PlayerGui = Player.PlayerGui
  146. Cam = workspace.CurrentCamera
  147. Backpack = Player.Backpack
  148. Character = Player.Character
  149. Humanoid = Character.Humanoid
  150. Mouse = Player:GetMouse()
  151. RootPart = Character["HumanoidRootPart"]
  152. Torso = Character["Torso"]
  153. Head = Character["Head"]
  154. RightArm = Character["Right Arm"]
  155. LeftArm = Character["Left Arm"]
  156. RightLeg = Character["Right Leg"]
  157. LeftLeg = Character["Left Leg"]
  158. RootJoint = RootPart["RootJoint"]
  159. Neck = Torso["Neck"]
  160. RightShoulder = Torso["Right Shoulder"]
  161. LeftShoulder = Torso["Left Shoulder"]
  162. RightHip = Torso["Right Hip"]
  163. LeftHip = Torso["Left Hip"]
  164. local sick = Instance.new("Sound",Character)
  165. sick.SoundId = "rbxassetid://1117396305"
  166. sick.Looped = true
  167. sick.Pitch = 1
  168. sick.Volume = 1
  169. sick:Play()
  170.  
  171. IT = Instance.new
  172. CF = CFrame.new
  173. VT = Vector3.new
  174. RAD = math.rad
  175. C3 = Color3.new
  176. UD2 = UDim2.new
  177. BRICKC = BrickColor.new
  178. ANGLES = CFrame.Angles
  179. EULER = CFrame.fromEulerAnglesXYZ
  180. COS = math.cos
  181. ACOS = math.acos
  182. SIN = math.sin
  183. ASIN = math.asin
  184. ABS = math.abs
  185. MRANDOM = math.random
  186. FLOOR = math.floor
  187.  
  188. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  189. local NEWMESH = IT(MESH)
  190. if MESH == "SpecialMesh" then
  191. NEWMESH.MeshType = MESHTYPE
  192. if MESHID ~= "nil" and MESHID ~= "" then
  193. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  194. end
  195. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  196. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  197. end
  198. end
  199. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  200. NEWMESH.Scale = SCALE
  201. NEWMESH.Parent = PARENT
  202. return NEWMESH
  203. end
  204.  
  205. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  206. local NEWPART = IT("Part")
  207. NEWPART.formFactor = FORMFACTOR
  208. NEWPART.Reflectance = REFLECTANCE
  209. NEWPART.Transparency = TRANSPARENCY
  210. NEWPART.CanCollide = false
  211. NEWPART.Locked = true
  212. NEWPART.Anchored = true
  213. if ANCHOR == false then
  214. NEWPART.Anchored = false
  215. end
  216. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  217. NEWPART.Name = NAME
  218. NEWPART.Size = SIZE
  219. NEWPART.Position = Torso.Position
  220. NEWPART.Material = MATERIAL
  221. NEWPART:BreakJoints()
  222. NEWPART.Parent = PARENT
  223. return NEWPART
  224. end
  225.  
  226. --//=================================\\
  227. --|| CUSTOMIZATION
  228. --\\=================================//
  229.  
  230. Player_Size = 1 --Size of the player.
  231. Animation_Speed = 2
  232. Frame_Speed = 1 / 30 -- (1 / 30) OR (1 / 60)
  233.  
  234. local Speed = 16
  235. local Effects2 = {}
  236.  
  237. --//=================================\\
  238. --|| END OF CUSTOMIZATION
  239. --\\=================================//
  240.  
  241. local function weldBetween(a, b)
  242. local weldd = Instance.new("ManualWeld")
  243. weldd.Part0 = a
  244. weldd.Part1 = b
  245. weldd.C0 = CFrame.new()
  246. weldd.C1 = b.CFrame:inverse() * a.CFrame
  247. weldd.Parent = a
  248. return weldd
  249. end
  250.  
  251. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  252. local acs = Instance.new("Part")
  253. acs.CanCollide = false
  254. acs.Anchored = false
  255. acs.Size = Vector3.new(0,0,0)
  256. acs.CFrame = attachmentpart.CFrame
  257. acs.Parent = Character
  258. acs.BrickColor = color
  259. local meshs = Instance.new("SpecialMesh")
  260. meshs.MeshId = mesh
  261. meshs.TextureId = texture
  262. meshs.Parent = acs
  263. meshs.Scale = scale
  264. meshs.Offset = offset
  265. weldBetween(attachmentpart,acs)
  266. end
  267.  
  268. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  269. if TYPE == "Gem" then
  270. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  271. acs.Anchored = false
  272. acs.CanCollide = false
  273. acs.CFrame = PART.CFrame
  274. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  275. weldBetween(PART,acs)
  276. elseif TYPE == "Skull" then
  277. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  278. acs.Anchored = false
  279. acs.CanCollide = false
  280. acs.CFrame = PART.CFrame
  281. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  282. weldBetween(PART,acs)
  283. elseif TYPE == "Eye" then
  284. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  285. acs.Anchored = false
  286. acs.CanCollide = false
  287. acs.CFrame = PART.CFrame
  288. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  289. weldBetween(PART,acs)
  290. end
  291. end
  292.  
  293. --//=================================\\
  294. --|| USEFUL VALUES
  295. --\\=================================//
  296.  
  297. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  298. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  299. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  300. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  301. local CHANGEDEFENSE = 0
  302. local CHANGEDAMAGE = 0
  303. local CHANGEMOVEMENT = 0
  304. local ANIM = "Idle"
  305. local ATTACK = false
  306. local EQUIPPED = false
  307. local HOLD = false
  308. local COMBO = 1
  309. local Rooted = false
  310. local SINE = 0
  311. local KEYHOLD = false
  312. local CHANGE = 2 / Animation_Speed
  313. local WALKINGANIM = false
  314. local WALK = 0
  315. local VALUE1 = false
  316. local VALUE2 = false
  317. local GRABBED = nil
  318. local TORS = nil
  319. local ROBLOXIDLEANIMATION = IT("Animation")
  320. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  321. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  322. --ROBLOXIDLEANIMATION.Parent = Humanoid
  323. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  324. WEAPONGUI.Name = "Weapon GUI"
  325. local Weapon = IT("Model")
  326. Weapon.Name = "Adds"
  327. local Effects = IT("Folder", Weapon)
  328. Effects.Name = "Effects"
  329. local ANIMATOR = Humanoid.Animator
  330. local ANIMATE = Character.Animate
  331. local WELD = nil
  332. local TRUEFLOOR = nil
  333. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  334. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  335. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  336. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  337. local UNANCHOR = true
  338.  
  339. local SKILLTEXTCOLOR = BRICKC"Dark indigo".Color
  340.  
  341. --//=================================\\
  342. --\\=================================//
  343.  
  344.  
  345. --//=================================\\
  346. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  347. --\\=================================//
  348.  
  349. ArtificialHB = Instance.new("BindableEvent", script)
  350. ArtificialHB.Name = "ArtificialHB"
  351.  
  352. script:WaitForChild("ArtificialHB")
  353.  
  354. frame = Frame_Speed
  355. tf = 0
  356. allowframeloss = false
  357. tossremainder = false
  358. lastframe = tick()
  359. script.ArtificialHB:Fire()
  360.  
  361. game:GetService("RunService").Heartbeat:connect(function(s, p)
  362. tf = tf + s
  363. if tf >= frame then
  364. if allowframeloss then
  365. script.ArtificialHB:Fire()
  366. lastframe = tick()
  367. else
  368. for i = 1, math.floor(tf / frame) do
  369. script.ArtificialHB:Fire()
  370. end
  371. lastframe = tick()
  372. end
  373. if tossremainder then
  374. tf = 0
  375. else
  376. tf = tf - frame * math.floor(tf / frame)
  377. end
  378. end
  379. end)
  380.  
  381. --//=================================\\
  382. --\\=================================//
  383.  
  384.  
  385.  
  386.  
  387.  
  388. --//=================================\\
  389. --|| SOME FUNCTIONS
  390. --\\=================================//
  391.  
  392. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  393. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  394. end
  395.  
  396. function PositiveAngle(NUMBER)
  397. if NUMBER >= 0 then
  398. NUMBER = 0
  399. end
  400. return NUMBER
  401. end
  402.  
  403. function NegativeAngle(NUMBER)
  404. if NUMBER <= 0 then
  405. NUMBER = 0
  406. end
  407. return NUMBER
  408. end
  409.  
  410. function Swait(NUMBER)
  411. if NUMBER == 0 or NUMBER == nil then
  412. ArtificialHB.Event:wait()
  413. else
  414. for i = 1, NUMBER do
  415. ArtificialHB.Event:wait()
  416. end
  417. end
  418. end
  419.  
  420. function QuaternionFromCFrame(cf)
  421. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  422. local trace = m00 + m11 + m22
  423. if trace > 0 then
  424. local s = math.sqrt(1 + trace)
  425. local recip = 0.5 / s
  426. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  427. else
  428. local i = 0
  429. if m11 > m00 then
  430. i = 1
  431. end
  432. if m22 > (i == 0 and m00 or m11) then
  433. i = 2
  434. end
  435. if i == 0 then
  436. local s = math.sqrt(m00 - m11 - m22 + 1)
  437. local recip = 0.5 / s
  438. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  439. elseif i == 1 then
  440. local s = math.sqrt(m11 - m22 - m00 + 1)
  441. local recip = 0.5 / s
  442. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  443. elseif i == 2 then
  444. local s = math.sqrt(m22 - m00 - m11 + 1)
  445. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  446. end
  447. end
  448. end
  449.  
  450. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  451. local xs, ys, zs = x + x, y + y, z + z
  452. local wx, wy, wz = w * xs, w * ys, w * zs
  453. local xx = x * xs
  454. local xy = x * ys
  455. local xz = x * zs
  456. local yy = y * ys
  457. local yz = y * zs
  458. local zz = z * zs
  459. 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))
  460. end
  461.  
  462. function QuaternionSlerp(a, b, t)
  463. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  464. local startInterp, finishInterp;
  465. if cosTheta >= 0.0001 then
  466. if (1 - cosTheta) > 0.0001 then
  467. local theta = ACOS(cosTheta)
  468. local invSinTheta = 1 / SIN(theta)
  469. startInterp = SIN((1 - t) * theta) * invSinTheta
  470. finishInterp = SIN(t * theta) * invSinTheta
  471. else
  472. startInterp = 1 - t
  473. finishInterp = t
  474. end
  475. else
  476. if (1 + cosTheta) > 0.0001 then
  477. local theta = ACOS(-cosTheta)
  478. local invSinTheta = 1 / SIN(theta)
  479. startInterp = SIN((t - 1) * theta) * invSinTheta
  480. finishInterp = SIN(t * theta) * invSinTheta
  481. else
  482. startInterp = t - 1
  483. finishInterp = t
  484. end
  485. end
  486. 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
  487. end
  488.  
  489. function Clerp(a, b, t)
  490. local qa = {QuaternionFromCFrame(a)}
  491. local qb = {QuaternionFromCFrame(b)}
  492. local ax, ay, az = a.x, a.y, a.z
  493. local bx, by, bz = b.x, b.y, b.z
  494. local _t = 1 - t
  495. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  496. end
  497.  
  498. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  499. local frame = IT("Frame")
  500. frame.BackgroundTransparency = TRANSPARENCY
  501. frame.BorderSizePixel = BORDERSIZEPIXEL
  502. frame.Position = POSITION
  503. frame.Size = SIZE
  504. frame.BackgroundColor3 = COLOR
  505. frame.BorderColor3 = BORDERCOLOR
  506. frame.Name = NAME
  507. frame.Parent = PARENT
  508. return frame
  509. end
  510.  
  511. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  512. local label = IT("TextLabel")
  513. label.BackgroundTransparency = 1
  514. label.Size = UD2(1, 0, 1, 0)
  515. label.Position = UD2(0, 0, 0, 0)
  516. label.TextColor3 = TEXTCOLOR
  517. label.TextStrokeTransparency = STROKETRANSPARENCY
  518. label.TextTransparency = TRANSPARENCY
  519. label.FontSize = TEXTFONTSIZE
  520. label.Font = TEXTFONT
  521. label.BorderSizePixel = BORDERSIZEPIXEL
  522. label.TextScaled = false
  523. label.Text = TEXT
  524. label.Name = NAME
  525. label.Parent = PARENT
  526. return label
  527. end
  528.  
  529. function NoOutlines(PART)
  530. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  531. end
  532.  
  533.  
  534. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  535. local NEWWELD = IT(TYPE)
  536. NEWWELD.Part0 = PART0
  537. NEWWELD.Part1 = PART1
  538. NEWWELD.C0 = C0
  539. NEWWELD.C1 = C1
  540. NEWWELD.Parent = PARENT
  541. return NEWWELD
  542. end
  543.  
  544. function CreateSound(ID, PARENT, VOLUME, PITCH)
  545. local NEWSOUND = nil
  546. coroutine.resume(coroutine.create(function()
  547. NEWSOUND = IT("Sound", PARENT)
  548. NEWSOUND.Volume = VOLUME
  549. NEWSOUND.Pitch = PITCH
  550. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  551. Swait()
  552. NEWSOUND:play()
  553. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  554. end))
  555. return NEWSOUND
  556. end
  557.  
  558. function CFrameFromTopBack(at, top, back)
  559. local right = top:Cross(back)
  560. 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)
  561. end
  562.  
  563. function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  564. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  565. local mesh = IT("SpecialMesh",wave)
  566. mesh.MeshType = "FileMesh"
  567. mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  568. mesh.Scale = SIZE
  569. mesh.Offset = VT(0,0,0)
  570. wave.CFrame = CFRAME
  571. coroutine.resume(coroutine.create(function(PART)
  572. for i = 1, WAIT do
  573. Swait()
  574. mesh.Scale = mesh.Scale + GROW
  575. if DOESROT == true then
  576. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  577. end
  578. wave.Transparency = wave.Transparency + (0.5/WAIT)
  579. if wave.Transparency > 0.99 then
  580. wave:remove()
  581. end
  582. end
  583. end))
  584. end
  585.  
  586. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  587. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  588. local mesh = IT("SpecialMesh",wave)
  589. mesh.MeshType = "Sphere"
  590. mesh.Scale = SIZE
  591. mesh.Offset = VT(0,0,0)
  592. wave.CFrame = CFRAME
  593. coroutine.resume(coroutine.create(function(PART)
  594. for i = 1, WAIT do
  595. Swait()
  596. mesh.Scale = mesh.Scale + GROW
  597. wave.Transparency = wave.Transparency + (1/WAIT)
  598. if wave.Transparency > 0.99 then
  599. wave:remove()
  600. end
  601. end
  602. end))
  603. end
  604.  
  605. function MakeForm(PART,TYPE)
  606. if TYPE == "Cyl" then
  607. local MSH = IT("CylinderMesh",PART)
  608. elseif TYPE == "Ball" then
  609. local MSH = IT("SpecialMesh",PART)
  610. MSH.MeshType = "Sphere"
  611. elseif TYPE == "Wedge" then
  612. local MSH = IT("SpecialMesh",PART)
  613. MSH.MeshType = "Wedge"
  614. end
  615. end
  616.  
  617. function CheckTableForString(Table, String)
  618. for i, v in pairs(Table) do
  619. if string.find(string.lower(String), string.lower(v)) then
  620. return true
  621. end
  622. end
  623. return false
  624. end
  625.  
  626. function CheckIntangible(Hit)
  627. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  628. if Hit and Hit.Parent then
  629. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  630. return true
  631. end
  632. end
  633. return false
  634. end
  635.  
  636. Debris = game:GetService("Debris")
  637.  
  638. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  639. local Direction = CFrame.new(StartPos, Vec).lookVector
  640. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  641. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  642. if RayHit and CheckIntangible(RayHit) then
  643. if DelayIfHit then
  644. wait()
  645. end
  646. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  647. end
  648. return RayHit, RayPos, RayNormal
  649. end
  650.  
  651. function turnto(position)
  652. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  653. end
  654.  
  655. --//=================================\\
  656. --|| SPEECH
  657. --\\=================================//
  658.  
  659. function chatfunc(text,waitt)
  660. local chat = coroutine.wrap(function()
  661. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  662. Character:FindFirstChild("TalkingBillBoard"):destroy()
  663. end
  664. local naeeym2 = Instance.new("BillboardGui",Character)
  665. naeeym2.Size = UDim2.new(0,100,0,40)
  666. naeeym2.StudsOffset = Vector3.new(0,5,0)
  667. naeeym2.Adornee = Character.Head
  668. naeeym2.Name = "TalkingBillBoard"
  669. naeeym2.AlwaysOnTop = true
  670. local tecks2 = Instance.new("TextLabel",naeeym2)
  671. tecks2.BackgroundTransparency = 1
  672. tecks2.BorderSizePixel = 0
  673. tecks2.Text = ""
  674. tecks2.Font = "SciFi"
  675. tecks2.TextSize = 30
  676. tecks2.TextStrokeTransparency = 1
  677. tecks2.TextColor3 = SKILLTEXTCOLOR
  678. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  679. tecks2.Size = UDim2.new(1,0,0.5,0)
  680. for i = 1,string.len(text),1 do
  681. tecks2.Text = string.sub(text,1,i)
  682. Swait()
  683. end
  684. wait(waitt)
  685. coroutine.resume(coroutine.create(function()
  686. for i = 1, 10 do
  687. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  688. Swait()
  689. end
  690. naeeym2:Destroy()
  691. end))
  692. end)
  693. chat()
  694. end
  695.  
  696. --//=================================\\
  697. --|| WEAPON CREATION
  698. --\\=================================//
  699.  
  700. local COLOR1 = "Institutional white"
  701. local COLOR = "Really black"
  702.  
  703. local part = CreatePart(3, Weapon, "Marble", 0, 0, COLOR, "Gauntlet Part", VT(1.01,0.2,1.01),false)
  704. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, 0.8, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  705. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Mid gray", "Gauntlet Part", VT(1.005,0.25,1.005),false)
  706. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, 0.8, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  707. local part = CreatePart(3, Weapon, "Marble", 0, 0, COLOR, "Gauntlet Part", VT(1.01,0.1,1.01),false)
  708. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  709. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Mid gray", "Gauntlet Part", VT(1.005,0.15,1.005),false)
  710. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  711.  
  712. local part = CreatePart(3, Weapon, "Marble", 0, 0, COLOR, "Gauntlet Part", VT(0.28,1.01,0.28),false)
  713. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, 0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  714. MakeForm(part,"Cyl")
  715. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Mid gray", "Gauntlet Part", VT(0.33,1.005,0.33),false)
  716. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, 0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  717. MakeForm(part,"Cyl")
  718. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Alder", "Gauntlet Part", VT(0.2,1.015,0.2),false)
  719. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, 0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  720. MakeForm(part,"Cyl")
  721.  
  722. local part = CreatePart(3, Weapon, "Marble", 0, 0, COLOR, "Gauntlet Part", VT(1.01,0.2,1.01),false)
  723. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.8, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  724. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Mid gray", "Gauntlet Part", VT(1.005,0.25,1.005),false)
  725. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.8, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  726.  
  727. local part = CreatePart(3, Weapon, "Marble", 0, 0, COLOR, "Gauntlet Part", VT(0.28,1.01,0.28),false)
  728. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  729. MakeForm(part,"Cyl")
  730. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Mid gray", "Gauntlet Part", VT(0.33,1.005,0.33),false)
  731. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  732. MakeForm(part,"Cyl")
  733. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Alder", "Gauntlet Part", VT(0.2,1.015,0.2),false)
  734. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  735. MakeForm(part,"Cyl")
  736.  
  737. local part = CreatePart(3, Weapon, "Marble", 0, 0, COLOR, "Gauntlet Part", VT(0.4,1.5,1.01),false)
  738. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(-0.2, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  739. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Mid gray", "Gauntlet Part", VT(0.45,1.5,1.005),false)
  740. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(-0.2, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  741.  
  742. local part = CreatePart(3, Weapon, "Marble", 0, 0, COLOR, "Gauntlet Part", VT(0.2,1.5,1.01),false)
  743. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.3, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  744. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Mid gray", "Gauntlet Part", VT(0.25,1.5,1.005),false)
  745. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.3, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  746.  
  747. local part = CreatePart(3, Weapon, "Marble", 0, 1, "Mid gray", "Gauntlet Part", VT(0,0,0),false)
  748. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.65, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  749.  
  750. local OFFSET = 0.3
  751.  
  752. for i = 1, 3 do
  753. local PART = CreatePart(3, Weapon, "Marble", 0, 1, COLOR, "ClawPart", VT(0,0,0),false)
  754. local weld = CreateWeldOrSnapOrMotor("Weld", PART, RightArm, PART, CF(-0.35, -1.25, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, OFFSET, 0))
  755. for i = 1, 12 do
  756. local RingPiece = CreatePart(3, Weapon, "Marble", 0, 0, COLOR, "ClawPart", VT(0.15-(i/120),0.15-(i/120),0.2),false)
  757. local RingWeld = CreateWeldOrSnapOrMotor("Weld", RingPiece, PART, RingPiece, CF(0, 0, 0) * ANGLES(RAD(0), RAD(-35+i*8), RAD(0)), CF(0, 0, 0) * CF(-1, 0, 0))
  758. end
  759. OFFSET = OFFSET - 0.3
  760. end
  761.  
  762. local CLAW = CreatePart(3, Weapon, "Marble", 0, 1, COLOR, "GrabPart", VT(0.4,0.2,0.4),false)
  763. CLAW.CanCollide = true
  764. local weld = CreateWeldOrSnapOrMotor("Weld", CLAW, RightArm, CLAW, CF(0, -1.25, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, OFFSET, 0))
  765.  
  766. local GRAB = CreatePart(3, Weapon, "Marble", 0, 1, COLOR, "GrabPart", VT(0,0,0))
  767.  
  768. local part = CreatePart(3, Weapon, "Marble", 0, 0, COLOR, "Gauntlet Part", VT(0.7,0.4,1.01),false)
  769. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.15, -0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  770. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Mid gray", "Gauntlet Part", VT(0.65,0.45,1.005),false)
  771. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.15, -0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  772. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Really black", "Gauntlet Part", VT(0.5,0.5,0.5),false)
  773. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.15, -0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  774. MakeForm(part,"Cyl")
  775. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Alder", "Gauntlet Part", VT(0.4,0.51,0.4),false)
  776. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.15, -0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  777. MakeForm(part,"Cyl")
  778. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Mid gray", "Gauntlet Part", VT(0.45,0.505,0.45),false)
  779. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.15, -0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  780. MakeForm(part,"Cyl")
  781.  
  782. for _, c in pairs(Weapon:GetChildren()) do
  783. if c.ClassName == "Part" then
  784. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  785. end
  786. end
  787.  
  788. Weapon.Parent = Character
  789.  
  790. Humanoid.Died:connect(function()
  791. ATTACK = true
  792. end)
  793.  
  794. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  795. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  796. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  797. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  798. local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  799.  
  800. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Ward", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0.7, "Text 1")
  801. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warp", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0.7, "Text 2")
  802. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Earth shatter", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0.7, "Text 3")
  803. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Void mine", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0.7, "Text 4")
  804. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[V] Reaper Crash", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 0.7, "Text 4")
  805.  
  806. --//=================================\\
  807. --|| DAMAGE FUNCTIONS
  808. --\\=================================//
  809.  
  810. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  811. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  812. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  813. local BODYGYRO = IT("BodyGyro", STATPART)
  814. local BODYPOSITION = IT("BodyPosition", STATPART)
  815. BODYPOSITION.P = 2000
  816. BODYPOSITION.D = 100
  817. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  818. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  819. game:GetService("Debris"):AddItem(STATPART ,5)
  820. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  821. BILLBOARDGUI.Adornee = STATPART
  822. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  823. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  824. BILLBOARDGUI.AlwaysOnTop = false
  825. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  826. TEXTLABEL.BackgroundTransparency = 1
  827. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  828. TEXTLABEL.Text = TEXT
  829. TEXTLABEL.Font = "SciFi"
  830. TEXTLABEL.FontSize="Size42"
  831. TEXTLABEL.TextColor3 = C3(1,1,1)
  832. TEXTLABEL.TextStrokeTransparency = 1
  833. TEXTLABEL.TextScaled = true
  834. TEXTLABEL.TextWrapped = true
  835. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  836. if LABELTYPE == "Normal" then
  837. for i = 1, 30 do
  838. Swait()
  839. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  840. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  841. end
  842. elseif LABELTYPE == "Debuff" then
  843. for i = 1, 30 do
  844. Swait()
  845. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  846. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  847. end
  848. elseif LABELTYPE == "Shock" then
  849. local ORIGIN = STATPART.Position
  850. for i = 1, 30 do
  851. Swait()
  852. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  853. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  854. end
  855. end
  856. THEPART.Parent = nil
  857. end),STATPART, BODYPOSITION, TEXTLABEL)
  858. end
  859.  
  860. --//=================================\\
  861. --|| DAMAGING
  862. --\\=================================//
  863.  
  864. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  865. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  866. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  867. local dmg = math.random(min,max)
  868. if humanoid.Health > 0 then
  869. if beserk == true then
  870. humanoid.Health = 0
  871. else
  872. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  873. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  874. if math.random(1,100) < critrate+1 then
  875. humanoid.Health = humanoid.Health - dmg*critmultiplier
  876. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  877. else
  878. humanoid.Health = humanoid.Health - dmg
  879. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  880. end
  881. local defence = Instance.new("BoolValue",hit.Parent)
  882. defence.Name = ("HitBy"..Player.Name)
  883. game:GetService("Debris"):AddItem(defence, 0.5)
  884. end
  885. end
  886. end
  887. end
  888.  
  889. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  890. local dmg = math.random(min,max)
  891. for i,v in ipairs(workspace:GetChildren()) do
  892. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  893. local body = v:GetChildren()
  894. for part = 1, #body do
  895. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  896. if(body[part].Position - position).Magnitude < radius then
  897. if v.ClassName == "Model" then
  898. if v:FindFirstChild("Humanoid") then
  899. if v.Humanoid.Health ~= 0 then
  900. if CanBeDodgedByJumping == true then
  901. if body[part].Position.Y < position.Y+5 then
  902. if math.random(1,100) < critrate+1 then
  903. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  904. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  905. else
  906. v.Humanoid.Health = v.Humanoid.Health - dmg
  907. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  908. end
  909. local defence = Instance.new("BoolValue",v)
  910. defence.Name = ("HitBy"..Player.Name)
  911. end
  912. else
  913. if beserk == true then
  914. v.Humanoid.Health = 0
  915. end
  916. if math.random(1,100) < critrate+1 then
  917. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  918. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  919. else
  920. v.Humanoid.Health = v.Humanoid.Health - dmg
  921. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  922. end
  923. local defence = Instance.new("BoolValue",v)
  924. defence.Name = ("HitBy"..Player.Name)
  925. end
  926. end
  927. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  928. end
  929. end
  930. end
  931. end
  932. end
  933. end
  934. if v:FindFirstChild("HitBy"..Player.Name) then
  935. v:FindFirstChild("HitBy"..Player.Name):remove()
  936. end
  937. end
  938. end
  939.  
  940. function AoEStun(POS,RANGE,LAST)
  941. for i,v in ipairs(workspace:GetChildren()) do
  942. if v:FindFirstChild("StunnedBy"..Player.Name) == nil then
  943. local body = v:GetChildren()
  944. for part = 1, #body do
  945. if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  946. if(body[part].Position - POS).Magnitude < RANGE then
  947. if v.ClassName == "Model" then
  948. if v:FindFirstChild("Humanoid") then
  949. if v.Humanoid.Health ~= 0 then
  950. Stun(v.Humanoid,LAST)
  951. local defence = Instance.new("BoolValue",v)
  952. defence.Name = ("StunnedBy"..Player.Name)
  953. game:GetService("Debris"):AddItem(defence, 0.1)
  954. end
  955. end
  956. end
  957. end
  958. end
  959. end
  960. end
  961. end
  962. end
  963.  
  964. function Stun(HUMANOID,LAST)
  965. if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then
  966. HUMANOID.PlatformStand = true
  967. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  968. defence.Name = ("StunnedBy"..Player.Name)
  969. game:GetService("Debris"):AddItem(defence, LAST)
  970. if HUMANOID.Parent:FindFirstChild("Head") then
  971. StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3))
  972. end
  973. coroutine.resume(coroutine.create(function()
  974. Swait(LAST*100)
  975. HUMANOID.PlatformStand = false
  976. end))
  977. end
  978. end
  979.  
  980. --//=================================\\
  981. --|| ATTACK FUNCTIONS AND STUFF
  982. --\\=================================//
  983.  
  984. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  985. if FLOOR ~= nil then
  986. coroutine.resume(coroutine.create(function()
  987. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  988. PART.CFrame = CF(POSITION)
  989. for i = 1, 45 do
  990. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  991. RingPiece.Material = FLOOR.Material
  992. RingPiece.Color = FLOOR.Color
  993. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  994. coroutine.resume(coroutine.create(function()
  995. Swait(SWAIT)
  996. RingPiece.Anchored = false
  997. end))
  998. end
  999. PART:remove()
  1000. end))
  1001. end
  1002. end
  1003.  
  1004. function Strike()
  1005. ATTACK = true
  1006. Rooted = false
  1007. for i=0, 0.5, 0.1 / Animation_Speed do
  1008. Swait()
  1009. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.25 / Animation_Speed)
  1010. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.2 / Animation_Speed)
  1011. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(35), RAD(45)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1012. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1013. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.25 / Animation_Speed)
  1014. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.25 / Animation_Speed)
  1015. end
  1016. CreateSound("588693579", RightArm, 3, 1)
  1017. for i=0, 0.25, 0.1 / Animation_Speed do
  1018. Swait()
  1019. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 2 / Animation_Speed)
  1020. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 2 / Animation_Speed)
  1021. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1022. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1023. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 2 / Animation_Speed)
  1024. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 2 / Animation_Speed)
  1025. end
  1026. AoEDamage(RightArm.CFrame*CF(0,-1,0).p,3,25,35,5,false,2,2,false)
  1027. for i=0, 0.4, 0.1 / Animation_Speed do
  1028. Swait()
  1029. MagicSphere(VT(1,1,1),5,RightArm.CFrame*CF(0,-1.5,0),"Lavender",VT(0.04,0.04,0.04))
  1030. MagicSphere(VT(0.8,0.8,0.8),5,RightArm.CFrame*CF(0,-1.5,0),"Really black",VT(0.04,0.04,0.04))
  1031. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 2 / Animation_Speed)
  1032. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 2 / Animation_Speed)
  1033. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1034. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1035. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 2 / Animation_Speed)
  1036. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 2 / Animation_Speed)
  1037. end
  1038. AoEDamage(RightArm.CFrame*CF(0,-1.5,0).p,6,55,55,15,false,2,2,false)
  1039. CreateSound("231917750", RightArm, 3, 1)
  1040. MagicSphere(VT(1,1,1),25,RightArm.CFrame*CF(0,-1.5,0),"Lavender",VT(0.4,0.4,0.4))
  1041. MagicSphere(VT(0.8,0.8,0.8),25,RightArm.CFrame*CF(0,-1.5,0),"Really black",VT(0.4,0.4,0.4))
  1042. for i=0, 1, 0.1 / Animation_Speed do
  1043. Swait()
  1044. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
  1045. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed)
  1046. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(45), RAD(45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1047. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1048. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 2 / Animation_Speed)
  1049. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 2 / Animation_Speed)
  1050. end
  1051. ATTACK = false
  1052. Rooted = false
  1053. end
  1054.  
  1055. function Ward()
  1056. ATTACK = true
  1057. Rooted = false
  1058. for i=0, 1, 0.1 / Animation_Speed do
  1059. Swait()
  1060. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1061. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.1 / Animation_Speed)
  1062. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1063. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1064. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.15 / Animation_Speed)
  1065. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.15 / Animation_Speed)
  1066. end
  1067. CreateSound("588738712", RightArm, 3, 1)
  1068. local HIT1 = CLAW.Touched:Connect(function(hit)
  1069. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  1070. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1071. if TORS ~= nil then
  1072. VALUE1 = true
  1073. hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  1074. CreateSound("233856097", RightArm, 3, 1)
  1075. CLAW.CanCollide = false
  1076. GRABBED = hit.Parent
  1077. weld = CreateWeldOrSnapOrMotor("Weld", GRAB, GRAB, TORS, CF(0, -1.25, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, OFFSET, 0))
  1078. end
  1079. end
  1080. end)
  1081. for i=0, 0.8, 0.1 / Animation_Speed do
  1082. Swait()
  1083. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(85)), 2 / Animation_Speed)
  1084. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-85)), 2 / Animation_Speed)
  1085. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(75)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1086. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1087. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-26), RAD(0)), 2 / Animation_Speed)
  1088. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(26), RAD(0)), 2 / Animation_Speed)
  1089. if VALUE1 == true then
  1090. break
  1091. end
  1092. end
  1093. HIT1:disconnect()
  1094. ATTACK = false
  1095. Rooted = false
  1096. end
  1097.  
  1098. function Warp()
  1099. ATTACK = true
  1100. Rooted = true
  1101. for i=0, 1, 0.1 / Animation_Speed do
  1102. Swait()
  1103. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1104. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1105. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1106. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1107. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1108. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1109. end
  1110. CreateSound("588734767", RootPart, 3, 2)
  1111. for i = 1, 10 do
  1112. g = Character:GetChildren()
  1113. for i = 1, #g do
  1114. if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then
  1115. g[i].Transparency = g[i].Transparency + 0.1
  1116. Head.face.Transparency = Head.face.Transparency + 0.1
  1117. elseif g[i].ClassName == "Accessory" then
  1118. g[i].Handle.Transparency = g[i].Handle.Transparency + 0.1
  1119. end
  1120. end
  1121. g = Weapon:GetChildren()
  1122. for i = 1, #g do
  1123. if g[i].ClassName == "Part" then
  1124. g[i].Transparency = g[i].Transparency + 0.1
  1125. end
  1126. end
  1127. Swait()
  1128. end
  1129. local ORIGINPOS = RootPart.Position
  1130. RootPart.CFrame = CF(VT(Mouse.Hit.p.X,RootPart.Position.Y,Mouse.Hit.p.Z),ORIGINPOS)
  1131. for i = 1, 10 do
  1132. g = Character:GetChildren()
  1133. for i = 1, #g do
  1134. if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then
  1135. g[i].Transparency = g[i].Transparency - 0.1
  1136. Head.face.Transparency = Head.face.Transparency - 0.1
  1137. elseif g[i].ClassName == "Accessory" then
  1138. g[i].Handle.Transparency = g[i].Handle.Transparency - 0.1
  1139. end
  1140. end
  1141. g = Weapon:GetChildren()
  1142. for i = 1, #g do
  1143. if g[i].ClassName == "Part" then
  1144. g[i].Transparency = g[i].Transparency - 0.1
  1145. end
  1146. end
  1147. Swait()
  1148. end
  1149. ATTACK = false
  1150. Rooted = false
  1151. end
  1152.  
  1153. function EarthShatter()
  1154. ATTACK = true
  1155. Rooted = true
  1156. local HitFloor = TRUEFLOOR
  1157. CLAW.CanCollide = false
  1158. UNANCHOR = false
  1159. RootPart.Anchored = true
  1160. CreateSound("588697034", RightArm, 3, 2)
  1161. for i=0, 1, 0.1 / Animation_Speed do
  1162. Swait()
  1163. CreateCrown(VT(2,1,2),5,RightArm.CFrame*CF(0,-0.6,0),true,2,"Dark indigo",VT(0,0,0))
  1164. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed)
  1165. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1166. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.05 / Animation_Speed)
  1167. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1168. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1169. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1170. end
  1171. for i=0, 1, 0.1 / Animation_Speed do
  1172. Swait()
  1173. CreateCrown(VT(2,1,2),5,RightArm.CFrame*CF(0,-0.6,0),true,2,"Dark indigo",VT(0,0,0))
  1174. CreateCrown(VT(3,1,3),5,RightArm.CFrame*CF(0,-1,0),true,-2,"Dark indigo",VT(0,0,0))
  1175. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed)
  1176. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1177. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.05 / Animation_Speed)
  1178. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1179. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1180. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1181. end
  1182. for i=0, 1, 0.1 / Animation_Speed do
  1183. Swait()
  1184. CreateCrown(VT(2,1,2),5,RightArm.CFrame*CF(0,-0.6,0),true,2,"Dark indigo",VT(0,0,0))
  1185. CreateCrown(VT(3,1,3),5,RightArm.CFrame*CF(0,-1,0),true,-2,"Dark indigo",VT(0,0,0))
  1186. CreateCrown(VT(4,1,4),5,RightArm.CFrame*CF(0,-1.4,0),true,2,"Dark indigo",VT(0,0,0))
  1187. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed)
  1188. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1189. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.05 / Animation_Speed)
  1190. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1191. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1192. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1193. end
  1194. for i=0, 0.15, 0.1 / Animation_Speed do
  1195. Swait()
  1196. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(-5), RAD(0)), 0.5 / Animation_Speed)
  1197. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1198. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.3, -0.3) * ANGLES(RAD(0), RAD(0), RAD(8)) * RIGHTSHOULDERC0, 0.9)
  1199. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1200. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1201. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1202. end
  1203. CreateSound("289842971", RightArm, 10, 1)
  1204. CreateDebreeRing(HitFloor,RightArm.Position+VT(0,-1,0),2,VT(3,3,3),35)
  1205. AoEDamage(RightArm.CFrame*CF(0,-1,0).p,15,35,55,5,false,2,2,false)
  1206. for i=0, 1.5, 0.1 / Animation_Speed do
  1207. Swait()
  1208. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(-5), RAD(0)), 0.5 / Animation_Speed)
  1209. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1210. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.3, -0.3) * ANGLES(RAD(0), RAD(0), RAD(8)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1211. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1212. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1213. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1214. end
  1215. if VALUE1 == false then
  1216. CLAW.CanCollide = true
  1217. end
  1218. UNANCHOR = true
  1219. RootPart.Anchored = false
  1220. ATTACK = false
  1221. Rooted = false
  1222. end
  1223.  
  1224. function VoidMine()
  1225. ATTACK = true
  1226. Rooted = true
  1227. for i=0, 2, 0.1 / Animation_Speed do
  1228. Swait()
  1229. turnto(Mouse.Hit.p)
  1230. MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-10,-5),MRANDOM(-5,5)).p,RightArm.Position),"Dark indigo",VT(0.001,0.001,1),0)
  1231. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(85)), 0.15 / Animation_Speed)
  1232. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
  1233. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(95), RAD(0), RAD(75)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1234. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1235. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-26), RAD(0)), 0.15 / Animation_Speed)
  1236. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(26), RAD(0)), 0.15 / Animation_Speed)
  1237. end
  1238. CreateSound("260433487", RightArm, 3, 1)
  1239. local BOMB = CreatePart(3, Effects, "Neon", 0, 0, "Dark indigo", "Bomb", VT(2.5,2.5,2.5))
  1240. BOMB.CFrame = RootPart.CFrame*CF(0,0.5,-6)
  1241. BOMB.CanCollide = true
  1242. MakeForm(BOMB,"Ball")
  1243. coroutine.resume(coroutine.create(function()
  1244. local TOUCHED = false
  1245. local HIT1 = BOMB.Touched:Connect(function(hit)
  1246. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= Character and hit.Parent ~= Weapon then
  1247. local HUMAN = hit.Parent:FindFirstChildOfClass("Humanoid")
  1248. if HUMAN.Health > 0 then
  1249. TOUCHED = true
  1250. end
  1251. end
  1252. end)
  1253. for i = 1, 25 do
  1254. for i = 1, 25 do
  1255. if TOUCHED == true then
  1256. break
  1257. end
  1258. Swait()
  1259. BOMB.CFrame = BOMB.CFrame*CF(0,0,-0.05)
  1260. end
  1261. CreateSound("171137312", BOMB, 3, 1)
  1262. AoEDamage(BOMB.Position,15,5,8,-5,false,2,2,false)
  1263. MagicSphere(VT(1,1,1),25,BOMB.CFrame,"Alder",VT(0.5,0.5,0.5))
  1264. MagicSphere(VT(1,1,1),25,BOMB.CFrame*CF(0,-3.5,0),"Alder",VT(0.4,0.01,0.4))
  1265. MagicSphere(VT(1,1,1),25,BOMB.CFrame*CF(0,-3.5,0),"Alder",VT(0.4,0.01,0.4))
  1266. if TOUCHED == true then
  1267. break
  1268. end
  1269. end
  1270. HIT1:disconnect()
  1271. if TOUCHED == false then
  1272. Swait(25)
  1273. for i = 1, 10 do
  1274. Swait()
  1275. BOMB.Size = BOMB.Size - VT(0.05,0.05,0.05)
  1276. BOMB.Transparency = i/10
  1277. end
  1278. BOMB:remove()
  1279. else
  1280. Debris:AddItem(BOMB,15)
  1281. CreateSound("610359515", BOMB, 3, 1)
  1282. BOMB.Transparency = 1
  1283. BOMB.CanCollide = false
  1284. AoEDamage(BOMB.Position,35,75,85,-5,false,2,2,false)
  1285. MagicSphere(VT(2.5,2.5,2.5),25,BOMB.CFrame,"Dark indigo",VT(1.5,1.5,1.5))
  1286. MagicSphere(VT(2,2,2),25,BOMB.CFrame,COLOR,VT(1.5,1.5,1.5))
  1287. MagicSphere(VT(2.5,2.5,2.5),25,BOMB.CFrame,"Dark indigo",VT(2.5,2.5,2.5))
  1288. MagicSphere(VT(2,2,2),25,BOMB.CFrame,COLOR,VT(2.5,2.5,2.5))
  1289. end
  1290. end))
  1291. for i=0, 1, 0.1 / Animation_Speed do
  1292. Swait()
  1293. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.5 / Animation_Speed)
  1294. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.5 / Animation_Speed)
  1295. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1296. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1297. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.5 / Animation_Speed)
  1298. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.5 / Animation_Speed)
  1299. end
  1300. ATTACK = false
  1301. Rooted = false
  1302. end
  1303.  
  1304. function Taunt()
  1305. ATTACK = true
  1306. Rooted = true
  1307. for i=0, 0.3, 0.1 / Animation_Speed do
  1308. Swait()
  1309. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1310. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1311. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2, 0.5, -0.45) * ANGLES(RAD(90), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1312. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-2, 0.5, -0.45) * ANGLES(RAD(90), RAD(0), RAD(35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1313. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1314. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1315. end
  1316. for i = 1, 2 do
  1317. for i=0, 0.3, 0.1 / Animation_Speed do
  1318. Swait()
  1319. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1320. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1321. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2, 0.5, -0.45) * ANGLES(RAD(90), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1322. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-2, 0.5, -0.45) * ANGLES(RAD(90), RAD(0), RAD(35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1323. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1324. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1325. end
  1326. for i=0, 0.3, 0.1 / Animation_Speed do
  1327. Swait()
  1328. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1329. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1330. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.85) * ANGLES(RAD(90), RAD(0), RAD(-55)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1331. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -0.85) * ANGLES(RAD(90), RAD(0), RAD(55)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1332. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1333. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1334. end
  1335. if GRABBED ~= nil then
  1336. if TORS ~= nil then
  1337. CreateSound("743886825", TORS, 3, 1)
  1338. GRABBED:FindFirstChildOfClass("Humanoid").Health = GRABBED:FindFirstChildOfClass("Humanoid").Health - 5
  1339. StatLabel("Normal", TORS.CFrame * CF(0, 0 + (TORS.Size.z - 1), 0), 5, C3(0, 0, 0))
  1340. end
  1341. end
  1342. end
  1343. ATTACK = false
  1344. Rooted = false
  1345. end
  1346.  
  1347. function ReaperCrash()
  1348. if TRUEFLOOR ~= nil then
  1349. local FLOOR = TRUEFLOOR
  1350. ATTACK = true
  1351. Rooted = true
  1352. UNANCHOR = false
  1353. RootPart.Anchored = true
  1354. for i=0, 2, 0.1 / Animation_Speed do
  1355. Swait()
  1356. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1357. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1358. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1359. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1360. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1361. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1362. end
  1363. CreateSound("588734767", Torso, 10, 0.5)
  1364. local BOMB = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Bomb", VT(0,0,0))
  1365. MakeForm(BOMB,"Ball")
  1366. BOMB.CFrame = Torso.CFrame
  1367. coroutine.resume(coroutine.create(function()
  1368. for i = 1, 10 do
  1369. Swait()
  1370. BOMB.Transparency = 1-(i/10)
  1371. end
  1372. end))
  1373. for i=1, 100 do
  1374. RootPart.CFrame = RootPart.CFrame * CF(0,2,0)
  1375. Swait()
  1376. MagicSphere(VT(1.5,1.5,1.5),35,RootPart.CFrame*CF(MRANDOM(-BOMB.Size.X,BOMB.Size.X)/3,MRANDOM(-BOMB.Size.X,BOMB.Size.X)/3,MRANDOM(-BOMB.Size.X,BOMB.Size.X)/3),"Alder",VT(-(1.5/35),-(1.5/35),-(1.5/35)))
  1377. BOMB.CFrame = RootPart.CFrame*CF(0,2,0)
  1378. BOMB.Size = BOMB.Size + VT(0.1,0.1,0.1)
  1379. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1380. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1381. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1382. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1383. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1384. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1385. end
  1386. MagicSphere(BOMB.Size,125,BOMB.CFrame,"Dark indigo",VT(0.5,0.5,0.5))
  1387. MagicSphere(BOMB.Size*0.9,125,BOMB.CFrame,"Alder",VT(0.5,0.5,0.5))
  1388. CreateSound("138677306", Effects, 3, 1)
  1389. Swait(125)
  1390. for i=1, 10 do
  1391. RootPart.CFrame = RootPart.CFrame * CF(0,-20,0)
  1392. Swait()
  1393. BOMB.CFrame = RootPart.CFrame*CF(0,-10,0)
  1394. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(90), RAD(0), RAD(90)), 2 / Animation_Speed)
  1395. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed)
  1396. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1397. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1398. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1399. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1400. end
  1401. MagicSphere(BOMB.Size,35,RootPart.CFrame,"Alder",VT(2,2,2))
  1402. MagicSphere(BOMB.Size*0.9,35,RootPart.CFrame,"Lavender",VT(2,2,2))
  1403. MagicSphere(BOMB.Size*0.5,35,RootPart.CFrame,"Alder",VT(2,2,2))
  1404. MagicSphere(BOMB.Size*0.4,35,RootPart.CFrame,"Lavender",VT(2,2,2))
  1405. CreateSound("289842971", RightArm, 10, 1)
  1406. CreateSound("588736245", RightArm, 10, 0.8)
  1407. CreateSound("231917750", RightArm, 10, 0.8)
  1408. CreateDebreeRing(FLOOR,RootPart.Position+VT(0,-1.5,0),15,VT(7,7,7),155)
  1409. CreateDebreeRing(FLOOR,RootPart.Position+VT(0,-2,0),14,VT(7,7,7),155)
  1410. CreateDebreeRing(FLOOR,RootPart.Position+VT(0,-2,0),13,VT(7,7,7),155)
  1411. CreateDebreeRing(FLOOR,RootPart.Position+VT(0,-2,0),12,VT(7,7,7),155)
  1412. AoEDamage(RootPart.Position,25,125,185,75,false,2,2,false)
  1413. AoEDamage(RootPart.Position,55,85,95,75,false,2,2,false)
  1414. AoEStun(RootPart.Position,60,7)
  1415. local C = {"Alder","Dark indigo","Plum"}
  1416. for i = 1, 55 do
  1417. MagicSphere(VT(0.2,0.2,0.2),35,CF(RootPart.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RootPart.Position),C[MRANDOM(1,#C)],VT(0.02,0.02,4),0)
  1418. end
  1419. for i=1, 100 do
  1420. Swait()
  1421. BOMB.Transparency = (i/10)
  1422. BOMB.Size = BOMB.Size + VT(0.1,0.1,0.1)
  1423. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(90), RAD(0), RAD(90)), 2 / Animation_Speed)
  1424. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed)
  1425. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1426. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1427. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1428. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1429. end
  1430. BOMB:remove()
  1431. for i=1, 10 do
  1432. Swait()
  1433. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1434. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
  1435. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1436. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1437. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1438. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1439. end
  1440. RootPart.Anchored = false
  1441. UNANCHOR = true
  1442. ATTACK = false
  1443. Rooted = false
  1444. Taunt()
  1445. end
  1446. end
  1447.  
  1448. function Unward()
  1449. CreateSound("588736245", RightArm, 3, 2)
  1450. VALUE1 = false
  1451. CLAW.CanCollide = true
  1452. if TORS ~= nil then
  1453. TORS.Velocity = VT(0,0,0)
  1454. end
  1455. TORS = nil
  1456. if GRABBED ~= nil then
  1457. GRABBED:FindFirstChildOfClass("Humanoid").PlatformStand = false
  1458. end
  1459. GRAB:ClearAllChildren()
  1460. GRABBED = nil
  1461. WELD = nil
  1462. end
  1463.  
  1464. --//=================================\\
  1465. --|| ASSIGN THINGS TO KEYS
  1466. --\\=================================//
  1467.  
  1468. function MouseDown(Mouse)
  1469. if ATTACK == false then
  1470. Strike()
  1471. end
  1472. end
  1473.  
  1474. function MouseUp(Mouse)
  1475. HOLD = false
  1476. end
  1477.  
  1478. function KeyDown(Key)
  1479. KEYHOLD = true
  1480. if Key == "z" and ATTACK == false then
  1481. if VALUE1 == false then
  1482. Ward()
  1483. elseif VALUE1 == true then
  1484. Unward()
  1485. end
  1486. end
  1487.  
  1488. if Key == "b" and ATTACK == false and VALUE1 == false then
  1489. Warp()
  1490. end
  1491.  
  1492. if Key == "c" and ATTACK == false and TRUEFLOOR ~= nil then
  1493. EarthShatter()
  1494. end
  1495.  
  1496. if Key == "x" and ATTACK == false then
  1497. VoidMine()
  1498. end
  1499.  
  1500. if Key == "v" and ATTACK == false and VALUE1 == false then
  1501. ReaperCrash()
  1502. end
  1503.  
  1504. if Key == "t" and ATTACK == false then
  1505. Taunt()
  1506. end
  1507. end
  1508.  
  1509. function KeyUp(Key)
  1510. KEYHOLD = false
  1511. end
  1512.  
  1513. Mouse.Button1Down:connect(function(NEWKEY)
  1514. MouseDown(NEWKEY)
  1515. end)
  1516. Mouse.Button1Up:connect(function(NEWKEY)
  1517. MouseUp(NEWKEY)
  1518. end)
  1519. Mouse.KeyDown:connect(function(NEWKEY)
  1520. KeyDown(NEWKEY)
  1521. end)
  1522. Mouse.KeyUp:connect(function(NEWKEY)
  1523. KeyUp(NEWKEY)
  1524. end)
  1525.  
  1526. --//=================================\\
  1527. --\\=================================//
  1528.  
  1529.  
  1530. function unanchor()
  1531. if UNANCHOR == true then
  1532. g = Character:GetChildren()
  1533. for i = 1, #g do
  1534. if g[i].ClassName == "Part" then
  1535. g[i].Anchored = false
  1536. end
  1537. end
  1538. end
  1539. end
  1540.  
  1541.  
  1542. --//=================================\\
  1543. --|| WRAP THE WHOLE SCRIPT UP
  1544. --\\=================================//
  1545.  
  1546. Humanoid.Changed:connect(function(Jump)
  1547. if Jump == "Jump" and (Disable_Jump == true) then
  1548. Humanoid.Jump = false
  1549. end
  1550. end)
  1551.  
  1552. Speed = 20
  1553.  
  1554. while true do
  1555. Swait()
  1556. ANIMATE.Parent = nil
  1557. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1558. IDLEANIMATION:Play()
  1559. SINE = SINE + CHANGE
  1560. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1561. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1562. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1563. TRUEFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1564. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1565. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1566. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1567. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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)
  1568. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1569. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1570. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1571. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1572. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1573. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1574. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1575. end
  1576. if TORSOVERTICALVELOCITY > 1 and TRUEFLOOR == nil then
  1577. ANIM = "Jump"
  1578. if ATTACK == false then
  1579. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1580. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1581. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1582. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1583. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1584. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1585. end
  1586. elseif TORSOVERTICALVELOCITY < -1 and TRUEFLOOR == nil then
  1587. ANIM = "Fall"
  1588. if ATTACK == false then
  1589. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1590. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1591. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1592. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1593. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1594. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1595. end
  1596. elseif TORSOVELOCITY < 1 and TRUEFLOOR ~= nil then
  1597. ANIM = "Idle"
  1598. if ATTACK == false then
  1599. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1600. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1601. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1602. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1603. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1604. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1605. end
  1606. elseif TORSOVELOCITY > 1 and TRUEFLOOR ~= nil then
  1607. ANIM = "Walk"
  1608. WALK = WALK + 1 / Animation_Speed
  1609. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1610. WALK = 0
  1611. if WALKINGANIM == true then
  1612. WALKINGANIM = false
  1613. elseif WALKINGANIM == false then
  1614. WALKINGANIM = true
  1615. end
  1616. end
  1617. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1618. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1619. if ATTACK == false then
  1620. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1621. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1622. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1623. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1624. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1625. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1626. end
  1627. end
  1628. unanchor()
  1629. Humanoid.MaxHealth = "inf"
  1630. Humanoid.Health = "inf"
  1631. if Rooted == false then
  1632. Disable_Jump = false
  1633. Humanoid.WalkSpeed = Speed
  1634. elseif Rooted == true then
  1635. Disable_Jump = true
  1636. Humanoid.WalkSpeed = 0
  1637. end
  1638. if Head:FindFirstChildOfClass("Sound") then
  1639. Head:FindFirstChildOfClass("Sound"):remove()
  1640. end
  1641. if TORS ~= nil then
  1642. if TORS.Parent ~= nil then
  1643. TORS.CFrame = CLAW.CFrame * CF(0,-0.5,-0.25)
  1644. TORS.Velocity = VT(0,0,0)
  1645. end
  1646. end
  1647. if GRABBED ~= nil then
  1648. if GRABBED:FindFirstChildOfClass("Humanoid").Health == 0 then
  1649. Unward()
  1650. end
  1651. end
  1652. GRAB.CFrame = CLAW.CFrame * CF(0,-0.5,-0.25)
  1653. end
  1654.  
  1655. --//=================================\\
  1656. --\\=================================//
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662. --//====================================================\\--
  1663. --|| END OF SCRIPT
  1664. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement