Advertisement
yougotoof

AAAAAZSD

Dec 26th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 78.10 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. --//=========================\\--
  141. --|| CREATED BY NOOBYBUISNESS ||--
  142. --\\=========================//--
  143.  
  144.  
  145.  
  146. wait(0.2)
  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. local sick = Instance.new("Sound",Character)
  168. sick.SoundId = "rbxassetid://144377132"
  169. sick.Looped = true
  170. sick.Pitch = 1
  171. sick.Volume = 4
  172. sick:Play()
  173. local sick2 = Instance.new("Sound",Character)
  174. sick2.SoundId = "rbxassetid://148274436"
  175. sick2.Looped = true
  176. sick2.Pitch = 1
  177. sick2.Volume = 4
  178. local sick3 = Instance.new("Sound",Character)
  179. sick3.SoundId = "rbxassetid://245886448"
  180. sick3.Looped = true
  181. sick3.Pitch = 1
  182. sick3.Volume = 4
  183. Humanoid.DisplayDistanceType = "None"
  184. IT = Instance.new
  185. CF = CFrame.new
  186. VT = Vector3.new
  187. RAD = math.rad
  188. C3 = Color3.new
  189. UD2 = UDim2.new
  190. BRICKC = BrickColor.new
  191. ANGLES = CFrame.Angles
  192. EULER = CFrame.fromEulerAnglesXYZ
  193. COS = math.cos
  194. ACOS = math.acos
  195. SIN = math.sin
  196. ASIN = math.asin
  197. ABS = math.abs
  198. MRANDOM = math.random
  199. FLOOR = math.floor
  200. PLZ = 1
  201.  
  202. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  203. local NEWMESH = IT(MESH)
  204. if MESH == "SpecialMesh" then
  205. NEWMESH.MeshType = MESHTYPE
  206. if MESHID ~= "nil" and MESHID ~= "" then
  207. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  208. end
  209. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  210. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  211. end
  212. end
  213. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  214. NEWMESH.Scale = SCALE
  215. NEWMESH.Parent = PARENT
  216. return NEWMESH
  217. end
  218.  
  219. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  220. local NEWPART = IT("Part")
  221. NEWPART.formFactor = FORMFACTOR
  222. NEWPART.Reflectance = REFLECTANCE
  223. NEWPART.Transparency = TRANSPARENCY
  224. NEWPART.CanCollide = false
  225. NEWPART.Locked = true
  226. NEWPART.Anchored = true
  227. if ANCHOR == false then
  228. NEWPART.Anchored = false
  229. end
  230. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  231. NEWPART.Name = NAME
  232. NEWPART.Size = SIZE
  233. NEWPART.Position = Torso.Position
  234. NEWPART.Material = MATERIAL
  235. NEWPART:BreakJoints()
  236. NEWPART.Parent = PARENT
  237. return NEWPART
  238. end
  239.  
  240.  
  241.  
  242. local HBill = Instance.new("BillboardGui",Head)
  243. local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
  244. local HName = Instance.new("TextLabel")
  245. HBill.Size = UDim2.new(15,0,2.2,0)
  246. HBill.Name = "Health Display"
  247. HBill.StudsOffset = Vector3.new(3.675,2,0)
  248. HBill.AlwaysOnTop = true
  249. HBill.Enabled = true
  250. HMain.BackgroundColor3 = Color3.new(0,0,255)
  251. HMain.BackgroundTransparency = 1
  252. HMain.Size = UDim2.new(.5,0,.5,0)
  253. HName.Parent = HMain
  254. HName.BackgroundTransparency = 1
  255. HName.BackgroundColor3 = Color3.new(0,0,255)
  256. HName.BorderColor3 = Color3.new(0,0,255)
  257. HName.BorderSizePixel = 2
  258. HName.Size = UDim2.new(1,0,.75,0)
  259. HName.Font = "SciFi"
  260. HName.Text = "Tesla God"
  261. HName.TextScaled = true
  262. HName.TextColor3 = Color3.new(220,220,220)
  263. HName.TextStrokeColor3 = Color3.new(0,0,255)
  264. HName.TextStrokeTransparency = 0
  265. HName.TextYAlignment = "Bottom"
  266.  
  267.  
  268. --//=================================\\
  269. --|| CUSTOMIZATION
  270. --\\=================================//
  271.  
  272. Class_Name = "AngelManifestation.exe"
  273. Weapon_Name = "Add-ons"
  274.  
  275. Custom_Colors = {
  276. Custom_Color_1 = BRICKC("Institutional Bright blue"); --1st color for the weapon.
  277. Custom_Color_2 = BRICKC("Institutional Bright blue"); --2nd color for the weapon.
  278.  
  279. Custom_Color_3 = BRICKC("Institutional Bright blue"); --Color for the abilities.
  280. Custom_Color_4 = BRICKC("Institutional Bright blue"); --Color for the secondary bar.
  281. Custom_Color_5 = BRICKC("Institutional Bright blue"); --Color for the mana bar.
  282. Custom_Color_6 = BRICKC("Institutional Bright blue"); --Color for the health bar.
  283. Custom_Color_7 = BRICKC("Institutional Bright blue"); --Color for the stun bar.
  284.  
  285. Custom_Color_8 = BRICKC("Institutional Bright blue"); --Background for the mana bar.
  286. Custom_Color_9 = BRICKC("Institutional Bright blue"); --Background for the secondary mana bar.
  287. Custom_Color_10 = BRICKC("Institutional Bright blue"); --Background for the stun bar.
  288. Custom_Color_11 = BRICKC("Institutional Bright blue"); --Background for the health bar.
  289. Custom_Color_12 = BRICKC("Institutional Bright blue"); --Background for the abilities.
  290. }
  291.  
  292.  
  293. Player_Size = 1 --Size of the player.
  294. Animation_Speed = 3
  295. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  296.  
  297. local Speed = 35
  298. local Effects2 = {}
  299.  
  300. --//=================================\\
  301. --|| END OF CUSTOMIZATION
  302. --\\=================================//
  303.  
  304. local function weldBetween(a, b)
  305. local weldd = Instance.new("ManualWeld")
  306. weldd.Part0 = a
  307. weldd.Part1 = b
  308. weldd.C0 = CFrame.new()
  309. weldd.C1 = b.CFrame:inverse() * a.CFrame
  310. weldd.Parent = a
  311. return weldd
  312. end
  313.  
  314.  
  315.  
  316. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  317. local acs = Instance.new("Part")
  318. acs.CanCollide = false
  319. acs.Anchored = false
  320. acs.Size = Vector3.new(0,0,0)
  321. acs.CFrame = attachmentpart.CFrame
  322. acs.Parent = attachmentpart
  323. acs.BrickColor = color
  324. local meshs = Instance.new("SpecialMesh")
  325. meshs.MeshId = mesh
  326. meshs.TextureId = texture
  327. meshs.Parent = acs
  328. meshs.Scale = scale
  329. meshs.Offset = offset
  330. weldBetween(attachmentpart,acs)
  331. end
  332.  
  333. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  334. if TYPE == "Gem" then
  335. local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  336. acs.Anchored = false
  337. acs.CanCollide = false
  338. acs.CFrame = PART.CFrame
  339. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  340. weldBetween(PART,acs)
  341. elseif TYPE == "Skull" then
  342. local acs = CreatePart(3, PART, "Plastic", 0, 0, Cyan, "Part", VT(0,0,0))
  343. acs.Anchored = false
  344. acs.CanCollide = false
  345. acs.CFrame = PART.CFrame
  346. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  347. weldBetween(PART,acs)
  348. elseif TYPE == "Eye" then
  349. local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  350. acs.Anchored = false
  351. acs.CanCollide = false
  352. acs.CFrame = PART.CFrame
  353. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  354. weldBetween(PART,acs)
  355. end
  356. end
  357.  
  358. --//=================================\\
  359. --|| USEFUL VALUES
  360. --\\=================================//
  361.  
  362. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  363. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  364. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  365. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  366. local CO1 = 0
  367. local CO2 = 0
  368. local CO3 = 0
  369. local CO4 = 0
  370. local CHANGEDEFENSE = 0
  371. local CHANGEDAMAGE = 0
  372. local CHANGEMOVEMENT = 0
  373. local ANIM = "Idle"
  374. local ATTACK = false
  375. local EQUIPPED = false
  376. local HOLD = false
  377. local COMBO = 1
  378. local LASTPOINT = nil
  379. local BLCF = nil
  380. local SCFR = nil
  381. local KEYHOLD = false
  382. local STAGGERHITANIM = false
  383. local STAGGERANIM = false
  384. local STUNANIM = false
  385. local CRITCHANCENUMBER = 0
  386. local IDLENUMBER = 0
  387. local DONUMBER = 0
  388. local HANDIDLE = false
  389. local Rooted = false
  390. local SINE = 0
  391. local CHANGE = 2 / Animation_Speed
  392. local WALKINGANIM = false
  393. local WALK = 0
  394. local Rage = false
  395. local DANCE = false
  396. local DISABLEJUMPING = false
  397. local ROBLOXIDLEANIMATION = IT("Animation")
  398. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  399. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  400. --ROBLOXIDLEANIMATION.Parent = Humanoid
  401. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  402. WEAPONGUI.Name = "Weapon GUI"
  403. local Weapon = IT("Model")
  404. Weapon.Name = Weapon_Name
  405. local Effects = IT("Folder", Weapon)
  406. Effects.Name = "Effects"
  407. local Bombs = IT("Folder", Weapon)
  408. Bombs.Name = "BombsHolder"
  409. local ANIMATOR = Humanoid.Animator
  410. local ANIMATE = Character.Animate
  411. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  412. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  413. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  414. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  415. local UNANCHOR = true
  416. local MAGICPARTICLE = "655109389"
  417. Ghostrek = false
  418.  
  419. local SKILLTEXTCOLOR = C3(0,10,255)
  420.  
  421. --//=================================\\
  422. --\\=================================//
  423.  
  424.  
  425. --//=================================\\
  426. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  427. --\\=================================//
  428.  
  429. ArtificialHB = Instance.new("BindableEvent", script)
  430. ArtificialHB.Name = "ArtificialHB"
  431.  
  432. script:WaitForChild("ArtificialHB")
  433.  
  434. frame = Frame_Speed
  435. tf = 0
  436. allowframeloss = false
  437. tossremainder = false
  438. lastframe = tick()
  439. script.ArtificialHB:Fire()
  440.  
  441. game:GetService("RunService").Heartbeat:connect(function(s, p)
  442. tf = tf + s
  443. if tf >= frame then
  444. if allowframeloss then
  445. script.ArtificialHB:Fire()
  446. lastframe = tick()
  447. else
  448. for i = 1, math.floor(tf / frame) do
  449. script.ArtificialHB:Fire()
  450. end
  451. lastframe = tick()
  452. end
  453. if tossremainder then
  454. tf = 0
  455. else
  456. tf = tf - frame * math.floor(tf / frame)
  457. end
  458. end
  459. end)
  460.  
  461. --//=================================\\
  462. --\\=================================//
  463.  
  464.  
  465.  
  466.  
  467.  
  468. --//=================================\\
  469. --|| SOME FUNCTIONS
  470. --\\=================================//
  471.  
  472. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  473. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  474. end
  475.  
  476. function PositiveAngle(NUMBER)
  477. if NUMBER >= 0 then
  478. NUMBER = 0
  479. end
  480. return NUMBER
  481. end
  482.  
  483. function NegativeAngle(NUMBER)
  484. if NUMBER <= 0 then
  485. NUMBER = 0
  486. end
  487. return NUMBER
  488. end
  489.  
  490. function Swait(NUMBER)
  491. if NUMBER == 0 or NUMBER == nil then
  492. ArtificialHB.Event:wait()
  493. else
  494. for i = 1, NUMBER do
  495. ArtificialHB.Event:wait()
  496. end
  497. end
  498. end
  499.  
  500. function QuaternionFromCFrame(cf)
  501. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  502. local trace = m00 + m11 + m22
  503. if trace > 0 then
  504. local s = math.sqrt(1 + trace)
  505. local recip = 0.5 / s
  506. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  507. else
  508. local i = 0
  509. if m11 > m00 then
  510. i = 1
  511. end
  512. if m22 > (i == 0 and m00 or m11) then
  513. i = 2
  514. end
  515. if i == 0 then
  516. local s = math.sqrt(m00 - m11 - m22 + 1)
  517. local recip = 0.5 / s
  518. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  519. elseif i == 1 then
  520. local s = math.sqrt(m11 - m22 - m00 + 1)
  521. local recip = 0.5 / s
  522. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  523. elseif i == 2 then
  524. local s = math.sqrt(m22 - m00 - m11 + 1)
  525. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  526. end
  527. end
  528. end
  529.  
  530. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  531. local xs, ys, zs = x + x, y + y, z + z
  532. local wx, wy, wz = w * xs, w * ys, w * zs
  533. local xx = x * xs
  534. local xy = x * ys
  535. local xz = x * zs
  536. local yy = y * ys
  537. local yz = y * zs
  538. local zz = z * zs
  539. 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))
  540. end
  541.  
  542. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  543. local fp=IT("Part")
  544. fp.formFactor=formfactor
  545. fp.Parent=parent
  546. fp.Reflectance=reflectance
  547. fp.Transparency=transparency
  548. fp.CanCollide=false
  549. fp.Locked=true
  550. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  551. fp.Name=name
  552. fp.Size=size
  553. fp.Position=Character.Torso.Position
  554. NoOutlines(fp)
  555. fp.Material=material
  556. fp:BreakJoints()
  557. return fp
  558. end
  559.  
  560. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  561. local mesh=IT(Mesh)
  562. mesh.Parent=part
  563. if Mesh=="SpecialMesh" then
  564. mesh.MeshType=meshtype
  565. mesh.MeshId=meshid
  566. end
  567. mesh.Offset=offset
  568. mesh.Scale=scale
  569. return mesh
  570. end
  571.  
  572. function QuaternionSlerp(a, b, t)
  573. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  574. local startInterp, finishInterp;
  575. if cosTheta >= 0.0001 then
  576. if (1 - cosTheta) > 0.0001 then
  577. local theta = ACOS(cosTheta)
  578. local invSinTheta = 1 / SIN(theta)
  579. startInterp = SIN((1 - t) * theta) * invSinTheta
  580. finishInterp = SIN(t * theta) * invSinTheta
  581. else
  582. startInterp = 1 - t
  583. finishInterp = t
  584. end
  585. else
  586. if (1 + cosTheta) > 0.0001 then
  587. local theta = ACOS(-cosTheta)
  588. local invSinTheta = 1 / SIN(theta)
  589. startInterp = SIN((t - 1) * theta) * invSinTheta
  590. finishInterp = SIN(t * theta) * invSinTheta
  591. else
  592. startInterp = t - 1
  593. finishInterp = t
  594. end
  595. end
  596. 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
  597. end
  598.  
  599. function Clerp(a, b, t)
  600. local qa = {QuaternionFromCFrame(a)}
  601. local qb = {QuaternionFromCFrame(b)}
  602. local ax, ay, az = a.x, a.y, a.z
  603. local bx, by, bz = b.x, b.y, b.z
  604. local _t = 1 - t
  605. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  606. end
  607.  
  608. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  609. local frame = IT("Frame")
  610. frame.BackgroundTransparency = TRANSPARENCY
  611. frame.BorderSizePixel = BORDERSIZEPIXEL
  612. frame.Position = POSITION
  613. frame.Size = SIZE
  614. frame.BackgroundColor3 = COLOR
  615. frame.BorderColor3 = BORDERCOLOR
  616. frame.Name = NAME
  617. frame.Parent = PARENT
  618. return frame
  619. end
  620.  
  621. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  622. local label = IT("TextLabel")
  623. label.BackgroundTransparency = 1
  624. label.Size = UD2(1, 0, 1, 0)
  625. label.Position = UD2(0, 0, 0, 0)
  626. label.TextColor3 = TEXTCOLOR
  627. label.TextStrokeTransparency = STROKETRANSPARENCY
  628. label.TextTransparency = TRANSPARENCY
  629. label.FontSize = TEXTFONTSIZE
  630. label.Font = TEXTFONT
  631. label.BorderSizePixel = BORDERSIZEPIXEL
  632. label.TextScaled = false
  633. label.Text = TEXT
  634. label.Name = NAME
  635. label.Parent = PARENT
  636. return label
  637. end
  638.  
  639. function NoOutlines(PART)
  640. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  641. end
  642.  
  643.  
  644. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  645. local NEWWELD = IT(TYPE)
  646. NEWWELD.Part0 = PART0
  647. NEWWELD.Part1 = PART1
  648. NEWWELD.C0 = C0
  649. NEWWELD.C1 = C1
  650. NEWWELD.Parent = PARENT
  651. return NEWWELD
  652. end
  653.  
  654. function CreateSound(ID, PARENT, VOLUME, PITCH)
  655. local NEWSOUND = nil
  656. coroutine.resume(coroutine.create(function()
  657. NEWSOUND = IT("Sound", PARENT)
  658. NEWSOUND.Volume = VOLUME
  659. NEWSOUND.Pitch = PITCH
  660. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  661. Swait()
  662. NEWSOUND:play()
  663. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  664. end))
  665. return NEWSOUND
  666. end
  667.  
  668. function CFrameFromTopBack(at, top, back)
  669. local right = top:Cross(back)
  670. 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)
  671. end
  672.  
  673. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  674. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  675. local mesh = IT("SpecialMesh",wave)
  676. mesh.MeshType = "FileMesh"
  677. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  678. mesh.Scale = VT(size,size,size)
  679. mesh.Offset = VT(0,0,-size/8)
  680. wave.CFrame = cframe
  681. coroutine.resume(coroutine.create(function(PART)
  682. for i = 1, waitt do
  683. Swait()
  684. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  685. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  686. if doesrotate == true then
  687. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  688. end
  689. wave.Transparency = wave.Transparency + (0.5/waitt)
  690. if wave.Transparency > 0.99 then
  691. wave:remove()
  692. end
  693. end
  694. end))
  695. end
  696.  
  697. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  698. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  699. local mesh = IT("SpecialMesh",wave)
  700. mesh.MeshType = "FileMesh"
  701. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  702. mesh.Scale = VT(size,size,size)
  703. wave.CFrame = cframe
  704. coroutine.resume(coroutine.create(function(PART)
  705. for i = 1, waitt do
  706. Swait()
  707. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  708. if doesrotate == true then
  709. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  710. end
  711. wave.Transparency = wave.Transparency + (0.5/waitt)
  712. if wave.Transparency > 0.99 then
  713. wave:remove()
  714. end
  715. end
  716. end))
  717. end
  718.  
  719. function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  720. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  721. local mesh = IT("SpecialMesh",wave)
  722. mesh.MeshType = "FileMesh"
  723. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  724. mesh.Scale = VT(size,size,size)
  725. wave.CFrame = cframe
  726. coroutine.resume(coroutine.create(function(PART)
  727. for i = 1, waitt do
  728. Swait()
  729. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  730. if doesrotate == true then
  731. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  732. end
  733. wave.Transparency = wave.Transparency + (0.5/waitt)
  734. if wave.Transparency > 0.99 then
  735. wave:remove()
  736. end
  737. end
  738. end))
  739. end
  740.  
  741. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,cframe,spin1,spin2,color)
  742. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  743. local mesh = IT("SpecialMesh",wave)
  744. mesh.MeshType = "FileMesh"
  745. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  746. mesh.Scale = VT(size,size,size)
  747. mesh.Offset = VT(0,0,0)
  748. wave.CFrame = cframe
  749. coroutine.resume(coroutine.create(function(PART)
  750. for i = 1, waitt do
  751. Swait()
  752. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  753. if doesrotate == true then
  754. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  755. end
  756. wave.Transparency = wave.Transparency + (0.5/waitt)
  757. if wave.Transparency > 0.99 then
  758. wave:remove()
  759. end
  760. end
  761. end))
  762. end
  763.  
  764. function MagicSphere(size,waitt,cframe,color)
  765. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
  766. local mesh = IT("SpecialMesh",wave)
  767. mesh.MeshType = "Sphere"
  768. mesh.Scale = VT(size,size,size)
  769. mesh.Offset = VT(0,0,0)
  770. wave.CFrame = cframe
  771. coroutine.resume(coroutine.create(function(PART)
  772. for i = 1, waitt do
  773. Swait()
  774. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  775. wave.Transparency = wave.Transparency + (1/waitt)
  776. if wave.Transparency > 0.99 then
  777. wave:remove()
  778. end
  779. end
  780. end))
  781. end
  782.  
  783. function MagicSphere2(size,waitt,cframe,color)
  784. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
  785. local mesh = IT("SpecialMesh",wave)
  786. mesh.MeshType = "Sphere"
  787. mesh.Scale = VT(size,size,size)
  788. mesh.Offset = VT(0,0,0)
  789. wave.CFrame = cframe
  790. coroutine.resume(coroutine.create(function(PART)
  791. for i = 1, waitt do
  792. Swait()
  793. mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
  794. wave.Transparency = wave.Transparency - (1/waitt)
  795. end
  796. wave:remove()
  797. end))
  798. end
  799.  
  800. function BreakEffect(brickcolor,cframe,x1,y1,z1,material)
  801. local prt=part("Custom",workspace,material,0,0,brickcolor,"Effect",VT(0.5,0.5,0.5))
  802. prt.Anchored=true
  803. prt.CFrame=cframe*EULER(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  804. local msh=mesh("SpecialMesh",prt,"Sphere","",VT(0,0,0),VT(x1,y1,z1))
  805. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  806. CF=Part.CFrame
  807. Numbb=0
  808. randnumb=math.random()-math.random()
  809. for i=0,1,0.05 do
  810. wait()
  811. CF=CF*CF(0,1,0)
  812. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  813. Part.CFrame=CF*EULER(Numbb,0,0)
  814. Part.Transparency=i
  815. Numbb=Numbb+randnumb
  816. end
  817. Part.Parent=nil
  818. end),prt)
  819. end
  820.  
  821. function MagicBlock(size,waitt,cframe,color)
  822. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
  823. local mesh = IT("BlockMesh",wave)
  824. wave.CFrame = cframe
  825. coroutine.resume(coroutine.create(function(PART)
  826. for i = 1, waitt do
  827. Swait()
  828. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  829. wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  830. wave.Transparency = wave.Transparency + (1/waitt)
  831. if wave.Transparency > 0.99 then
  832. wave:remove()
  833. end
  834. end
  835. end))
  836. end
  837.  
  838. local EyeSizes={
  839. NumberSequenceKeypoint.new(0,1,0),
  840. NumberSequenceKeypoint.new(1,0.2,0)
  841. }
  842. local EyeTrans={
  843. NumberSequenceKeypoint.new(0,0.8,0),
  844. NumberSequenceKeypoint.new(1,1,0)
  845. }
  846. local PE=Instance.new("ParticleEmitter")
  847. PE.LightEmission=0
  848. PE.Size=NumberSequence.new(EyeSizes)
  849. PE.Transparency=NumberSequence.new(EyeTrans)
  850. PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
  851. PE.Rotation=NumberRange.new(0,360)
  852. PE.Rate=15
  853. PE.Acceleration = Vector3.new(0,75,0)
  854. PE.Drag = 5
  855. PE.Enabled = false
  856. PE.Speed = NumberRange.new(0,0,0)
  857. PE.Texture="http://www.roblox.com/asset/?id=1179557490"
  858. PE.ZOffset = 0
  859. PE.Name = "Particles"
  860.  
  861. function CreateParticles(art,text,accel,drag,rate,type,isenabledbydefault)
  862. local particle = PE:Clone()
  863. particle.Parent = art
  864. particle.Acceleration = accel
  865. PE.Rate = rate
  866. if type == "Fire" then
  867. local EyeSizes={
  868. NumberSequenceKeypoint.new(0,1,0.3),
  869. NumberSequenceKeypoint.new(1,0.2,0.2)
  870. }
  871. PE.Size = NumberSequence.new(EyeSizes)
  872. elseif type == "Smoke" then
  873. local EyeSizes={
  874. NumberSequenceKeypoint.new(0,1,0),
  875. NumberSequenceKeypoint.new(1,5,0.5)
  876. }
  877. PE.Size = NumberSequence.new(EyeSizes)
  878. elseif type == "Solid" then
  879. local EyeSizes={
  880. NumberSequenceKeypoint.new(0,1,0),
  881. NumberSequenceKeypoint.new(1,1,0)
  882. }
  883. PE.Size = NumberSequence.new(EyeSizes)
  884. end
  885. PE.Drag = drag
  886. particle.Texture = "http://www.roblox.com/asset/?id="..text
  887. particle.Enabled = isenabledbydefault
  888. return particle
  889. end
  890.  
  891. function MakeForm(PART,TYPE)
  892. if TYPE == "Cyl" then
  893. local MSH = IT("CylinderMesh",PART)
  894. elseif TYPE == "Ball" then
  895. local MSH = IT("SpecialMesh",PART)
  896. MSH.MeshType = "Sphere"
  897. elseif TYPE == "Wedge" then
  898. local MSH = IT("SpecialMesh",PART)
  899. MSH.MeshType = "Wedge"
  900. end
  901. end
  902.  
  903. --//=================================\\
  904. --\\=================================//
  905.  
  906. function createaddongen(limb,position,size)
  907. local part = CreatePart(3, Weapon, "Glass", 0, 0, "Bright blue", limb.Name.." Gauntlet Part", VT(0.25*Player_Size, size*0.8*Player_Size,size*0.8*Player_Size),false)
  908. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.45 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0))
  909. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", limb.Name.." Neon Gauntlet Part", VT(0.25*Player_Size,size*Player_Size,size*Player_Size),false)
  910. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.425 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0))
  911. end
  912.  
  913. function creategauntlet(limb)
  914. --main--
  915. local part = CreatePart(3, Weapon, "Glass", 0, 0, "Bright blue", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false)
  916. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  917. local part = CreatePart(3, Weapon, "Glass", 0, 0, "Bright blue", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false)
  918. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  919. MakeForm(part,"Wedge")
  920. local part = CreatePart(3, Weapon, "Glass", 0, 0, "Bright blue", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false)
  921. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
  922. MakeForm(part,"Wedge")
  923. local part = CreatePart(3, Weapon, "Glass", 0, 0, "Bright blue", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false)
  924. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  925. --neon addons
  926. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Navy blue", limb.Name.." Neon Gauntlet Part", VT(1.05*Player_Size,2.05*Player_Size,1.05*Player_Size),false)
  927. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  928. --misc--
  929. createaddongen(limb,0.25,0.75)
  930. createaddongen(limb,-0.2,0.25)
  931. createaddongen(limb,-0.35,0.25)
  932. createaddongen(limb,-0.65,0.45)
  933. end
  934.  
  935. --//=================================\\
  936. --|| WEAPON CREATION
  937. --\\=================================//
  938.  
  939. creategauntlet(RightArm)
  940. creategauntlet(LeftLeg)
  941.  
  942. if Player_Size ~= 1 then
  943. for _, v in pairs (Weapon:GetChildren()) do
  944. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  945. local p1 = v.Part1
  946. v.Part1 = nil
  947. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  948. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  949. v.Part1 = p1
  950. elseif v.ClassName == "Part" then
  951. for _, b in pairs (v:GetChildren()) do
  952. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  953. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  954. end
  955. end
  956. end
  957. end
  958. end
  959.  
  960. for _, c in pairs(Weapon:GetChildren()) do
  961. if c.ClassName == "Part" then
  962. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  963. end
  964. end
  965.  
  966. Weapon.Parent = Character
  967.  
  968. Humanoid.Died:connect(function()
  969. sick:remove()
  970. sick2:remove()
  971. CreateSound("771514428", Head, 99, 1)
  972. ATTACK = true
  973. MagicSphere(0.5,1100,Torso.CFrame,"Bright blue")
  974. end)
  975.  
  976. print(Class_Name.." loaded.")
  977.  
  978. --//=================================\\
  979. --|| SPEECH
  980. --\\=================================//
  981.  
  982. function chatfunc(text,waitt)
  983. local chat = coroutine.wrap(function()
  984. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  985. Character:FindFirstChild("TalkingBillBoard"):destroy()
  986. end
  987. local naeeym2 = Instance.new("BillboardGui",Character)
  988. naeeym2.Size = UDim2.new(0,100,0,40)
  989. naeeym2.StudsOffset = Vector3.new(0,5,0)
  990. naeeym2.Adornee = Character.Head
  991. naeeym2.Name = "TalkingBillBoard"
  992. naeeym2.AlwaysOnTop = true
  993. local tecks2 = Instance.new("TextLabel",naeeym2)
  994. tecks2.BackgroundTransparency = 1
  995. tecks2.BorderSizePixel = 0
  996. tecks2.Text = ""
  997. tecks2.Font = "SciFi"
  998. tecks2.TextSize = 30
  999. tecks2.TextStrokeTransparency = 1
  1000. tecks2.TextColor3 = SKILLTEXTCOLOR
  1001. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  1002. tecks2.Size = UDim2.new(1,0,0.5,0)
  1003. for i = 1,string.len(text),1 do
  1004. tecks2.Text = string.sub(text,1,i)
  1005. Swait()
  1006. end
  1007. wait(waitt)
  1008. coroutine.resume(coroutine.create(function()
  1009. for i = 1, 10 do
  1010. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  1011. Swait()
  1012. end
  1013. naeeym2:Destroy()
  1014. end))
  1015. end)
  1016. chat()
  1017. end
  1018.  
  1019. --//=================================\\
  1020. --|| DAMAGE FUNCTIONS
  1021. --\\=================================//
  1022.  
  1023.  
  1024.  
  1025. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1026. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Bright blue", "Effect", VT())
  1027. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1028. local BODYGYRO = IT("BodyGyro", STATPART)
  1029. local BODYPOSITION = IT("BodyPosition", STATPART)
  1030. BODYPOSITION.P = 2000
  1031. BODYPOSITION.D = 100
  1032. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1033. if LABELTYPE == "Normal" then
  1034. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1035. elseif LABELTYPE == "Debuff" then
  1036. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  1037. elseif LABELTYPE == "Interruption" then
  1038. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  1039. end
  1040. game:GetService("Debris"):AddItem(STATPART ,5)
  1041. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1042. BILLBOARDGUI.Adornee = STATPART
  1043. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1044. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1045. BILLBOARDGUI.AlwaysOnTop = false
  1046. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1047. TEXTLABEL.BackgroundTransparency = 1
  1048. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1049. TEXTLABEL.Text = TEXT
  1050. TEXTLABEL.Font = "SciFi"
  1051. TEXTLABEL.FontSize="Size42"
  1052. TEXTLABEL.TextColor3 = COLOR
  1053. TEXTLABEL.TextStrokeTransparency = 1
  1054. TEXTLABEL.TextScaled = true
  1055. TEXTLABEL.TextWrapped = true
  1056. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1057. wait(0.2)
  1058. for i=1, 5 do
  1059. wait()
  1060. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  1061. end
  1062. wait(1.2)
  1063. for i=1, 5 do
  1064. wait()
  1065. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  1066. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  1067. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  1068. end
  1069. THEPART.Parent = nil
  1070. end),STATPART, BODYPOSITION, TEXTLABEL)
  1071. end
  1072.  
  1073.  
  1074. --//=================================\\
  1075. --|| DAMAGING
  1076. --\\=================================//
  1077.  
  1078. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  1079. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  1080. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1081. local dmg = math.random(min,max)
  1082. if humanoid.Health > 0 then
  1083. if beserk == true then
  1084. humanoid.Health = 0
  1085. else
  1086. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  1087. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  1088. if math.random(1,100) < critrate+1 then
  1089. humanoid.Health = humanoid.Health - dmg*critmultiplier
  1090. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1091. else
  1092. humanoid.Health = humanoid.Health - dmg
  1093. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  1094. end
  1095. local defence = Instance.new("BoolValue",hit.Parent)
  1096. defence.Name = ("HitBy"..Player.Name)
  1097. game:GetService("Debris"):AddItem(defence, 0.5)
  1098. end
  1099. end
  1100. end
  1101. end
  1102.  
  1103. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  1104. local dmg = math.random(min,max)
  1105. for i,v in ipairs(workspace:GetChildren()) do
  1106. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1107. local body = v:GetChildren()
  1108. for part = 1, #body do
  1109. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1110. if(body[part].Position - position).Magnitude < radius then
  1111. if v.ClassName == "Model" then
  1112. if v:FindFirstChild("Humanoid") then
  1113. if v.Humanoid.Health ~= 0 then
  1114. if CanBeDodgedByJumping == true then
  1115. if body[part].Position.Y < position.Y+5 then
  1116. if math.random(1,100) < critrate+1 then
  1117. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1118. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1119. else
  1120. v.Humanoid.Health = v.Humanoid.Health - dmg
  1121. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1122. end
  1123. local defence = Instance.new("BoolValue",v)
  1124. defence.Name = ("HitBy"..Player.Name)
  1125. game:GetService("Debris"):AddItem(defence, 0.5)
  1126. end
  1127. else
  1128. if beserk == true then
  1129. v.Humanoid.Health = 0
  1130. end
  1131. if math.random(1,100) < critrate+1 then
  1132. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1133. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1134. else
  1135. v.Humanoid.Health = v.Humanoid.Health - dmg
  1136. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1137. end
  1138. local defence = Instance.new("BoolValue",v)
  1139. defence.Name = ("HitBy"..Player.Name)
  1140. game:GetService("Debris"):AddItem(defence, 0.5)
  1141. end
  1142. end
  1143. end
  1144. end
  1145. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1146. end
  1147. end
  1148. end
  1149. if v.ClassName == "Part" then
  1150. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  1151. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1152. end
  1153. end
  1154. end
  1155. end
  1156. end
  1157.  
  1158. function killnearest(position,range,maxstrength)
  1159. for i,v in ipairs(workspace:GetChildren()) do
  1160. local body = v:GetChildren()
  1161. for part = 1, #body do
  1162. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1163. if(body[part].Position - position).Magnitude < range then
  1164. if v.ClassName == "Model" then
  1165. v:BreakJoints()
  1166. end
  1167. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1168. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1169. end
  1170. end
  1171. end
  1172. if v.ClassName == "Part" then
  1173. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1174. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1175. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1176. end
  1177. end
  1178. end
  1179. end
  1180.  
  1181. --//=================================\\
  1182. --|| ATTACK FUNCTIONS AND STUFF
  1183. --\\=================================//
  1184.  
  1185. function CheckTableForString(Table, String)
  1186. for i, v in pairs(Table) do
  1187. if string.find(string.lower(String), string.lower(v)) then
  1188. return true
  1189. end
  1190. end
  1191. return false
  1192. end
  1193.  
  1194. function CheckIntangible(Hit)
  1195. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  1196. if Hit and Hit.Parent then
  1197. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  1198. return true
  1199. end
  1200. end
  1201. return false
  1202. end
  1203.  
  1204. Debris = game:GetService("Debris")
  1205.  
  1206. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1207. local Direction = CFrame.new(StartPos, Vec).lookVector
  1208. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1209. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1210. if RayHit and CheckIntangible(RayHit) then
  1211. if DelayIfHit then
  1212. wait()
  1213. end
  1214. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1215. end
  1216. return RayHit, RayPos, RayNormal
  1217. end
  1218.  
  1219. function turnto(position)
  1220. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1221. end
  1222.  
  1223. function ExplodeBomb(b)
  1224. b.Parent = Effects
  1225. b.Anchored = true
  1226. CreateSound("215395285", b, 10, 1)
  1227. MagicSphere(5,50,b.CFrame,"Navy blue")
  1228. b.Transparency = 1
  1229. MagicBlock(3,45,b.CFrame,"Navy blue")
  1230. --BreakEffect("Navy blue",b.CFrame,2,2,2,"Neon")
  1231. for i = 1, 10 do
  1232. CreateSwirl(0,5,true,-0.2,25,b.CFrame * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Bright blue")
  1233. end
  1234. killnearest(b.Position,30,25)
  1235. game:GetService("Debris"):AddItem(b, 5)
  1236. end
  1237.  
  1238. function Detonate()
  1239. bomb = Bombs:GetChildren()
  1240. for lol = 1, #bomb do
  1241. if bomb[lol].ClassName == "Part" then
  1242. local b = bomb[lol]
  1243. ExplodeBomb(b)
  1244. end
  1245. end
  1246. end
  1247.  
  1248.  
  1249.  
  1250. function TyranyCannon()
  1251. ATTACK = true
  1252. for i=0, 1, 0.1 / Animation_Speed do
  1253. Swait()
  1254. turnto(Mouse.Hit.p)
  1255. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed/5)
  1256. 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)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1257. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1258. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10 - 2.5 * COS(SINE / 16)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1259. RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-1.25), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1260. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1261. end
  1262. local POS = Mouse.Hit.p
  1263. for i = 1, 5 do
  1264. MagicSphere(2,10,RightArm.CFrame * CF(0,-1,0),"Navy blue")
  1265. Swait(5)
  1266. end
  1267. CreateSound("438666196", RightArm, 5, 1.3)
  1268. MagicSphere(5,10,RightArm.CFrame * CF(0,-1,0),"Navy blue")
  1269. local Projectile = CreatePart(3, Bombs, "Neon", 0, 0, "Navy blue", "Bomb-Projectile", VT(5,5,5),false)
  1270. Projectile.CFrame = RightArm.CFrame * CF(0,-1,0)
  1271. Projectile.CanCollide = false
  1272. MakeForm(Projectile,"Ball")
  1273. local grav = Instance.new("BodyPosition",Projectile)
  1274. grav.P = 25000
  1275. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1276. grav.position = POS
  1277. grav.Name = "GravityForce"
  1278. local harm = Projectile.Touched:Connect(function(hit)
  1279. if hit.Parent ~= Character and hit.Parent:FindFirstChild("Humanoid") and Projectile.Parent ~= Effects then
  1280. ExplodeBomb(Projectile)
  1281. end
  1282. end)
  1283. if Rage == false then
  1284. chatfunc("Let's see you survive this!",3)
  1285. elseif Rage == true then
  1286. chatfunc("Death befalls thy who challenges the gods.",3)
  1287. end
  1288. ATTACK = false
  1289. end
  1290.  
  1291. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  1292. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  1293. end
  1294.  
  1295. function EarthShatter()
  1296. if Rage == false then
  1297. chatfunc("Face the power of a god.",3)
  1298. elseif Rage == true then
  1299. chatfunc("Face the power of a TRUE god!",3)
  1300. end
  1301. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1302. if HITFLOOR ~= nil then
  1303. ATTACK = true
  1304. Rooted = true
  1305. for i=0, 1, 0.1 / Animation_Speed/2 do
  1306. Swait()
  1307. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed/8)
  1308. 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)
  1309. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, 1 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed/8)
  1310. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed/8)
  1311. 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/8)
  1312. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed/8)
  1313. end
  1314. for i=0, 1, 0.1 / Animation_Speed*5 do
  1315. Swait()
  1316. RootPart.Anchored = true
  1317. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*5)
  1318. 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*5)
  1319. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, -1.4 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*5)
  1320. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*5)
  1321. 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*5)
  1322. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed*5)
  1323. end
  1324. local POS = RightArm.CFrame * CF(0,-1,0).p
  1325. for i = 1,10 do
  1326. CreateWave(0,10,true,0.05,25,CF(POS),"Bright blue")
  1327. CreateWave(0,6,true,-0.05,25,CF(POS),"Bright blue")
  1328. CreateWave(0,2,true,0.05,25,CF(POS),"Bright blue")
  1329. killnearest(POS,15,25)
  1330. CreateSound("438666141", RightArm, 5, 1)
  1331. for i = 1, 40 do
  1332. local angle = math.random(-180,180)
  1333. coroutine.resume(coroutine.create(function()
  1334. local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -15, 0), 10000, {Character})
  1335. local SpawnPosition = RayPos
  1336. local floor = RayHit
  1337. local needcframe = RootPart.CFrame*ANGLES(RAD(0),RAD(angle),RAD(0))
  1338. local LastPosition = RayPos
  1339. local Delay = 1
  1340. if floor ~= nil then
  1341. for i = 1, 5 do
  1342. local RayHit, RayPos = RayCast(LastPosition, needcframe.lookVector, 10, {workspace})
  1343. local End = RayPos
  1344. LastPosition = End
  1345. killnearest(End,15,25)
  1346. local locatepart = Instance.new("Part",Effects)
  1347. locatepart.Size = VT(0.5,0.5,0.5)
  1348. locatepart.Position = End
  1349. locatepart.CanCollide = false
  1350. locatepart.Anchored = true
  1351. locatepart.Name = "L0"
  1352. locatepart.Transparency = 1
  1353. if SpawnPosition then
  1354. CreateSwirl(0,2,false,0.05,25,CF(End),"Bright blue")
  1355. local spike = Instance.new("CornerWedgePart")
  1356. spike.Size = Vector3.new(1,15,1)
  1357. spike.Material = "Neon"
  1358. spike.Color = "Bright blue"
  1359. spike.Anchored = true
  1360. spike.CanCollide = false
  1361. spike.CFrame = CFrame.new(End.X,SpawnPosition.Y+2,End.Z)
  1362. spike.Orientation = Vector3.new(math.random(-15,15),math.random(-180,180),math.random(-15,15))
  1363. spike.Name = HITFLOOR.Name.."Spike"
  1364. CreateSound("341300954", spike, 1, (math.random(8,12)/10))
  1365. for i = 1, 3 do
  1366. local overlay = spike:Clone()
  1367. overlay.Size = overlay.Size + Vector3.new(0.2,0.2*2,0.2)
  1368. overlay.CFrame = spike.CFrame
  1369. overlay.Parent = nil
  1370. overlay.Orientation = Vector3.new(math.random(-15,15),math.random(-180,180),math.random(-15,15))
  1371. overlay.Parent = Effects
  1372. table.insert(Effects2,{overlay,"Disappear",0.01,0,0,0,0})
  1373. end
  1374. spike.Size = Vector3.new(2,25,2)
  1375. spike.Parent = Effects
  1376. table.insert(Effects2,{spike,"Disappear",0.01,0,0,0,0})
  1377. end
  1378. Swait(5)
  1379. game:GetService("Debris"):AddItem(locatepart, 5)
  1380. end
  1381. end
  1382. end))
  1383. end
  1384. wait(0.05)
  1385. end
  1386. for i=0, 6, 0.1 / Animation_Speed*5 do
  1387. Swait()
  1388. RootPart.Anchored = true
  1389. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*5)
  1390. 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*5)
  1391. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, -1.4 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*5)
  1392. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*5)
  1393. 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*5)
  1394. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed*5)
  1395. end
  1396. ATTACK = false
  1397. Rooted = false
  1398. end
  1399. end
  1400.  
  1401. function RavagingOverthrower()
  1402. ATTACK = true
  1403. Rooted = true
  1404. if Rage == false then
  1405. chatfunc("Get ready...",3)
  1406. elseif Rage == true then
  1407. chatfunc("Begone!",3)
  1408. end
  1409. for i=0, 1, 0.1 / Animation_Speed do
  1410. Swait()
  1411. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1412. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1413. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1414. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1415. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1416. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1417. end
  1418. CreateSound("348663022", Torso, 5, 1.3)
  1419. local StartPos = RootPart.CFrame * CF(0,0,-10).p
  1420. for i = 1, 5 do
  1421. MagicSphere2(25,25,CF(StartPos),"Navy blue")
  1422. Swait(15)
  1423. end
  1424. local soundeffect = IT("Sound",Torso)
  1425. soundeffect.SoundId = "rbxassetid://487186990"
  1426. soundeffect.Looped = true
  1427. soundeffect.Volume = 10
  1428. soundeffect.Playing = true
  1429. repeat
  1430. turnto(Mouse.Hit.p)
  1431. MagicSphere2(25,25,CF(StartPos),"Navy blue")
  1432. MagicSphere(25/10,25,CF(StartPos),"Navy blue")
  1433. for i = 1, 3 do
  1434. CreateSwirl(0,25,true,-0.2,5,CF(StartPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Bright blue")
  1435. end
  1436. local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false)
  1437. local distance = (StartPos - RayPos).magnitude
  1438. local RayBeam = IT("Part",Effects)
  1439. RayBeam.Material = "Neon"
  1440. RayBeam.Anchored = true
  1441. RayBeam.BrickColor = BRICKC"Navy blue"
  1442. local mesh = IT("SpecialMesh",RayBeam)
  1443. mesh.MeshType = "Cylinder"
  1444. RayBeam.Size = Vector3.new(distance+10, math.random(10,15), math.random(10,15))
  1445. RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0))
  1446. MagicSphere(15,5,CF(RayPos),"Navy blue")
  1447. killnearest(RayPos,15,100)
  1448. for i = 1, 3 do
  1449. CreateSwirl(0,25,true,-0.2,5,CF(RayPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Bright blue")
  1450. end
  1451. Swait()
  1452. if KEYHOLD == false then
  1453. coroutine.resume(coroutine.create(function()
  1454. for i = 1, 30 do
  1455. RayBeam.Transparency = i/30
  1456. Swait()
  1457. end
  1458. RayBeam:remove()
  1459. end))
  1460. else
  1461. RayBeam:remove()
  1462. end
  1463. until KEYHOLD == false
  1464. soundeffect:remove()
  1465. ATTACK = false
  1466. Rooted = false
  1467. end
  1468.  
  1469. function Awaken()
  1470. sick:Stop()
  1471. Speed = 5
  1472. Rage = true
  1473. chatfunc("You seem like a worthy opponent",4)
  1474. wait(1.5)
  1475. chatfunc("But, now it's time to see how you put up against..",4)
  1476. wait(1.5)
  1477. chatfunc("A GOD!",4)
  1478. wait(1.5)
  1479. MagicSphere(10,100,Torso.CFrame,"Navy blue")
  1480. wait(0.1)
  1481. MagicSphere(4,110,Torso.CFrame,"Bright blue")
  1482. chatfunc(".",4)
  1483. Player_Size = 1
  1484. sick3:Play()
  1485. HName.Text = "True Tesla God"
  1486. Speed = 100
  1487. repeat
  1488. MagicSphere(5,10,Torso.CFrame,"Navy blue")
  1489. wait(0.3)
  1490. MagicSphere(5,10,Torso.CFrame,"Bright blue")
  1491. wait(0.3)
  1492. until Rage == false
  1493. end
  1494.  
  1495. function Rageend()
  1496. sick3:stop()
  1497. chatfunc("You weren't worth my time",3)
  1498. MagicSphere(10,100,Torso.CFrame,"Navy blue")
  1499. wait(0.1)
  1500. MagicSphere(4,110,Torso.CFrame,"Bright blue")
  1501. HName.Text = "Tesla God"
  1502. Rage = false
  1503. Speed = 35
  1504. Player_Size = 1
  1505. sick:play()
  1506. end
  1507.  
  1508. function dodadance()
  1509. ATTACK = true
  1510. Rooted = true
  1511. DANCE = true
  1512. sick:Stop()
  1513. sick3:Stop()
  1514. sick2:Play()
  1515. local Animation_Speed2 = 1.5
  1516. HName.Text = "Heh...this is fun."
  1517. repeat
  1518. for i=0, 1.3, 0.1 / Animation_Speed2 do
  1519. Swait()
  1520. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(-15)), 0.15 / Animation_Speed2)
  1521. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1522. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1523. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-180)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1524. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(120), RAD(35)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1525. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(-35)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1526. end
  1527. MagicSphere(5,15,Torso.CFrame,"Navy blue")
  1528. for i=0, 1.3, 0.1 / Animation_Speed2 do
  1529. Swait()
  1530. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(15)), 0.15 / Animation_Speed2)
  1531. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1532. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1533. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-120)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1534. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(35)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1535. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-120), RAD(-35)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1536. end
  1537. MagicSphere(5,15,Torso.CFrame,"Bright blue")
  1538. until DANCE == false
  1539. HName.Text = "Tesla God"
  1540. if Rage == false then
  1541. sick:Play()
  1542. elseif Rage == true then
  1543. sick3:Play()
  1544. end
  1545. sick2:Stop()
  1546. ATTACK = false
  1547. Rooted = false
  1548. end
  1549.  
  1550. function rek()
  1551. chatfunc("Anit-ghost is on",2)
  1552. Ghostrek = true
  1553. repeat
  1554. local GAME = game.Players:GetChildren()
  1555. for PLAYER = 1, #GAME do
  1556. local PLAY = GAME[PLAYER]
  1557. if PLAY.Character ~= nil then
  1558. if PLAY.Character.Parent ~= workspace then
  1559. PLAY.Character.Parent = nil
  1560. coroutine.resume(coroutine.create(function()
  1561. if PLAY.Character:FindFirstChild("HumanoidRootPart") then
  1562. PLAY.Character.Parent = workspace
  1563. local Value = IT("BoolValue",Delete)
  1564. Value.Name = PLAY.Name
  1565. end
  1566. end))
  1567. end
  1568. end
  1569. wait(0.2)
  1570. end
  1571. until Ghostrek == false
  1572. end
  1573.  
  1574. function Warp()
  1575. if Rage == false then
  1576. chatfunc("Behind you.",3)
  1577. elseif Rage == true then
  1578. chatfunc("You won't even realize you're dead.",3)
  1579. end
  1580. MagicSphere2(10,5,Torso.CFrame,"Navy blue")
  1581. RootPart.CFrame = CF(VT(Mouse.Hit.p.X,Mouse.Hit.p.Y+4,Mouse.Hit.p.Z))
  1582. CreateSound("282061340", Torso, 2, 1.3)
  1583. MagicSphere(5,5,Torso.CFrame,"Navy blue")
  1584. for i = 1, 3 do
  1585. CreateSwirl(0,5,true,-0.2,25,Torso.CFrame * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Bright blue")
  1586. end
  1587. killnearest(Torso.Position,12,25)
  1588. Swait()
  1589. turnto(Mouse.Hit.p)
  1590. end
  1591.  
  1592. --//=================================\\
  1593. --|| ASSIGN THINGS TO KEYS
  1594. --\\=================================//
  1595. chatfunc("The power in this demension is unstable",2)
  1596. wait(2)
  1597. chatfunc("I shall end this quickly!",2)
  1598. Humanoid.Changed:connect(function(Jump)
  1599. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1600. Humanoid.Jump = false
  1601. end
  1602. end)
  1603.  
  1604. function MouseDown(Mouse)
  1605. if ATTACK == false then
  1606. end
  1607. end
  1608.  
  1609. function MouseUp(Mouse)
  1610. HOLD = false
  1611. end
  1612.  
  1613. function KeyDown(Key)
  1614. KEYHOLD = true
  1615. if Key == "e" and ATTACK == false then
  1616. TyranyCannon()
  1617. wait(1)
  1618. Detonate()
  1619. end
  1620.  
  1621. if Key == "c" and ATTACK == false then
  1622. EarthShatter()
  1623. end
  1624.  
  1625. if Key == "r" and ATTACK == false then
  1626. RavagingOverthrower()
  1627. end
  1628.  
  1629.  
  1630. if Key == "f" and Rage == false then
  1631. Awaken()
  1632. end
  1633.  
  1634. if Key == "g" and Rage == true then
  1635. Rageend()
  1636. end
  1637.  
  1638. if Key == "q" and ATTACK == false then
  1639. Warp()
  1640. end
  1641.  
  1642. if Key == "t" and ATTACK == false then
  1643. CreateSound("1129332284", Head, 5, 1.1)
  1644. end
  1645.  
  1646.  
  1647. if Key == "n" then
  1648. if Ghostrek == false then
  1649. rek()
  1650. elseif Ghostrek == true then
  1651. Ghostrek = false
  1652. chatfunc("Anit-ghost is off",2)
  1653. end
  1654. end
  1655.  
  1656. if Key == "t" and DANCE == true then
  1657. CreateSound("887591869", Head, 5, 1)
  1658. end
  1659.  
  1660. if Key == "x" and (ATTACK == false or DANCE == true) then
  1661. if DANCE == false then
  1662. dodadance()
  1663. elseif DANCE == true then
  1664. DANCE = false
  1665. end
  1666. end
  1667. end
  1668. function KeyUp(Key)
  1669. KEYHOLD = false
  1670. end
  1671.  
  1672. Mouse.Button1Down:connect(function(NEWKEY)
  1673. MouseDown(NEWKEY)
  1674. end)
  1675. Mouse.Button1Up:connect(function(NEWKEY)
  1676. MouseUp(NEWKEY)
  1677. end)
  1678. Mouse.KeyDown:connect(function(NEWKEY)
  1679. KeyDown(NEWKEY)
  1680. end)
  1681. Mouse.KeyUp:connect(function(NEWKEY)
  1682. KeyUp(NEWKEY)
  1683. end)
  1684. --//=================================\\
  1685. --\\=================================//
  1686.  
  1687.  
  1688. function unanchor()
  1689. if UNANCHOR == true then
  1690. g = Character:GetChildren()
  1691. for i = 1, #g do
  1692. if g[i].ClassName == "Part" then
  1693. g[i].Anchored = false
  1694. end
  1695. end
  1696. end
  1697. end
  1698.  
  1699.  
  1700. --//=================================\\
  1701. --|| WRAP THE WHOLE SCRIPT UP
  1702. --\\=================================//
  1703.  
  1704. Humanoid.Changed:connect(function(Jump)
  1705. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1706. Humanoid.Jump = false
  1707. end
  1708. end)
  1709.  
  1710. ANIMATE.Parent = nil
  1711. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1712. IDLEANIMATION:Play()
  1713.  
  1714. while true do
  1715. Swait()
  1716. SINE = SINE + CHANGE
  1717. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1718. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1719. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1720. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1721. local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16)
  1722. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1723. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1724. 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)
  1725. 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)
  1726. 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)
  1727. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1728. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1729. 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)
  1730. 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)
  1731. 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)
  1732. end
  1733. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1734. ANIM = "Jump"
  1735. if ATTACK == false then
  1736. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1737. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1738. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1739. 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)
  1740. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1741. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1742. end
  1743. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1744. ANIM = "Fall"
  1745. if ATTACK == false then
  1746. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1747. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1748. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(70)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1749. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1750. 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(20)), 0.2 / Animation_Speed)
  1751. 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(10)), 0.2 / Animation_Speed)
  1752. end
  1753. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1754. ANIM = "Idle"
  1755. if ATTACK == false then
  1756. 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(10), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  1757. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.15 / Animation_Speed)
  1758. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(30)) * ANGLES(RAD(3), RAD(25), RAD(5)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1759. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10 - 2.5 * COS(SINE / 16)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1760. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  1761. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  1762. end
  1763. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1764. ANIM = "Walk"
  1765. WALK = WALK + 1 / Animation_Speed
  1766. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1767. WALK = 0
  1768. if WALKINGANIM == true then
  1769. WALKINGANIM = false
  1770. elseif WALKINGANIM == false then
  1771. WALKINGANIM = true
  1772. end
  1773. end
  1774. --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)
  1775. --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)
  1776. if ATTACK == false then
  1777. 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(10), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  1778. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.15 / Animation_Speed)
  1779. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1780. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1781. 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)
  1782. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1783. end
  1784. end
  1785. if #Effects2>0 then
  1786. for e=1,#Effects2 do
  1787. if Effects2[e]~=nil then
  1788. local Thing=Effects2[e]
  1789. if Thing~=nil then
  1790. local Part=Thing[1]
  1791. local Mode=Thing[2]
  1792. local Delay=Thing[3]
  1793. local IncX=Thing[4]
  1794. local IncY=Thing[5]
  1795. local IncZ=Thing[6]
  1796. local Part2=Thing[8]
  1797. if Thing[1].Transparency<=1 then
  1798. if Thing[2]=="Block1" then
  1799. Thing[1].CFrame=Thing[1].CFrame
  1800. Mesh=Thing[1].Mesh
  1801. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1802. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1803. elseif Thing[2]=="Cylinder" then
  1804. Mesh=Thing[1].Mesh
  1805. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1806. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1807. elseif Thing[2]=="Blood" then
  1808. Mesh=Thing[7]
  1809. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1810. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1811. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1812. elseif Thing[2]=="Elec" then
  1813. Mesh=Thing[1].Mesh
  1814. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1815. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1816. elseif Thing[2]=="Disappear" then
  1817. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1818. end
  1819. else
  1820. Part.Parent=nil
  1821. table.remove(Effects2,e)
  1822. end
  1823. end
  1824. end
  1825. end
  1826. end
  1827. unanchor()
  1828. Humanoid.MaxHealth = "inf"
  1829. Humanoid.Health = "inf"
  1830. Humanoid.Name = "Ravage"
  1831. if Rooted == false then
  1832. Disable_Jump = false
  1833. Humanoid.WalkSpeed = Speed
  1834. elseif Rooted == true then
  1835. Disable_Jump = true
  1836. Humanoid.WalkSpeed = 0
  1837. end
  1838.  
  1839. if Head:FindFirstChild("Died") then
  1840. Head.Died:remove()
  1841. end
  1842. bomb = Bombs:GetChildren()
  1843. for lol = 1, #bomb do
  1844. if bomb[lol].ClassName == "Part" then
  1845. MagicSphere2(2,5,bomb[lol].CFrame,"Bright blue")
  1846. end
  1847. end
  1848. end
  1849.  
  1850. --//=================================\\
  1851. --\\=================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement