Advertisement
Guest User

Untitled

a guest
Dec 15th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.00 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. --//====================================================\\--
  90. --|| CREATED BY SHACKLUSTER
  91. --\\====================================================//--
  92.  
  93.  
  94.  
  95. wait(0.2)
  96.  
  97.  
  98.  
  99. Player = owner
  100. PlayerGui = Player.PlayerGui
  101. Cam = workspace.CurrentCamera
  102. Backpack = Player.Backpack
  103. Character = Player.Character
  104. Humanoid = Character.Humanoid
  105. RootPart = Character["HumanoidRootPart"]
  106. Torso = Character["Torso"]
  107. Head = Character["Head"]
  108. RightArm = Character["Right Arm"]
  109. LeftArm = Character["Left Arm"]
  110. RightLeg = Character["Right Leg"]
  111. LeftLeg = Character["Left Leg"]
  112. RootJoint = RootPart["RootJoint"]
  113. Neck = Torso["Neck"]
  114. RightShoulder = Torso["Right Shoulder"]
  115. LeftShoulder = Torso["Left Shoulder"]
  116. RightHip = Torso["Right Hip"]
  117. LeftHip = Torso["Left Hip"]
  118.  
  119. IT = Instance.new
  120. CF = CFrame.new
  121. VT = Vector3.new
  122. RAD = math.rad
  123. C3 = Color3.new
  124. UD2 = UDim2.new
  125. BRICKC = BrickColor.new
  126. ANGLES = CFrame.Angles
  127. EULER = CFrame.fromEulerAnglesXYZ
  128. COS = math.cos
  129. ACOS = math.acos
  130. SIN = math.sin
  131. ASIN = math.asin
  132. ABS = math.abs
  133. MRANDOM = math.random
  134. FLOOR = math.floor
  135.  
  136. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  137. local NEWMESH = IT(MESH)
  138. if MESH == "SpecialMesh" then
  139. NEWMESH.MeshType = MESHTYPE
  140. if MESHID ~= "nil" and MESHID ~= "" then
  141. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  142. end
  143. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  144. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  145. end
  146. end
  147. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  148. NEWMESH.Scale = SCALE
  149. NEWMESH.Parent = PARENT
  150. return NEWMESH
  151. end
  152.  
  153. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  154. local NEWPART = IT("Part")
  155. NEWPART.formFactor = FORMFACTOR
  156. NEWPART.Reflectance = REFLECTANCE
  157. NEWPART.Transparency = TRANSPARENCY
  158. NEWPART.CanCollide = false
  159. NEWPART.Locked = true
  160. NEWPART.Anchored = true
  161. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  162. NEWPART.Name = NAME
  163. NEWPART.Size = SIZE
  164. NEWPART.Position = Torso.Position
  165. NEWPART.Material = MATERIAL
  166. NEWPART:BreakJoints()
  167. NEWPART.Parent = PARENT
  168. return NEWPART
  169. end
  170.  
  171.  
  172. --//=================================\\
  173. --|| CUSTOMIZATION
  174. --\\=================================//
  175.  
  176. Class_Name = "Nigger OP Hole"
  177. Weapon_Name = "Add-ons"
  178.  
  179. Custom_Colors = {
  180. Custom_Color_1 = BRICKC("Institutional black"); --1st color for the weapon.
  181. Custom_Color_2 = BRICKC("Institutional black"); --2nd color for the weapon.
  182.  
  183. Custom_Color_3 = BRICKC("Institutional red"); --Color for the abilities.
  184. Custom_Color_4 = BRICKC("Institutional red"); --Color for the secondary bar.
  185. Custom_Color_5 = BRICKC("Institutional red"); --Color for the mana bar.
  186. Custom_Color_6 = BRICKC("Institutional red"); --Color for the health bar.
  187. Custom_Color_7 = BRICKC("Institutional red"); --Color for the stun bar.
  188.  
  189. Custom_Color_8 = BRICKC("Institutional red"); --Background for the mana bar.
  190. Custom_Color_9 = BRICKC("Institutional red"); --Background for the secondary mana bar.
  191. Custom_Color_10 = BRICKC("Institutional red"); --Background for the stun bar.
  192. Custom_Color_11 = BRICKC("Institutional red"); --Background for the health bar.
  193. Custom_Color_12 = BRICKC("Institutional red"); --Background for the abilities.
  194. }
  195.  
  196.  
  197. Player_Size = 1 --Size of the player.
  198. Animation_Speed = 3
  199. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  200.  
  201. local Speed = 16
  202. local Effects2 = {}
  203.  
  204. --//=================================\\
  205. --|| END OF CUSTOMIZATION
  206. --\\=================================//
  207.  
  208. local function weldBetween(a, b)
  209. local weldd = Instance.new("ManualWeld")
  210. weldd.Part0 = a
  211. weldd.Part1 = b
  212. weldd.C0 = CFrame.new()
  213. weldd.C1 = b.CFrame:inverse() * a.CFrame
  214. weldd.Parent = a
  215. return weldd
  216. end
  217.  
  218. --//=================================\\
  219. --|| USEFUL VALUES
  220. --\\=================================//
  221.  
  222. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  223. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  224. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  225. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  226. local CO1 = 0
  227. local CO2 = 0
  228. local CO3 = 0
  229. local CO4 = 0
  230. local CHANGEDEFENSE = 0
  231. local CHANGEDAMAGE = 0
  232. local CHANGEMOVEMENT = 0
  233. local ANIM = "Idle"
  234. local ATTACK = false
  235. local EQUIPPED = false
  236. local HOLD = false
  237. local COMBO = 1
  238. local LASTPOINT = nil
  239. local BLCF = nil
  240. local SCFR = nil
  241. local STAGGERHITANIM = false
  242. local STAGGERANIM = false
  243. local STUNANIM = false
  244. local CRITCHANCENUMBER = 0
  245. local IDLENUMBER = 0
  246. local DONUMBER = 0
  247. local HANDIDLE = false
  248. local PLAYINGMUSIC = false
  249. local SINE = 0
  250. local CHANGE = 2 / Animation_Speed
  251. local WALKINGANIM = false
  252. local WALK = 0
  253. local DISABLEJUMPING = false
  254. local HASBEENBLOCKED = false
  255. local STUNDELAYNUMBER = 0
  256. local MANADELAYNUMBER = 0
  257. local SOUND = nil
  258. local SECONDARYMANADELAYNUMBER = 0
  259. local ROBLOXIDLEANIMATION = IT("Animation")
  260. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  261. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  262. --ROBLOXIDLEANIMATION.Parent = Humanoid
  263. local WEAPONGUI = IT("ScreenGui", nil)
  264. WEAPONGUI.Name = "Weapon GUI"
  265. local WEAPONTOOL = IT("HopperBin", nil)
  266. WEAPONTOOL.Name = Weapon_Name
  267. local Weapon = IT("Model")
  268. Weapon.Name = Weapon_Name
  269. local Effects = IT("Folder", Weapon)
  270. Effects.Name = "Effects"
  271. local ANIMATOR = Humanoid.Animator
  272. local ANIMATE = Character.Animate
  273. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  274. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  275. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  276. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  277. local PEWSOUND = {"907527750","907527912","907528019","907530553"}
  278. local BULLETLOOPSOUND = "907530407"
  279. local BULLETIMPACTSOUND = "907532865"
  280. local UNANCHOR = true
  281. local MAGICPARTICLE = "655109389"
  282. local Rooted = false
  283. local GRABBED = false
  284. local X = 10
  285. local Y = 10
  286. local Z = 10
  287. local CUSTOMMOVEMENT = false
  288. local FLIGHT = false
  289. local VACUUM = false
  290.  
  291. --//=================================\\
  292. --\\=================================//
  293.  
  294.  
  295.  
  296.  
  297. --//=================================\\
  298. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  299. --\\=================================//
  300.  
  301. ArtificialHB = Instance.new("BindableEvent", script)
  302. ArtificialHB.Name = "ArtificialHB"
  303.  
  304. script:WaitForChild("ArtificialHB")
  305.  
  306. frame = Frame_Speed
  307. tf = 0
  308. allowframeloss = false
  309. tossremainder = false
  310. lastframe = tick()
  311. script.ArtificialHB:Fire()
  312.  
  313. game:GetService("RunService").Heartbeat:connect(function(s, p)
  314. tf = tf + s
  315. if tf >= frame then
  316. if allowframeloss then
  317. script.ArtificialHB:Fire()
  318. lastframe = tick()
  319. else
  320. for i = 1, math.floor(tf / frame) do
  321. script.ArtificialHB:Fire()
  322. end
  323. lastframe = tick()
  324. end
  325. if tossremainder then
  326. tf = 0
  327. else
  328. tf = tf - frame * math.floor(tf / frame)
  329. end
  330. end
  331. end)
  332.  
  333. --//=================================\\
  334. --\\=================================//
  335.  
  336.  
  337.  
  338.  
  339.  
  340. --//=================================\\
  341. --|| SOME FUNCTIONS
  342. --\\=================================//
  343.  
  344. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  345. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  346. end
  347.  
  348. function PositiveAngle(NUMBER)
  349. if NUMBER >= 0 then
  350. NUMBER = 0
  351. end
  352. return NUMBER
  353. end
  354.  
  355. function NegativeAngle(NUMBER)
  356. if NUMBER <= 0 then
  357. NUMBER = 0
  358. end
  359. return NUMBER
  360. end
  361.  
  362. function Swait(NUMBER)
  363. if NUMBER == 0 or NUMBER == nil then
  364. ArtificialHB.Event:wait()
  365. else
  366. for i = 1, NUMBER do
  367. ArtificialHB.Event:wait()
  368. end
  369. end
  370. end
  371.  
  372. function QuaternionFromCFrame(cf)
  373. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  374. local trace = m00 + m11 + m22
  375. if trace > 0 then
  376. local s = math.sqrt(1 + trace)
  377. local recip = 0.5 / s
  378. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  379. else
  380. local i = 0
  381. if m11 > m00 then
  382. i = 1
  383. end
  384. if m22 > (i == 0 and m00 or m11) then
  385. i = 2
  386. end
  387. if i == 0 then
  388. local s = math.sqrt(m00 - m11 - m22 + 1)
  389. local recip = 0.5 / s
  390. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  391. elseif i == 1 then
  392. local s = math.sqrt(m11 - m22 - m00 + 1)
  393. local recip = 0.5 / s
  394. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  395. elseif i == 2 then
  396. local s = math.sqrt(m22 - m00 - m11 + 1)
  397. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  398. end
  399. end
  400. end
  401.  
  402. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  403. local xs, ys, zs = x + x, y + y, z + z
  404. local wx, wy, wz = w * xs, w * ys, w * zs
  405. local xx = x * xs
  406. local xy = x * ys
  407. local xz = x * zs
  408. local yy = y * ys
  409. local yz = y * zs
  410. local zz = z * zs
  411. 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))
  412. end
  413.  
  414. function QuaternionSlerp(a, b, t)
  415. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  416. local startInterp, finishInterp;
  417. if cosTheta >= 0.0001 then
  418. if (1 - cosTheta) > 0.0001 then
  419. local theta = ACOS(cosTheta)
  420. local invSinTheta = 1 / SIN(theta)
  421. startInterp = SIN((1 - t) * theta) * invSinTheta
  422. finishInterp = SIN(t * theta) * invSinTheta
  423. else
  424. startInterp = 1 - t
  425. finishInterp = t
  426. end
  427. else
  428. if (1 + cosTheta) > 0.0001 then
  429. local theta = ACOS(-cosTheta)
  430. local invSinTheta = 1 / SIN(theta)
  431. startInterp = SIN((t - 1) * theta) * invSinTheta
  432. finishInterp = SIN(t * theta) * invSinTheta
  433. else
  434. startInterp = t - 1
  435. finishInterp = t
  436. end
  437. end
  438. 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
  439. end
  440.  
  441. function Clerp(a, b, t)
  442. local qa = {QuaternionFromCFrame(a)}
  443. local qb = {QuaternionFromCFrame(b)}
  444. local ax, ay, az = a.x, a.y, a.z
  445. local bx, by, bz = b.x, b.y, b.z
  446. local _t = 1 - t
  447. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  448. end
  449.  
  450. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  451. local frame = IT("Frame")
  452. frame.BackgroundTransparency = TRANSPARENCY
  453. frame.BorderSizePixel = BORDERSIZEPIXEL
  454. frame.Position = POSITION
  455. frame.Size = SIZE
  456. frame.BackgroundColor3 = COLOR
  457. frame.BorderColor3 = BORDERCOLOR
  458. frame.Name = NAME
  459. frame.Parent = PARENT
  460. return frame
  461. end
  462.  
  463. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  464. local label = IT("TextLabel")
  465. label.BackgroundTransparency = 1
  466. label.Size = UD2(1, 0, 1, 0)
  467. label.Position = UD2(0, 0, 0, 0)
  468. label.TextColor3 = C3(255, 255, 255)
  469. label.TextStrokeTransparency = STROKETRANSPARENCY
  470. label.TextTransparency = TRANSPARENCY
  471. label.FontSize = TEXTFONTSIZE
  472. label.Font = TEXTFONT
  473. label.BorderSizePixel = BORDERSIZEPIXEL
  474. label.TextScaled = true
  475. label.Text = TEXT
  476. label.Name = NAME
  477. label.Parent = PARENT
  478. return label
  479. end
  480.  
  481. function NoOutlines(PART)
  482. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  483. end
  484.  
  485.  
  486. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  487. local NEWWELD = IT(TYPE)
  488. NEWWELD.Part0 = PART0
  489. NEWWELD.Part1 = PART1
  490. NEWWELD.C0 = C0
  491. NEWWELD.C1 = C1
  492. NEWWELD.Parent = PARENT
  493. return NEWWELD
  494. end
  495.  
  496. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  497. local NEWSOUND = nil
  498. coroutine.resume(coroutine.create(function()
  499. NEWSOUND = IT("Sound", PARENT)
  500. NEWSOUND.Volume = VOLUME
  501. NEWSOUND.Pitch = PITCH
  502. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  503. Swait()
  504. NEWSOUND:play()
  505. if DOESLOOP == false then
  506. repeat Swait() until NEWSOUND.Playing == false
  507. NEWSOUND:remove()
  508. elseif DOESLOOP == true then
  509. NEWSOUND.Looped = true
  510. end
  511. end))
  512. return NEWSOUND
  513. end
  514.  
  515. function CFrameFromTopBack(at, top, back)
  516. local right = top:Cross(back)
  517. 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)
  518. end
  519.  
  520. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  521. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  522. local mesh = IT("SpecialMesh",wave)
  523. mesh.MeshType = "FileMesh"
  524. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  525. mesh.Scale = VT(size,size,size)
  526. mesh.Offset = VT(0,0,-size/8)
  527. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  528. coroutine.resume(coroutine.create(function(PART)
  529. for i = 1, waitt do
  530. Swait()
  531. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  532. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  533. if doesrotate == true then
  534. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  535. end
  536. wave.Transparency = wave.Transparency + (0.5/waitt)
  537. if wave.Transparency > 0.99 then
  538. wave:remove()
  539. end
  540. end
  541. end))
  542. end
  543.  
  544. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  545. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  546. local mesh = IT("SpecialMesh",wave)
  547. mesh.MeshType = "FileMesh"
  548. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  549. mesh.Scale = VT(size,size,size)
  550. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  551. coroutine.resume(coroutine.create(function(PART)
  552. for i = 1, waitt do
  553. Swait()
  554. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  555. if doesrotate == true then
  556. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  557. end
  558. wave.Transparency = wave.Transparency + (0.5/waitt)
  559. if wave.Transparency > 0.99 then
  560. wave:remove()
  561. end
  562. end
  563. end))
  564. end
  565.  
  566. function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  567. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  568. local mesh = IT("SpecialMesh",wave)
  569. mesh.MeshType = "FileMesh"
  570. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  571. mesh.Scale = VT(size,size,size)
  572. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  573. coroutine.resume(coroutine.create(function(PART)
  574. for i = 1, waitt do
  575. Swait()
  576. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  577. if doesrotate == true then
  578. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  579. end
  580. wave.Transparency = wave.Transparency + (0.5/waitt)
  581. if wave.Transparency > 0.99 then
  582. wave:remove()
  583. end
  584. end
  585. end))
  586. end
  587.  
  588. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,part,offset,spin1,spin2,color)
  589. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  590. local mesh = IT("SpecialMesh",wave)
  591. mesh.MeshType = "FileMesh"
  592. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  593. mesh.Scale = VT(size,size,size)
  594. mesh.Offset = VT(0,0,0)
  595. wave.CFrame = CF(part.Position) * 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,size/5,size/5)
  600. if doesrotate == true then
  601. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  602. end
  603. wave.Transparency = wave.Transparency + (1/waitt)
  604. if wave.Transparency > 0.99 then
  605. wave:remove()
  606. end
  607. end
  608. end))
  609. end
  610.  
  611. function MagicSphere(size,waitt,part,offset,color)
  612. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
  613. local mesh = IT("SpecialMesh",wave)
  614. mesh.MeshType = "Sphere"
  615. mesh.Scale = VT(size,size,size)
  616. mesh.Offset = VT(0,0,0)
  617. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
  618. coroutine.resume(coroutine.create(function(PART)
  619. for i = 1, waitt do
  620. Swait()
  621. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  622. wave.Transparency = wave.Transparency + (1/waitt)
  623. if wave.Transparency > 0.99 then
  624. wave:remove()
  625. end
  626. end
  627. end))
  628. end
  629.  
  630. function clerp(a, b, t)
  631. return a:lerp(b, t)
  632. end
  633.  
  634. function newBezier(startpos, pos2, pos3, endpos, t)
  635. local A = clerp(startpos, pos2, t)
  636. local B = clerp(pos2, pos3, t)
  637. local C = clerp(pos3, endpos, t)
  638. local lerp1 = clerp(A, B, t)
  639. local lerp2 = clerp(B, C, t)
  640. local cubic = clerp(lerp1, lerp2, t)
  641. return cubic
  642. end
  643.  
  644. function MagicBlock(size,waitt,part,offset,color)
  645. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
  646. local mesh = IT("BlockMesh",wave)
  647. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
  648. coroutine.resume(coroutine.create(function(PART)
  649. for i = 1, waitt do
  650. Swait()
  651. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  652. wave.CFrame = CF(wave.Position) * ANGLES(RAD(math(-360,360)),RAD(math(-360,360)),RAD(math(-360,360)))
  653. wave.Transparency = wave.Transparency + (0.5/waitt)
  654. if wave.Transparency > 0.99 then
  655. wave:remove()
  656. end
  657. end
  658. end))
  659. end
  660.  
  661. local EyeSizes={
  662. NumberSequenceKeypoint.new(0,1,0),
  663. NumberSequenceKeypoint.new(1,0.2,0)
  664. }
  665. local EyeTrans={
  666. NumberSequenceKeypoint.new(0,0.8,0),
  667. NumberSequenceKeypoint.new(1,1,0)
  668. }
  669. local PE=Instance.new("ParticleEmitter")
  670. PE.LightEmission=0
  671. PE.Size=NumberSequence.new(EyeSizes)
  672. PE.Transparency=NumberSequence.new(EyeTrans)
  673. PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
  674. PE.Rotation=NumberRange.new(0,360)
  675. PE.Rate=15
  676. PE.Acceleration = Vector3.new(0,75,0)
  677. PE.Drag = 5
  678. PE.Enabled = false
  679. PE.RotSpeed = NumberRange.new(75)
  680. PE.Speed = NumberRange.new(0,0,0)
  681. PE.Texture="http://www.roblox.com/asset/?id=1179557490"
  682. PE.ZOffset = 0
  683. PE.Name = "Particles"
  684.  
  685. function CreateParticles(art,accel,drag,rate,type,isenabledbydefault,locked,size)
  686. local particle = PE:Clone()
  687. particle.Parent = art
  688. particle.Acceleration = accel
  689. particle.Rate = rate
  690. if type == "Fire" then
  691. local EyeSizes={
  692. NumberSequenceKeypoint.new(0,size,size*0.3),
  693. NumberSequenceKeypoint.new(1,0.2,0.2)
  694. }
  695. particle.Size = NumberSequence.new(EyeSizes)
  696. elseif type == "Smoke" then
  697. local EyeSizes={
  698. NumberSequenceKeypoint.new(0,size,0),
  699. NumberSequenceKeypoint.new(1,size*5,0.5)
  700. }
  701. particle.Size = NumberSequence.new(EyeSizes)
  702. elseif type == "Solid" then
  703. local EyeSizes={
  704. NumberSequenceKeypoint.new(0,size,0),
  705. NumberSequenceKeypoint.new(1,size,0)
  706. }
  707. particle.Size = NumberSequence.new(EyeSizes)
  708. end
  709. particle.LockedToPart = locked
  710. particle.Drag = drag
  711. particle.Texture = "http://www.roblox.com/asset/?id=43997508"
  712. particle.Enabled = isenabledbydefault
  713. return particle
  714. end
  715.  
  716. --//=================================\\
  717. --\\=================================//
  718.  
  719.  
  720. --//=================================\\
  721. --|| WEAPON CREATION
  722. --\\=================================//
  723.  
  724. if Player_Size ~= 1 then
  725. for _, v in pairs (Weapon:GetChildren()) do
  726. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  727. local p1 = v.Part1
  728. v.Part1 = nil
  729. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  730. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  731. v.Part1 = p1
  732. elseif v.ClassName == "Part" then
  733. for _, b in pairs (v:GetChildren()) do
  734. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  735. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  736. end
  737. end
  738. end
  739. end
  740. end
  741.  
  742. for _, c in pairs(Weapon:GetChildren()) do
  743. if c.ClassName == "Part" then
  744. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  745. end
  746. end
  747.  
  748. Weapon.Parent = Character
  749.  
  750. Humanoid.Died:connect(function()
  751. ATTACK = true
  752. end)
  753.  
  754. print(Class_Name.." loaded.")
  755.  
  756. local ORB = IT("Part",Weapon)
  757. ORB.CanCollide = false
  758. ORB.Anchored = false
  759. ORB.CFrame = RootPart.CFrame
  760. ORB.Shape = "Ball"
  761. ORB.Material = "Neon"
  762. ORB.Size = VT(0.2,0.2,0.2)
  763. ORB.Color = C3(0.5,0,1)
  764. local Orbmesh = IT("SpecialMesh",ORB)
  765. Orbmesh.MeshType = "Sphere"
  766. Orbmesh.Scale = VT(10,10,10)
  767. local grav = Instance.new("BodyPosition",ORB)
  768. grav.P = 20000
  769. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  770. grav.position = RootPart.CFrame*CF(3,0.7,-1).p
  771. grav.Name = "GravityForce"
  772. CreateParticles(ORB,VT(0,0,0),0,150,"Solid",true,true,4)
  773.  
  774. --//=================================\\
  775. --\\=================================//
  776.  
  777. function onChatted(msg)
  778. if msg:sub(1,10) == "Orb, play " then
  779. local ID = msg:sub(11)
  780. if SOUND == nil then
  781. SOUND = CreateSound(ID, ORB, 5, 1, true)
  782. else
  783. SOUND:remove()
  784. SOUND = CreateSound(ID, ORB, 5, 1, true)
  785. end
  786. PLAYINGMUSIC = true
  787. elseif msg == "Orb, stop music" then
  788. if SOUND ~= nil then
  789. SOUND:remove()
  790. PLAYINGMUSIC = false
  791. elseif msg == "Orb, do you like me?" then
  792. CreateSound("269597232", ORB, 1, 1, false)
  793. end
  794. end
  795. end
  796. Player.Chatted:connect(onChatted)
  797.  
  798. --//=================================\\
  799. --|| ABILITIES
  800. --\\=================================//
  801.  
  802. function turnto(pos,part)
  803. part.CFrame = CF(part.Position,VT(pos.X,RootPart.Position.Y,pos.Z))
  804. end
  805.  
  806. function Warp()
  807. ATTACK = true
  808. Rooted = true
  809. CUSTOMMOVEMENT = true
  810. grav.position = RootPart.CFrame.p
  811. Swait(50)
  812. CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ORB, 2, MRANDOM(8, 9) / 10,false)
  813. for i = 1, 25 do
  814. Swait()
  815. X = X + 1
  816. Y = X
  817. Z = X
  818. end
  819. local weld = weldBetween(Torso,ORB)
  820. grav.position = VT(Mouse.Hit.p.X,Mouse.Hit.p.Y+4,Mouse.Hit.p.Z)
  821. Swait(50)
  822. CUSTOMMOVEMENT = false
  823. weld:remove()
  824. for i = 1, 25 do
  825. Swait()
  826. X = X - 1
  827. Y = X
  828. Z = X
  829. end
  830. ATTACK = false
  831. Rooted = false
  832. end
  833.  
  834. function StartFlight()
  835. Rooted = true
  836. CUSTOMMOVEMENT = true
  837. grav.position = RootPart.Position
  838. Swait(50)
  839. grav.P = 500
  840. CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ORB, 2, MRANDOM(8, 9) / 10,false)
  841. for i = 1, 10 do
  842. Swait()
  843. X = X - 1
  844. Y = X
  845. Z = X
  846. end
  847. local weld = weldBetween(Torso,ORB)
  848. repeat
  849. Swait()
  850. grav.position = Mouse.Hit.p
  851. turnto(Mouse.Hit.p,RootPart)
  852. until FLIGHT == false
  853. grav.P = 20000
  854. CUSTOMMOVEMENT = false
  855. weld:remove()
  856. for i = 1, 10 do
  857. Swait()
  858. X = X + 1
  859. Y = X
  860. Z = X
  861. end
  862. Rooted = false
  863. end
  864.  
  865. function succnearest(position,range,force,doesbreak)
  866. for i,v in ipairs(workspace:GetChildren()) do
  867. local body = v:GetChildren()
  868. for part = 1, #body do
  869. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  870. if(body[part].Position - position).Magnitude < range then
  871. local bv = Instance.new("BodyVelocity")
  872. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  873. bv.velocity = CF(body[part].Position,position).lookVector*force
  874. bv.Parent = body[part]
  875. bv.Name = "SUCC"
  876. if v:FindFirstChild("Humanoid") and doesbreak == false then
  877. dealdamage(body[part],5,15,0,false,12,2)
  878. end
  879. if v.ClassName == "Model" and doesbreak == true then
  880. v:BreakJoints()
  881. end
  882. game:GetService("Debris"):AddItem(bv, 0.1)
  883. end
  884. end
  885. end
  886. if v.ClassName == "Part" then
  887. if v.Anchored == false and (v.Position - position).Magnitude < range then
  888. local bv = Instance.new("BodyVelocity")
  889. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  890. bv.velocity = CF(v.Position,position).lookVector*force
  891. bv.Parent = v
  892. bv.Name = "SUCC"
  893. game:GetService("Debris"):AddItem(bv, 0.1)
  894. end
  895. end
  896. end
  897. end
  898.  
  899. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  900. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  901. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  902. local dmg = math.random(min,max)
  903. if humanoid.Health > 0 then
  904. if beserk == true then
  905. humanoid.Health = 0
  906. else
  907. --CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  908. --hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  909. if math.random(1,100) < critrate+1 then
  910. humanoid.Health = humanoid.Health - dmg*critmultiplier
  911. --StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  912. else
  913. humanoid.Health = humanoid.Health - dmg
  914. --StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(255/255, 0, 0))
  915. end
  916. local defence = Instance.new("BoolValue",hit.Parent)
  917. defence.Name = ("HitBy"..Player.Name)
  918. game:GetService("Debris"):AddItem(defence, 0.5)
  919. end
  920. end
  921. end
  922. end
  923.  
  924. function Vacuum()
  925. CUSTOMMOVEMENT = true
  926. local succ = CreateSound("319444224", ORB, 0.3, 1, true)
  927. local harm = ORB.Touched:Connect(function(hit)
  928. if hit.Parent ~= Character and hit.Parent.ClassName ~= "Accessory" and hit.Parent ~= Effects and hit.Anchored == false then
  929. hit:remove()
  930. CreateSound("261732529", ORB, 3, 1,false)
  931. end
  932. end)
  933. repeat
  934. Swait()
  935. succnearest(ORB.Position,50,80,true)
  936. until VACUUM == false
  937. CUSTOMMOVEMENT = false
  938. succ:remove()
  939. harm:disconnect()
  940. end
  941.  
  942. function shootbullet()
  943. CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ORB, 2, MRANDOM(8, 9) / 10,false)
  944. local bullet = IT("Part",Effects)
  945. bullet.Size = VT(1,1,1)
  946. bullet.Shape = "Ball"
  947. bullet.Material = "Neon"
  948. bullet.Color = C3(0.5,0,1)
  949. local sparks = CreateParticles(bullet,VT(0,0,0),0,150,"Solid",true,true,2)
  950. bullet.CFrame = ORB.CFrame
  951. local bv = Instance.new("BodyVelocity")
  952. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  953. bv.velocity = CF(bullet.Position,Mouse.Hit.p).lookVector*200
  954. bv.Parent = bullet
  955. bv.Name = "MOVE"
  956. local loop = CreateSound(BULLETLOOPSOUND, bullet, 0.6, MRANDOM(9, 11) / 10,true)
  957. local HIT = false
  958. local harm = bullet.Touched:Connect(function(hit)
  959. if HIT == false and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= Effects then
  960. HIT = true
  961. coroutine.resume(coroutine.create(function()
  962. coroutine.resume(coroutine.create(function()
  963. for i = 1, 10 do
  964. Swait()
  965. bullet.Transparency = bullet.Transparency + 0.1
  966. end
  967. end))
  968. bullet.Anchored = true
  969. bullet.CanCollide = false
  970. sparks.Enabled = false
  971. local sparks2 = CreateParticles(bullet,VT(0,0,0),0,150,"Solid",true,true,7)
  972. loop.Volume = 3
  973. CreateSound(BULLETIMPACTSOUND, bullet, 2, MRANDOM(9, 11) / 10,false)
  974. for i = 1, 350 do
  975. Swait()
  976. succnearest(bullet.Position,15,25,false)
  977. end
  978. sparks2.Enabled = false
  979. for i = 1, 10 do
  980. Swait()
  981. loop.Volume = loop.Volume - (3/10)
  982. end
  983. bullet:remove()
  984. end))
  985. end
  986. end)
  987. end
  988.  
  989. function shoottoughbullet()
  990. CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ORB, 2, MRANDOM(8, 9) / 10,false)
  991. local bullet = IT("Part",Effects)
  992. bullet.Size = VT(3,3,3)
  993. bullet.Shape = "Ball"
  994. bullet.Material = "Neon"
  995. bullet.Color = C3(0.5,0,1)
  996. local sparks = CreateParticles(bullet,VT(0,0,0),0,150,"Solid",true,true,3.5)
  997. bullet.CFrame = ORB.CFrame
  998. local bv = Instance.new("BodyVelocity")
  999. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1000. bv.velocity = CF(bullet.Position,Mouse.Hit.p).lookVector*100
  1001. bv.Parent = bullet
  1002. bv.Name = "MOVE"
  1003. local loop = CreateSound(BULLETLOOPSOUND, bullet, 0.6, MRANDOM(5, 7) / 10,true)
  1004. local HIT = false
  1005. local harm = bullet.Touched:Connect(function(hit)
  1006. if HIT == false and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= Effects then
  1007. HIT = true
  1008. coroutine.resume(coroutine.create(function()
  1009. coroutine.resume(coroutine.create(function()
  1010. for i = 1, 10 do
  1011. Swait()
  1012. bullet.Transparency = bullet.Transparency + 0.1
  1013. end
  1014. end))
  1015. bullet.Anchored = true
  1016. bullet.CanCollide = false
  1017. sparks.Enabled = false
  1018. local sparks2 = CreateParticles(bullet,VT(0,0,0),0,150,"Solid",true,true,15)
  1019. loop.Volume = 3
  1020. CreateSound(BULLETIMPACTSOUND, bullet, 6, MRANDOM(5,7) / 10,false)
  1021. for i = 1, 50 do
  1022. Swait()
  1023. succnearest(bullet.Position,25,100,true)
  1024. end
  1025. sparks2.Enabled = false
  1026. for i = 1, 10 do
  1027. Swait()
  1028. loop.Volume = loop.Volume - (3/10)
  1029. end
  1030. bullet:remove()
  1031. end))
  1032. end
  1033. end)
  1034. end
  1035.  
  1036. function grab()
  1037. if Mouse.Target.Parent:FindFirstChild("Torso") then
  1038. local targ = Mouse.Target
  1039. GRABBED = true
  1040. targ.Anchored = true
  1041. CUSTOMMOVEMENT = true
  1042. grav.position = targ.Position
  1043. Swait(50)
  1044. if targ then
  1045. Swait(5)
  1046. targ.Anchored = false
  1047. CUSTOMMOVEMENT = false
  1048. repeat
  1049. Swait()
  1050. targ.CFrame = ORB.CFrame
  1051. until GRABBED == false or targ == nil
  1052. GRABBED = false
  1053. end
  1054. end
  1055. end
  1056.  
  1057. --//=================================\\
  1058. --|| ASSIGN THINGS TO KEYS
  1059. --\\=================================//
  1060.  
  1061. Humanoid.Changed:connect(function(Jump)
  1062. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1063. Humanoid.Jump = false
  1064. end
  1065. end)
  1066.  
  1067. function MouseDown(Mouse)
  1068. if ATTACK == false then
  1069. end
  1070. end
  1071.  
  1072. function MouseUp(Mouse)
  1073. HOLD = false
  1074. end
  1075.  
  1076. function KeyDown(Key)
  1077. if ATTACK == false then
  1078. if Key == "e" and VACUUM == false and FLIGHT == false and GRABBED == false then
  1079. Warp()
  1080. end
  1081. if Key == "z" and VACUUM == false and GRABBED == false then
  1082. if FLIGHT == false then
  1083. FLIGHT = true
  1084. StartFlight()
  1085. elseif FLIGHT == true then
  1086. FLIGHT = false
  1087. end
  1088. end
  1089. if Key == "h" then
  1090. shootbullet()
  1091. end
  1092. if Key == "]" then
  1093. shoottoughbullet()
  1094. end
  1095. if Key == "c" and VACUUM == false then
  1096. if GRABBED == false then
  1097. grab()
  1098. elseif GRABBED == true then
  1099. GRABBED = false
  1100. end
  1101. end
  1102. if Key == "x" then
  1103. if VACUUM == false then
  1104. VACUUM = true
  1105. Vacuum()
  1106. elseif VACUUM == true then
  1107. VACUUM = false
  1108. end
  1109. end
  1110. end
  1111. end
  1112.  
  1113. function KeyUp(Key)
  1114. end
  1115.  
  1116. Mouse.Button1Down:connect(function(NEWKEY)
  1117. MouseDown(NEWKEY)
  1118. end)
  1119. Mouse.Button1Up:connect(function(NEWKEY)
  1120. MouseUp(NEWKEY)
  1121. end)
  1122. Mouse.KeyDown:connect(function(NEWKEY)
  1123. KeyDown(NEWKEY)
  1124. end)
  1125. Mouse.KeyUp:connect(function(NEWKEY)
  1126. KeyUp(NEWKEY)
  1127. end)
  1128.  
  1129. --//=================================\\
  1130. --\\=================================//
  1131.  
  1132.  
  1133. function unanchor()
  1134. if UNANCHOR == true then
  1135. g = Character:GetChildren()
  1136. for i = 1, #g do
  1137. if g[i].ClassName == "Part" then
  1138. g[i].Anchored = false
  1139. end
  1140. end
  1141. end
  1142. end
  1143.  
  1144.  
  1145. --//=================================\\
  1146. --|| WRAP THE WHOLE SCRIPT UP
  1147. --\\=================================//
  1148.  
  1149. Humanoid.Changed:connect(function(Jump)
  1150. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1151. Humanoid.Jump = false
  1152. end
  1153. end)
  1154.  
  1155. local loop = 0
  1156. local aaa = 1/2
  1157. local loop2 = 0
  1158.  
  1159. while true do
  1160. Swait()
  1161. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1162. SINE = SINE + CHANGE
  1163. if #Effects2>0 then
  1164. for e=1,#Effects2 do
  1165. if Effects2[e]~=nil then
  1166. local Thing=Effects2[e]
  1167. if Thing~=nil then
  1168. local Part=Thing[1]
  1169. local Mode=Thing[2]
  1170. local Delay=Thing[3]
  1171. local IncX=Thing[4]
  1172. local IncY=Thing[5]
  1173. local IncZ=Thing[6]
  1174. local Part2=Thing[8]
  1175. if Thing[1].Transparency<=1 then
  1176. if Thing[2]=="Block1" then
  1177. Thing[1].CFrame=Thing[1].CFrame
  1178. Mesh=Thing[1].Mesh
  1179. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1180. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1181. elseif Thing[2]=="Cylinder" then
  1182. Mesh=Thing[1].Mesh
  1183. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1184. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1185. elseif Thing[2]=="Blood" then
  1186. Mesh=Thing[7]
  1187. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1188. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1189. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1190. elseif Thing[2]=="Elec" then
  1191. Mesh=Thing[1].Mesh
  1192. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1193. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1194. elseif Thing[2]=="Disappear" then
  1195. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1196. end
  1197. else
  1198. Part.Parent=nil
  1199. table.remove(Effects2,e)
  1200. end
  1201. end
  1202. end
  1203. end
  1204. end
  1205. unanchor()
  1206. Humanoid.MaxHealth = "inf"
  1207. Humanoid.Health = "inf"
  1208. if Rooted == false then
  1209. Disable_Jump = false
  1210. Humanoid.WalkSpeed = Speed
  1211. elseif Rooted == true then
  1212. Disable_Jump = true
  1213. Humanoid.WalkSpeed = 0
  1214. end
  1215. if CUSTOMMOVEMENT == false then
  1216. loop = loop + aaa
  1217. grav.position = RootPart.CFrame*CF(4,1+loop/10,1).p
  1218. if loop == 45/2 then
  1219. aaa = -1/2
  1220. elseif loop == -15/2 then
  1221. aaa = 1/2
  1222. end
  1223. else
  1224. end
  1225. if PLAYINGMUSIC == true then
  1226. Orbmesh.Scale = VT(X+SOUND.PlaybackLoudness/70,Y+SOUND.PlaybackLoudness/70,Z+SOUND.PlaybackLoudness/70)
  1227. else
  1228. Orbmesh.Scale = VT(X,Y,Z)
  1229. end
  1230. ORB.Anchored = false
  1231. end
  1232.  
  1233. --//=================================\\
  1234. --\\=================================//
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240. --//====================================================\\--
  1241. --|| END OF SCRIPT
  1242. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement