Advertisement
samuelrichter66

prism code

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