Advertisement
Guest User

Untitled

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