Advertisement
StarzoZero

Roblox FE Prism Code Script

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