Advertisement
Fogdoggy

BlackHole

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