Advertisement
seasee54u

Untitled

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