Advertisement
HenloMyDude

some bad hopeless thing idk

Jul 27th, 2019
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.41 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,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. local rp = RealPlayer
  6. script.Parent = rp.Character
  7.  
  8. --RemoteEvent for communicating
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local function fakeEvent()
  14. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  15. t.connect = t.Connect
  16. return t
  17. end
  18.  
  19. --Creating fake input objects with fake variables
  20. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24. end}
  25. --Merged 2 functions into one by checking amount of arguments
  26. CAS.UnbindAction = CAS.BindAction
  27.  
  28. --This function will trigger the events that have been :Connect()'ed
  29. local function te(self,ev,...)
  30. local t = m[ev]
  31. if t and t._fakeEvent then
  32. for _,f in pairs(t.Functions) do
  33. f(...)
  34. end
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=rp then return end
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. if not io.isMouse then
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local Mouse = Player:GetMouse()
  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,Hit=Mouse.Hit,Target=Mouse.Target})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83.  
  84. ----Sandboxed game object that allows the usage of client-side methods and services
  85. --Real game object
  86. local _rg = game
  87.  
  88. --Metatable for fake service
  89. local fsmt = {
  90. __index = function(self,k)
  91. local s = rawget(self,"_RealService")
  92. if s then return s[k] end
  93. end,
  94. __newindex = function(self,k,v)
  95. local s = rawget(self,"_RealService")
  96. if s then s[k]=v end
  97. end,
  98. __call = function(self,...)
  99. local s = rawget(self,"_RealService")
  100. if s then return s(...) end
  101. end
  102. }
  103. local function FakeService(t,RealService)
  104. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  105. return setmetatable(t,fsmt)
  106. end
  107.  
  108. --Fake game object
  109. local g = {
  110. GetService = function(self,s)
  111. return self[s]
  112. end,
  113. Players = FakeService({
  114. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  115. },"Players"),
  116. UserInputService = FakeService(UIS,"UserInputService"),
  117. ContextActionService = FakeService(CAS,"ContextActionService"),
  118. }
  119. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  120. g.service = g.GetService
  121.  
  122. g.RunService = FakeService({
  123. RenderStepped = _rg:GetService("RunService").Heartbeat,
  124. BindToRenderStep = function(self,name,_,fun)
  125.  
  126. end,
  127. UnbindFromRenderStep = function(self,name)
  128. self._btrs[name]:Disconnect()
  129. end,
  130. },"RunService")
  131.  
  132. setmetatable(g,{
  133. __index=function(self,s)
  134. return _rg:GetService(s) or typeof(_rg[s])=="function"
  135. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  136. end,
  137. __newindex = fsmt.__newindex,
  138. __call = fsmt.__call
  139. })
  140. --Changing owner to fake player object to support owner:GetMouse()
  141. game,owner = g,g.Players.LocalPlayer
  142. end
  143.  
  144. local cansilence = true
  145. local vapor = false
  146. local plr = game:service'Players'.LocalPlayer
  147. local char = plr.Character
  148. local hum = char.Humanoid
  149. local hed = char.Head
  150. local root = char.HumanoidRootPart
  151. local rootj = root.RootJoint
  152. local tors = char.Torso
  153. local ra = char["Right Arm"]
  154. local la = char["Left Arm"]
  155. local rl = char["Right Leg"]
  156. local ll = char["Left Leg"]
  157. local neck = tors["Neck"]
  158. local mouse = plr:GetMouse()
  159. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  160. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  161. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  162. local maincolor = BrickColor.new("Institutional white")
  163. -------------------------------------------------------
  164. --Start Good Stuff--
  165. -------------------------------------------------------
  166. cam = game.Workspace.CurrentCamera
  167. CF = CFrame.new
  168. angles = CFrame.Angles
  169. attack = false
  170. Euler = CFrame.fromEulerAnglesXYZ
  171. Rad = math.rad
  172. IT = Instance.new
  173. BrickC = BrickColor.new
  174. Cos = math.cos
  175. Acos = math.acos
  176. Sin = math.sin
  177. Asin = math.asin
  178. Abs = math.abs
  179. Mrandom = math.random
  180. Floor = math.floor
  181. -------------------------------------------------------
  182. --End Good Stuff--
  183. -------------------------------------------------------
  184. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  185. RSH, LSH = nil, nil
  186. RW = Instance.new("Weld")
  187. LW = Instance.new("Weld")
  188. RH = tors["Right Hip"]
  189. LH = tors["Left Hip"]
  190. RSH = tors["Right Shoulder"]
  191. LSH = tors["Left Shoulder"]
  192. RSH.Parent = nil
  193. LSH.Parent = nil
  194. RW.Name = "RW"
  195. RW.Part0 = tors
  196. RW.C0 = CF(1.5, 0.5, 0)
  197. RW.C1 = CF(0, 0.5, 0)
  198. RW.Part1 = ra
  199. RW.Parent = tors
  200. LW.Name = "LW"
  201. LW.Part0 = tors
  202. LW.C0 = CF(-1.5, 0.5, 0)
  203. LW.C1 = CF(0, 0.5, 0)
  204. LW.Part1 = la
  205. LW.Parent = tors
  206. Effects = {}
  207. -------------------------------------------------------
  208. --Start HeartBeat--
  209. -------------------------------------------------------
  210. ArtificialHB = Instance.new("BindableEvent", script)
  211. ArtificialHB.Name = "Heartbeat"
  212. script:WaitForChild("Heartbeat")
  213.  
  214. frame = 1 / 60
  215. tf = 0
  216. allowframeloss = false
  217. tossremainder = false
  218.  
  219.  
  220. lastframe = tick()
  221. script.Heartbeat:Fire()
  222.  
  223.  
  224. game:GetService("RunService").Heartbeat:connect(function(s, p)
  225. tf = tf + s
  226. if tf >= frame then
  227. if allowframeloss then
  228. script.Heartbeat:Fire()
  229. lastframe = tick()
  230. else
  231. for i = 1, math.floor(tf / frame) do
  232. script.Heartbeat:Fire()
  233. end
  234. lastframe = tick()
  235. end
  236. if tossremainder then
  237. tf = 0
  238. else
  239. tf = tf - frame * math.floor(tf / frame)
  240. end
  241. end
  242. end)
  243. -------------------------------------------------------
  244. --End HeartBeat--
  245. -------------------------------------------------------
  246.  
  247. -------------------------------------------------------
  248. --Start Important Functions--
  249. -------------------------------------------------------
  250. function swait(num)
  251. if num == 0 or num == nil then
  252. game:service("RunService").Stepped:wait(0)
  253. else
  254. for i = 0, num do
  255. game:service("RunService").Stepped:wait(0)
  256. end
  257. end
  258. end
  259. function thread(f)
  260. coroutine.resume(coroutine.create(f))
  261. end
  262. function clerp(a, b, t)
  263. local qa = {
  264. QuaternionFromCFrame(a)
  265. }
  266. local qb = {
  267. QuaternionFromCFrame(b)
  268. }
  269. local ax, ay, az = a.x, a.y, a.z
  270. local bx, by, bz = b.x, b.y, b.z
  271. local _t = 1 - t
  272. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  273. end
  274. function QuaternionFromCFrame(cf)
  275. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  276. local trace = m00 + m11 + m22
  277. if trace > 0 then
  278. local s = math.sqrt(1 + trace)
  279. local recip = 0.5 / s
  280. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  281. else
  282. local i = 0
  283. if m00 < m11 then
  284. i = 1
  285. end
  286. if m22 > (i == 0 and m00 or m11) then
  287. i = 2
  288. end
  289. if i == 0 then
  290. local s = math.sqrt(m00 - m11 - m22 + 1)
  291. local recip = 0.5 / s
  292. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  293. elseif i == 1 then
  294. local s = math.sqrt(m11 - m22 - m00 + 1)
  295. local recip = 0.5 / s
  296. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  297. elseif i == 2 then
  298. local s = math.sqrt(m22 - m00 - m11 + 1)
  299. local recip = 0.5 / s
  300. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  301. end
  302. end
  303. end
  304. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  305. local xs, ys, zs = x + x, y + y, z + z
  306. local wx, wy, wz = w * xs, w * ys, w * zs
  307. local xx = x * xs
  308. local xy = x * ys
  309. local xz = x * zs
  310. local yy = y * ys
  311. local yz = y * zs
  312. local zz = z * zs
  313. 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))
  314. end
  315. function QuaternionSlerp(a, b, t)
  316. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  317. local startInterp, finishInterp
  318. if cosTheta >= 1.0E-4 then
  319. if 1 - cosTheta > 1.0E-4 then
  320. local theta = math.acos(cosTheta)
  321. local invSinTheta = 1 / Sin(theta)
  322. startInterp = Sin((1 - t) * theta) * invSinTheta
  323. finishInterp = Sin(t * theta) * invSinTheta
  324. else
  325. startInterp = 1 - t
  326. finishInterp = t
  327. end
  328. elseif 1 + cosTheta > 1.0E-4 then
  329. local theta = math.acos(-cosTheta)
  330. local invSinTheta = 1 / Sin(theta)
  331. startInterp = Sin((t - 1) * theta) * invSinTheta
  332. finishInterp = Sin(t * theta) * invSinTheta
  333. else
  334. startInterp = t - 1
  335. finishInterp = t
  336. end
  337. 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
  338. end
  339. function rayCast(Position, Direction, Range, Ignore)
  340. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  341. end
  342. local RbxUtility = LoadLibrary("RbxUtility")
  343. local Create = RbxUtility.Create
  344.  
  345. SONG = 1564523997
  346.  
  347. -------------------------------------------------------
  348. --Start Damage Function--
  349. -------------------------------------------------------
  350. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  351. if hit.Parent == nil then
  352. return
  353. end
  354. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  355. for _, v in pairs(hit.Parent:children()) do
  356. if v:IsA("Humanoid") then
  357. h = v
  358. end
  359. end
  360. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  361.  
  362. hit.Parent:FindFirstChild("Head"):BreakJoints()
  363. end
  364.  
  365. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  366. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  367. if hit.Parent.DebounceHit.Value == true then
  368. return
  369. end
  370. end
  371. if insta == true then
  372. hit.Parent:FindFirstChild("Head"):BreakJoints()
  373. end
  374. local c = Create("ObjectValue"){
  375. Name = "creator",
  376. Value = game:service("Players").LocalPlayer,
  377. Parent = h,
  378. }
  379. game:GetService("Debris"):AddItem(c, .5)
  380. if HitSound ~= nil and HitPitch ~= nil then
  381. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  382. end
  383. local Damage = math.random(minim, maxim)
  384. local blocked = false
  385. local block = hit.Parent:findFirstChild("Block")
  386. if block ~= nil then
  387. if block.className == "IntValue" then
  388. if block.Value > 0 then
  389. blocked = true
  390. block.Value = block.Value - 1
  391. print(block.Value)
  392. end
  393. end
  394. end
  395. if blocked == false then
  396. h.Health = h.Health - Damage
  397. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  398. else
  399. h.Health = h.Health - (Damage / 2)
  400. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  401. end
  402. if Type == "Knockdown" then
  403. local hum = hit.Parent.Humanoid
  404. hum.PlatformStand = true
  405. coroutine.resume(coroutine.create(function(HHumanoid)
  406. swait(1)
  407. HHumanoid.PlatformStand = false
  408. end), hum)
  409. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  410. local bodvol = Create("BodyVelocity"){
  411. velocity = angle * knockback,
  412. P = 5000,
  413. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  414. Parent = hit,
  415. }
  416. local rl = Create("BodyAngularVelocity"){
  417. P = 3000,
  418. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  419. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  420. Parent = hit,
  421. }
  422. game:GetService("Debris"):AddItem(bodvol, .5)
  423. game:GetService("Debris"):AddItem(rl, .5)
  424. elseif Type == "Normal" then
  425. local vp = Create("BodyVelocity"){
  426. P = 500,
  427. maxForce = Vector3.new(math.huge, 0, math.huge),
  428. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  429. }
  430. if knockback > 0 then
  431. vp.Parent = hit.Parent.Torso
  432. end
  433. game:GetService("Debris"):AddItem(vp, .5)
  434. elseif Type == "Up" then
  435. local bodyVelocity = Create("BodyVelocity"){
  436. velocity = Vector3.new(0, 20, 0),
  437. P = 5000,
  438. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  439. Parent = hit,
  440. }
  441. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  442. elseif Type == "DarkUp" then
  443. coroutine.resume(coroutine.create(function()
  444. for i = 0, 1, 0.1 do
  445. swait()
  446. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  447. end
  448. end))
  449. local bodyVelocity = Create("BodyVelocity"){
  450. velocity = Vector3.new(0, 20, 0),
  451. P = 5000,
  452. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  453. Parent = hit,
  454. }
  455. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  456. elseif Type == "Snare" then
  457. local bp = Create("BodyPosition"){
  458. P = 2000,
  459. D = 100,
  460. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  461. position = hit.Parent.Torso.Position,
  462. Parent = hit.Parent.Torso,
  463. }
  464. game:GetService("Debris"):AddItem(bp, 1)
  465. elseif Type == "Freeze" then
  466. local BodPos = Create("BodyPosition"){
  467. P = 50000,
  468. D = 1000,
  469. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  470. position = hit.Parent.Torso.Position,
  471. Parent = hit.Parent.Torso,
  472. }
  473. local BodGy = Create("BodyGyro") {
  474. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  475. P = 20e+003,
  476. Parent = hit.Parent.Torso,
  477. cframe = hit.Parent.Torso.CFrame,
  478. }
  479. hit.Parent.Torso.Anchored = true
  480. coroutine.resume(coroutine.create(function(Part)
  481. swait(1.5)
  482. Part.Anchored = false
  483. end), hit.Parent.Torso)
  484. game:GetService("Debris"):AddItem(BodPos, 3)
  485. game:GetService("Debris"):AddItem(BodGy, 3)
  486. end
  487. local debounce = Create("BoolValue"){
  488. Name = "DebounceHit",
  489. Parent = hit.Parent,
  490. Value = true,
  491. }
  492. game:GetService("Debris"):AddItem(debounce, Delay)
  493. c = Create("ObjectValue"){
  494. Name = "creator",
  495. Value = Player,
  496. Parent = h,
  497. }
  498. game:GetService("Debris"):AddItem(c, .5)
  499. end
  500. end
  501. -------------------------------------------------------
  502. --End Damage Function--
  503. -------------------------------------------------------
  504.  
  505. -------------------------------------------------------
  506. --Start Damage Function Customization--
  507. -------------------------------------------------------
  508. function ShowDamage(Pos, Text, Time, Color)
  509. local Rate = (1 / 30)
  510. local Pos = (Pos or Vector3.new(0, 0, 0))
  511. local Text = (Text or "")
  512. local Time = (Time or 2)
  513. local Color = (Color or Color3.new(1, 0, 1))
  514. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  515. EffectPart.Anchored = true
  516. local BillboardGui = Create("BillboardGui"){
  517. Size = UDim2.new(3, 0, 3, 0),
  518. Adornee = EffectPart,
  519. Parent = EffectPart,
  520. }
  521. local TextLabel = Create("TextLabel"){
  522. BackgroundTransparency = 1,
  523. Size = UDim2.new(1, 0, 1, 0),
  524. Text = Text,
  525. Font = "Bodoni",
  526. TextColor3 = Color,
  527. TextScaled = true,
  528. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  529. Parent = BillboardGui,
  530. }
  531. game.Debris:AddItem(EffectPart, (Time))
  532. EffectPart.Parent = game:GetService("Workspace")
  533. delay(0, function()
  534. local Frames = (Time / Rate)
  535. for Frame = 1, Frames do
  536. wait(Rate)
  537. local Percent = (Frame / Frames)
  538. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  539. TextLabel.TextTransparency = Percent
  540. end
  541. if EffectPart and EffectPart.Parent then
  542. EffectPart:Destroy()
  543. end
  544. end)
  545. end
  546. -------------------------------------------------------
  547. --End Damage Function Customization--
  548. -------------------------------------------------------
  549.  
  550. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  551. for _, c in pairs(workspace:children()) do
  552. local hum = c:findFirstChild("Humanoid")
  553. if hum ~= nil then
  554. local head = c:findFirstChild("Head")
  555. if head ~= nil then
  556. local targ = head.Position - Part.Position
  557. local mag = targ.magnitude
  558. if magni >= mag and c.Name ~= plr.Name then
  559. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  560. end
  561. end
  562. end
  563. end
  564. end
  565.  
  566.  
  567. CFuncs = {
  568. Part = {
  569. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  570. local Part = Create("Part")({
  571. Parent = Parent,
  572. Reflectance = Reflectance,
  573. Transparency = Transparency,
  574. CanCollide = false,
  575. Locked = true,
  576. BrickColor = BrickColor.new(tostring(BColor)),
  577. Name = Name,
  578. Size = Size,
  579. Material = Material
  580. })
  581. RemoveOutlines(Part)
  582. return Part
  583. end
  584. },
  585. Mesh = {
  586. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  587. local Msh = Create(Mesh)({
  588. Parent = Part,
  589. Offset = OffSet,
  590. Scale = Scale
  591. })
  592. if Mesh == "SpecialMesh" then
  593. Msh.MeshType = MeshType
  594. Msh.MeshId = MeshId
  595. end
  596. return Msh
  597. end
  598. },
  599. Mesh = {
  600. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  601. local Msh = Create(Mesh)({
  602. Parent = Part,
  603. Offset = OffSet,
  604. Scale = Scale
  605. })
  606. if Mesh == "SpecialMesh" then
  607. Msh.MeshType = MeshType
  608. Msh.MeshId = MeshId
  609. end
  610. return Msh
  611. end
  612. },
  613. Weld = {
  614. Create = function(Parent, Part0, Part1, C0, C1)
  615. local Weld = Create("Weld")({
  616. Parent = Parent,
  617. Part0 = Part0,
  618. Part1 = Part1,
  619. C0 = C0,
  620. C1 = C1
  621. })
  622. return Weld
  623. end
  624. },
  625. Sound = {
  626. Create = function(id, par, vol, pit)
  627. coroutine.resume(coroutine.create(function()
  628. local S = Create("Sound")({
  629. Volume = vol,
  630. Pitch = pit or 1,
  631. SoundId = id,
  632. Parent = par or workspace
  633. })
  634. wait()
  635. S:play()
  636. game:GetService("Debris"):AddItem(S, 6)
  637. end))
  638. end
  639. },
  640. ParticleEmitter = {
  641. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  642. local fp = Create("ParticleEmitter")({
  643. Parent = Parent,
  644. Color = ColorSequence.new(Color1, Color2),
  645. LightEmission = LightEmission,
  646. Size = Size,
  647. Texture = Texture,
  648. Transparency = Transparency,
  649. ZOffset = ZOffset,
  650. Acceleration = Accel,
  651. Drag = Drag,
  652. LockedToPart = LockedToPart,
  653. VelocityInheritance = VelocityInheritance,
  654. EmissionDirection = EmissionDirection,
  655. Enabled = Enabled,
  656. Lifetime = LifeTime,
  657. Rate = Rate,
  658. Rotation = Rotation,
  659. RotSpeed = RotSpeed,
  660. Speed = Speed,
  661. VelocitySpread = VelocitySpread
  662. })
  663. return fp
  664. end
  665. }
  666. }
  667. function RemoveOutlines(part)
  668. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  669. end
  670. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  671. local Part = Create("Part")({
  672. formFactor = FormFactor,
  673. Parent = Parent,
  674. Reflectance = Reflectance,
  675. Transparency = Transparency,
  676. CanCollide = false,
  677. Locked = true,
  678. BrickColor = BrickColor.new(tostring(BColor)),
  679. Name = Name,
  680. Size = Size,
  681. Material = Material
  682. })
  683. RemoveOutlines(Part)
  684. return Part
  685. end
  686. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  687. local Msh = Create(Mesh)({
  688. Parent = Part,
  689. Offset = OffSet,
  690. Scale = Scale
  691. })
  692. if Mesh == "SpecialMesh" then
  693. Msh.MeshType = MeshType
  694. Msh.MeshId = MeshId
  695. end
  696. return Msh
  697. end
  698. function CreateWeld(Parent, Part0, Part1, C0, C1)
  699. local Weld = Create("Weld")({
  700. Parent = Parent,
  701. Part0 = Part0,
  702. Part1 = Part1,
  703. C0 = C0,
  704. C1 = C1
  705. })
  706. return Weld
  707. end
  708.  
  709.  
  710. -------------------------------------------------------
  711. --Start Effect Function--
  712. -------------------------------------------------------
  713. EffectModel = Instance.new("Model", char)
  714. Effects = {
  715. Block = {
  716. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  717. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  718. prt.Anchored = true
  719. prt.CFrame = cframe
  720. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  721. game:GetService("Debris"):AddItem(prt, 10)
  722. if Type == 1 or Type == nil then
  723. table.insert(Effects, {
  724. prt,
  725. "Block1",
  726. delay,
  727. x3,
  728. y3,
  729. z3,
  730. msh
  731. })
  732. elseif Type == 2 then
  733. table.insert(Effects, {
  734. prt,
  735. "Block2",
  736. delay,
  737. x3,
  738. y3,
  739. z3,
  740. msh
  741. })
  742. else
  743. table.insert(Effects, {
  744. prt,
  745. "Block3",
  746. delay,
  747. x3,
  748. y3,
  749. z3,
  750. msh
  751. })
  752. end
  753. end
  754. },
  755. Sphere = {
  756. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  757. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  758. prt.Anchored = true
  759. prt.CFrame = cframe
  760. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  761. game:GetService("Debris"):AddItem(prt, 10)
  762. table.insert(Effects, {
  763. prt,
  764. "Cylinder",
  765. delay,
  766. x3,
  767. y3,
  768. z3,
  769. msh
  770. })
  771. end
  772. },
  773. Cylinder = {
  774. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  775. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  776. prt.Anchored = true
  777. prt.CFrame = cframe
  778. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  779. game:GetService("Debris"):AddItem(prt, 10)
  780. table.insert(Effects, {
  781. prt,
  782. "Cylinder",
  783. delay,
  784. x3,
  785. y3,
  786. z3,
  787. msh
  788. })
  789. end
  790. },
  791. Wave = {
  792. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  793. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  794. prt.Anchored = true
  795. prt.CFrame = cframe
  796. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  797. game:GetService("Debris"):AddItem(prt, 10)
  798. table.insert(Effects, {
  799. prt,
  800. "Cylinder",
  801. delay,
  802. x3 / 60,
  803. y3 / 60,
  804. z3 / 60,
  805. msh
  806. })
  807. end
  808. },
  809. Ring = {
  810. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  811. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  812. prt.Anchored = true
  813. prt.CFrame = cframe
  814. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  815. game:GetService("Debris"):AddItem(prt, 10)
  816. table.insert(Effects, {
  817. prt,
  818. "Cylinder",
  819. delay,
  820. x3,
  821. y3,
  822. z3,
  823. msh
  824. })
  825. end
  826. },
  827. Break = {
  828. Create = function(brickcolor, cframe, x1, y1, z1)
  829. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  830. prt.Anchored = true
  831. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  832. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  833. local num = math.random(10, 50) / 1000
  834. game:GetService("Debris"):AddItem(prt, 10)
  835. table.insert(Effects, {
  836. prt,
  837. "Shatter",
  838. num,
  839. prt.CFrame,
  840. math.random() - math.random(),
  841. 0,
  842. math.random(50, 100) / 100
  843. })
  844. end
  845. },
  846. Spiral = {
  847. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  848. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  849. prt.Anchored = true
  850. prt.CFrame = cframe
  851. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  852. game:GetService("Debris"):AddItem(prt, 10)
  853. table.insert(Effects, {
  854. prt,
  855. "Cylinder",
  856. delay,
  857. x3,
  858. y3,
  859. z3,
  860. msh
  861. })
  862. end
  863. },
  864. Push = {
  865. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  866. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  867. prt.Anchored = true
  868. prt.CFrame = cframe
  869. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  870. game:GetService("Debris"):AddItem(prt, 10)
  871. table.insert(Effects, {
  872. prt,
  873. "Cylinder",
  874. delay,
  875. x3,
  876. y3,
  877. z3,
  878. msh
  879. })
  880. end
  881. }
  882. }
  883. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  884. local fp = IT("Part")
  885. fp.formFactor = formfactor
  886. fp.Parent = parent
  887. fp.Reflectance = reflectance
  888. fp.Transparency = transparency
  889. fp.CanCollide = false
  890. fp.Locked = true
  891. fp.BrickColor = brickcolor
  892. fp.Name = name
  893. fp.Size = size
  894. fp.Position = tors.Position
  895. RemoveOutlines(fp)
  896. fp.Material = "SmoothPlastic"
  897. fp:BreakJoints()
  898. return fp
  899. end
  900.  
  901. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  902. local mesh = IT(Mesh)
  903. mesh.Parent = part
  904. if Mesh == "SpecialMesh" then
  905. mesh.MeshType = meshtype
  906. if meshid ~= "nil" then
  907. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  908. end
  909. end
  910. mesh.Offset = offset
  911. mesh.Scale = scale
  912. return mesh
  913. end
  914.  
  915. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  916. local type = type
  917. local rng = Instance.new("Part", char)
  918. rng.Anchored = true
  919. rng.BrickColor = color
  920. rng.CanCollide = false
  921. rng.FormFactor = 3
  922. rng.Name = "Ring"
  923. rng.Material = "Neon"
  924. rng.Size = Vector3.new(1, 1, 1)
  925. rng.Transparency = 0
  926. rng.TopSurface = 0
  927. rng.BottomSurface = 0
  928. rng.CFrame = pos
  929. local rngm = Instance.new("SpecialMesh", rng)
  930. rngm.MeshType = MType
  931. rngm.Scale = scale
  932. local scaler2 = 1
  933. if type == "Add" then
  934. scaler2 = 1 * value
  935. elseif type == "Divide" then
  936. scaler2 = 1 / value
  937. end
  938. coroutine.resume(coroutine.create(function()
  939. for i = 0, 10 / bonuspeed, 0.1 do
  940. swait()
  941. if type == "Add" then
  942. scaler2 = scaler2 - 0.01 * value / bonuspeed
  943. elseif type == "Divide" then
  944. scaler2 = scaler2 - 0.01 / value * bonuspeed
  945. end
  946. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  947. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  948. end
  949. rng:Destroy()
  950. end))
  951. end
  952.  
  953. function Eviscerate(dude)
  954. if dude.Name ~= char then
  955. local bgf = IT("BodyGyro", dude.Head)
  956. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  957. local val = IT("BoolValue", dude)
  958. val.Name = "IsHit"
  959. local ds = coroutine.wrap(function()
  960. dude:WaitForChild("Head"):BreakJoints()
  961. wait(0.5)
  962. target = nil
  963. coroutine.resume(coroutine.create(function()
  964. for i, v in pairs(dude:GetChildren()) do
  965. if v:IsA("Accessory") then
  966. v:Destroy()
  967. end
  968. if v:IsA("Humanoid") then
  969. v:Destroy()
  970. end
  971. if v:IsA("CharacterMesh") then
  972. v:Destroy()
  973. end
  974. if v:IsA("Model") then
  975. v:Destroy()
  976. end
  977. if v:IsA("Part") or v:IsA("MeshPart") then
  978. for x, o in pairs(v:GetChildren()) do
  979. if o:IsA("Decal") then
  980. o:Destroy()
  981. end
  982. end
  983. coroutine.resume(coroutine.create(function()
  984. v.Material = "Neon"
  985. v.CanCollide = false
  986. local PartEmmit1 = IT("ParticleEmitter", v)
  987. PartEmmit1.LightEmission = 1
  988. PartEmmit1.Texture = "rbxassetid://284205403"
  989. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  990. PartEmmit1.Rate = 150
  991. PartEmmit1.Lifetime = NumberRange.new(1)
  992. PartEmmit1.Size = NumberSequence.new({
  993. NumberSequenceKeypoint.new(0, 0.75, 0),
  994. NumberSequenceKeypoint.new(1, 0, 0)
  995. })
  996. PartEmmit1.Transparency = NumberSequence.new({
  997. NumberSequenceKeypoint.new(0, 0, 0),
  998. NumberSequenceKeypoint.new(1, 1, 0)
  999. })
  1000. PartEmmit1.Speed = NumberRange.new(0, 0)
  1001. PartEmmit1.VelocitySpread = 30000
  1002. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1003. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1004. local BodPoss = IT("BodyPosition", v)
  1005. BodPoss.P = 3000
  1006. BodPoss.D = 1000
  1007. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1008. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1009. v.Color = maincolor.Color
  1010. coroutine.resume(coroutine.create(function()
  1011. for i = 0, 49 do
  1012. swait(1)
  1013. v.Transparency = v.Transparency + 0.08
  1014. end
  1015. wait(0.5)
  1016. PartEmmit1.Enabled = false
  1017. wait(3)
  1018. v:Destroy()
  1019. dude:Destroy()
  1020. end))
  1021. end))
  1022. end
  1023. end
  1024. end))
  1025. end)
  1026. ds()
  1027. end
  1028. end
  1029.  
  1030. function FindNearestHead(Position, Distance, SinglePlayer)
  1031. if SinglePlayer then
  1032. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1033. end
  1034. local List = {}
  1035. for i, v in pairs(workspace:GetChildren()) do
  1036. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1037. table.insert(List, v)
  1038. end
  1039. end
  1040. return List
  1041. end
  1042.  
  1043. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1044. local type = type
  1045. local rng = Instance.new("Part", char)
  1046. rng.Anchored = true
  1047. rng.BrickColor = color
  1048. rng.CanCollide = false
  1049. rng.FormFactor = 3
  1050. rng.Name = "Ring"
  1051. rng.Material = "Neon"
  1052. rng.Size = Vector3.new(1, 1, 1)
  1053. rng.Transparency = 0
  1054. rng.TopSurface = 0
  1055. rng.BottomSurface = 0
  1056. rng.CFrame = pos
  1057. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1058. local rngm = Instance.new("SpecialMesh", rng)
  1059. rngm.MeshType = MType
  1060. rngm.Scale = Vector3.new(x1, y1, z1)
  1061. local scaler2 = 1
  1062. local speeder = FastSpeed
  1063. if type == "Add" then
  1064. scaler2 = 1 * value
  1065. elseif type == "Divide" then
  1066. scaler2 = 1 / value
  1067. end
  1068. coroutine.resume(coroutine.create(function()
  1069. for i = 0, 10 / bonuspeed, 0.1 do
  1070. swait()
  1071. if type == "Add" then
  1072. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1073. elseif type == "Divide" then
  1074. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1075. end
  1076. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1077. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1078. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1079. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1080. end
  1081. rng:Destroy()
  1082. end))
  1083. end
  1084.  
  1085. function SoulSteal(dude)
  1086. if dude.Name ~= char then
  1087. local bgf = IT("BodyGyro", dude.Head)
  1088. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1089. local val = IT("BoolValue", dude)
  1090. val.Name = "IsHit"
  1091. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1092. local soulst = coroutine.wrap(function()
  1093. local soul = Instance.new("Part",dude)
  1094. soul.Size = Vector3.new(1,1,1)
  1095. soul.CanCollide = false
  1096. soul.Anchored = false
  1097. soul.Position = torso.Position
  1098. soul.Transparency = 1
  1099. local PartEmmit1 = IT("ParticleEmitter", soul)
  1100. PartEmmit1.LightEmission = 1
  1101. PartEmmit1.Texture = "rbxassetid://569507414"
  1102. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1103. PartEmmit1.Rate = 250
  1104. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1105. PartEmmit1.Size = NumberSequence.new({
  1106. NumberSequenceKeypoint.new(0, 1, 0),
  1107. NumberSequenceKeypoint.new(1, 0, 0)
  1108. })
  1109. PartEmmit1.Transparency = NumberSequence.new({
  1110. NumberSequenceKeypoint.new(0, 0, 0),
  1111. NumberSequenceKeypoint.new(1, 1, 0)
  1112. })
  1113. PartEmmit1.Speed = NumberRange.new(0, 0)
  1114. PartEmmit1.VelocitySpread = 30000
  1115. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1116. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1117. local BodPoss = IT("BodyPosition", soul)
  1118. BodPoss.P = 3000
  1119. BodPoss.D = 1000
  1120. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1121. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1122. wait(1.6)
  1123. soul.Touched:connect(function(hit)
  1124. if hit.Parent == char then
  1125. soul:Destroy()
  1126. end
  1127. end)
  1128. wait(1.2)
  1129. while soul do
  1130. swait()
  1131. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1132. BodPoss.Position = tors.Position
  1133. end
  1134. end)
  1135. soulst()
  1136. end
  1137. end
  1138. function FaceMouse()
  1139. local Cam = workspace.CurrentCamera
  1140. return {
  1141. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1142. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1143. }
  1144. end
  1145. -------------------------------------------------------
  1146. --End Effect Function--
  1147. -------------------------------------------------------
  1148. function Cso(ID, PARENT, VOLUME, PITCH)
  1149. local NSound = nil
  1150. coroutine.resume(coroutine.create(function()
  1151. NSound = IT("Sound", PARENT)
  1152. NSound.Volume = VOLUME
  1153. NSound.Pitch = PITCH
  1154. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1155. swait()
  1156. NSound:play()
  1157. game:GetService("Debris"):AddItem(NSound, 10)
  1158. end))
  1159. return NSound
  1160. end
  1161. function CameraEnshaking(Length, Intensity)
  1162. coroutine.resume(coroutine.create(function()
  1163. local intensity = 1 * Intensity
  1164. local rotM = 0.01 * Intensity
  1165. for i = 0, Length, 0.1 do
  1166. swait()
  1167. intensity = intensity - 0.05 * Intensity / Length
  1168. rotM = rotM - 5.0E-4 * Intensity / Length
  1169. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1170. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1171. end
  1172. hum.CameraOffset = Vector3.new(0, 0, 0)
  1173. end))
  1174. end
  1175.  
  1176. function getRegion(point,range,ignore)
  1177. return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100)
  1178. end
  1179.  
  1180. function GetTorso(chars)
  1181. return chars:FindFirstChild'Torso' or chars:FindFirstChild'UpperTorso'
  1182. end
  1183.  
  1184. function ClosestHumanoid(pos,range)
  1185. local mag,closest = math.huge;
  1186. for _,v in next, getRegion(pos,range or 10,{char}) do
  1187. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')
  1188. if((v.CFrame.p-pos).magnitude < mag and hum and closest ~= hum and hum.Health > 0)then
  1189. mag = (v.CFrame.p-pos).magnitude
  1190. closest = hum
  1191. end
  1192. end
  1193. return closest,(closest and GetTorso(closest.Parent) or nil)
  1194. end
  1195.  
  1196. -------------------------------------------------------
  1197. --End Important Functions--
  1198. -------------------------------------------------------
  1199.  
  1200. New = function(Object, Parent, Name, Data)
  1201. local Object = Instance.new(Object)
  1202. for Index, Value in pairs(Data or {}) do
  1203. Object[Index] = Value
  1204. end
  1205. Object.Parent = Parent
  1206. Object.Name = Name
  1207. return Object
  1208. end
  1209.  
  1210. -------------------------------------------------------
  1211. --Start Character Creation--
  1212. -------------------------------------------------------
  1213.  
  1214. sine=0
  1215. local ModeOfGlitch = 1
  1216.  
  1217. for i,v in pairs(char:GetChildren()) do
  1218. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" or v.ClassName == "Accessory" then
  1219. v:Destroy()
  1220. end
  1221. end
  1222.  
  1223. maincolor = "Black"
  1224.  
  1225. local shirt = Instance.new("Shirt",char)
  1226. shirt.ShirtTemplate = "rbxassetid://2104684397"
  1227. local pants = Instance.new("Pants",char)
  1228. pants.PantsTemplate = "rbxassetid://3472643787"
  1229.  
  1230. tors.BrickColor = BrickColor.new("Really black")
  1231. la.BrickColor = tors.BrickColor
  1232. ra.BrickColor = tors.BrickColor
  1233. ll.BrickColor = tors.BrickColor
  1234. rl.BrickColor = tors.BrickColor
  1235. hed.BrickColor = BrickColor.new("White")
  1236.  
  1237. local mask = Instance.new("Part",char)
  1238. mask.CanCollide = false
  1239. mask.Size = Vector3.new(0.1, 0.1, 0.1)
  1240. mask.BrickColor = BrickColor.new("White")
  1241. local meshlol = Instance.new("SpecialMesh",mask)
  1242. meshlol.MeshId = "rbxassetid://13520257"
  1243. meshlol.Scale = Vector3.new(1.75, 1.64, 1.75)
  1244. local weldlol = Instance.new("Weld",mask)
  1245. weldlol.Part0 = mask
  1246. weldlol.Part1 = hed
  1247. weldlol.C0 = CFrame.new(0, 0, 0.89)
  1248.  
  1249. local caphat = Instance.new("Part",char)
  1250. caphat.CanCollide = false
  1251. caphat.Size = Vector3.new(0.1, 0.1, 0.1)
  1252. caphat.BrickColor = BrickColor.new("Really black")
  1253. local meshcap = Instance.new("SpecialMesh",caphat)
  1254. meshcap.MeshId = "rbxassetid://1095822"
  1255. meshcap.Scale = Vector3.new(2, 2.75, 2)
  1256. local weld = Instance.new("Weld",caphat)
  1257. weld.Part0 = caphat
  1258. weld.Part1 = hed
  1259. weld.C0 = CFrame.new(0, -1.25, 0)
  1260.  
  1261. hed.face.Texture = "rbxassetid://0"
  1262.  
  1263. local naeeym2 = Instance.new("BillboardGui",char)
  1264. naeeym2.AlwaysOnTop = true
  1265. naeeym2.Size = UDim2.new(5,35,2,15)
  1266. naeeym2.StudsOffset = Vector3.new(0, 5.3, 0)
  1267. naeeym2.Adornee = hed
  1268. local tecks2 = Instance.new("TextLabel",naeeym2)
  1269. tecks2.BackgroundTransparency = 1
  1270. tecks2.TextScaled = true
  1271. tecks2.BorderSizePixel = 0
  1272. tecks2.Text = "Solitude"
  1273. tecks2.Font = Enum.Font.Fantasy
  1274. tecks2.TextSize = 50
  1275. tecks2.TextStrokeTransparency = 0
  1276. tecks2.TextColor3 = Color3.new(0, 0, 0)
  1277. tecks2.TextStrokeColor3 = Color3.new(255, 255, 255)
  1278. tecks2.Size = UDim2.new(1,0,0.5,0)
  1279. tecks2.Parent = naeeym2
  1280. attack = false
  1281.  
  1282. char.Humanoid.MaxHealth = math.huge
  1283. char.Humanoid.Health = math.huge
  1284.  
  1285. local forcefield = Instance.new("ForceField",char)
  1286. forcefield.Visible = false
  1287.  
  1288. local LostHope = IT("Model",char)
  1289. LostHope.Name = "Model"
  1290.  
  1291. local Player_Size = 1.75
  1292.  
  1293. local r = 255
  1294. local g = 0
  1295. local b = 0
  1296. coroutine.resume(coroutine.create(function()
  1297. while wait() do
  1298. for i = 0, 254/5 do
  1299. swait()
  1300. g = g + 5
  1301. end
  1302. for i = 0, 254/5 do
  1303. swait()
  1304. r = r - 5
  1305. end
  1306. for i = 0, 254/5 do
  1307. swait()
  1308. b = b + 5
  1309. end
  1310. for i = 0, 254/5 do
  1311. swait()
  1312. g = g - 5
  1313. end
  1314. for i = 0, 254/5 do
  1315. swait()
  1316. r = r + 5
  1317. end
  1318. for i = 0, 254/5 do
  1319. swait()
  1320. b = b - 5
  1321. end
  1322. end
  1323. end))
  1324.  
  1325. -------------------------------------------------------
  1326. --End Character Creation--
  1327. -------------------------------------------------------
  1328. local Music = Instance.new("Sound",tors)
  1329. Music.Volume = 2.5
  1330. Music.Looped = true
  1331. Music.Pitch = 1 --Pitcher
  1332. Music.SoundId = "rbxassetid://1564523997"
  1333. Music:Play()
  1334. -------------------------------------------------------
  1335. --Start Mode Functions--
  1336. -------------------------------------------------------
  1337.  
  1338. function SolitudeMode()
  1339. ModeOfGlitch = 1
  1340. tecks2.Text = "Solitude"
  1341. SONG = 1564523997
  1342. Music.SoundId = "rbxassetid://1564523997"
  1343. mask.Transparency = 0
  1344. caphat.Transparency = 0
  1345. shirt.ShirtTemplate = "rbxassetid://2104684397"
  1346. pants.PantsTemplate = "rbxassetid://3472643787"
  1347. tecks2.TextColor3 = Color3.new(0, 0, 0)
  1348. tecks2.TextStrokeColor3 = Color3.new(255, 255, 255)
  1349. maincolor = "Black"
  1350.  
  1351. tors.BrickColor = BrickColor.new("Really black")
  1352. la.BrickColor = tors.BrickColor
  1353. ra.BrickColor = tors.BrickColor
  1354. ll.BrickColor = tors.BrickColor
  1355. rl.BrickColor = tors.BrickColor
  1356. hed.BrickColor = BrickColor.new("White")
  1357.  
  1358. for _,v in pairs (LostHope:children()) do
  1359. if v:IsA("Part") then
  1360. v.Color = BrickColor.new(maincolor).Color
  1361. end
  1362. end
  1363. end
  1364.  
  1365. function VaporwaveMode()
  1366. vapor = true
  1367. ModeOfGlitch = 8
  1368. tecks2.Text = "Vaporwave"
  1369. SONG = 1308711379
  1370. Music.SoundId = "rbxassetid://1308711379"
  1371. mask.Transparency = 0
  1372. caphat.Transparency = 0
  1373. shirt.ShirtTemplate = "rbxassetid://2104684397"
  1374. pants.PantsTemplate = "rbxassetid://3472643787"
  1375. tecks2.TextColor3 = Color3.new(r/255, g/255, b/255)
  1376. tecks2.TextStrokeColor3 = Color3.new(r/500, g/500, b/500)
  1377. maincolor = "White"
  1378.  
  1379. tors.Color = Color3.new(r/255, g/255, b/255)
  1380. la.BrickColor = tors.BrickColor
  1381. ra.BrickColor = tors.BrickColor
  1382. ll.BrickColor = tors.BrickColor
  1383. rl.BrickColor = tors.BrickColor
  1384. hed.BrickColor = BrickColor.new("White")
  1385.  
  1386. for _,v in pairs (LostHope:children()) do
  1387. if v:IsA("Part") then
  1388. v.Color = tors.Color
  1389. end
  1390. end
  1391. end
  1392.  
  1393. function RainbowMode()
  1394. vapor = false
  1395. tecks2.Text = "Rainbow"
  1396. SONG = 147930134
  1397. Music.SoundId = "rbxassetid://147930134"
  1398. mask.Transparency = 0
  1399. caphat.Transparency = 0
  1400. shirt.ShirtTemplate = "rbxassetid://2104684397"
  1401. pants.PantsTemplate = "rbxassetid://3472643787"
  1402. tecks2.TextColor3 = Color3.new(r/255, g/255, b/255)
  1403. tecks2.TextStrokeColor3 = Color3.new(r/500, g/500, b/500)
  1404. maincolor = "White"
  1405.  
  1406. tors.Color = Color3.new(r/255, g/255, b/255)
  1407. la.BrickColor = tors.BrickColor
  1408. ra.BrickColor = tors.BrickColor
  1409. ll.BrickColor = tors.BrickColor
  1410. rl.BrickColor = tors.BrickColor
  1411. hed.BrickColor = BrickColor.new("White")
  1412.  
  1413. for _,v in pairs (LostHope:children()) do
  1414. if v:IsA("Part") then
  1415. v.Color = tors.Color
  1416. end
  1417. end
  1418. end
  1419.  
  1420. function DivinityMode()
  1421. ModeOfGlitch = 5
  1422. tecks2.Text = "Divinity"
  1423. tecks2.TextColor3 = BrickColor.new("Bright yellow").Color
  1424. tecks2.TextStrokeColor3 = BrickColor.new("New Yeller").Color
  1425. SONG = 661079869
  1426. Music.SoundId = "rbxassetid://661079869"
  1427. mask.Transparency = 0
  1428. caphat.Transparency = 0
  1429. shirt.ShirtTemplate = "rbxassetid://2104684397"
  1430. pants.PantsTemplate = "rbxassetid://3472643787"
  1431.  
  1432. tors.BrickColor = BrickColor.new("New Yeller")
  1433. la.BrickColor = tors.BrickColor
  1434. ra.BrickColor = tors.BrickColor
  1435. ll.BrickColor = tors.BrickColor
  1436. rl.BrickColor = tors.BrickColor
  1437. hed.BrickColor = BrickColor.new("White")
  1438.  
  1439. maincolor = "New Yeller"
  1440. for _,v in pairs (LostHope:children()) do
  1441. if v:IsA("Part") then
  1442. v.Color = BrickColor.new(maincolor).Color
  1443. end
  1444. end
  1445. end
  1446.  
  1447. function PurityMode()
  1448. ModeOfGlitch = 2
  1449. tecks2.Text = "Purity"
  1450. tecks2.TextColor3 = BrickColor.new("Cyan").Color
  1451. tecks2.TextStrokeColor3 = BrickColor.new("White").Color
  1452. SONG = 1539245059
  1453. Music.SoundId = "rbxassetid://1539245059"
  1454. mask.Transparency = 0
  1455. caphat.Transparency = 0
  1456. shirt.ShirtTemplate = "rbxassetid://2104684397"
  1457. pants.PantsTemplate = "rbxassetid://3472643787"
  1458.  
  1459. tors.BrickColor = BrickColor.new("Cyan")
  1460. la.BrickColor = tors.BrickColor
  1461. ra.BrickColor = tors.BrickColor
  1462. ll.BrickColor = tors.BrickColor
  1463. rl.BrickColor = tors.BrickColor
  1464. hed.BrickColor = BrickColor.new("White")
  1465.  
  1466. maincolor = "Cyan"
  1467. for _,v in pairs (LostHope:children()) do
  1468. if v:IsA("Part") then
  1469. v.Color = BrickColor.new(maincolor).Color
  1470. end
  1471. end
  1472. end
  1473.  
  1474. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1475. local NEWWELD = IT(TYPE)
  1476. NEWWELD.Part0 = PART0
  1477. NEWWELD.Part1 = PART1
  1478. NEWWELD.C0 = C0
  1479. NEWWELD.C1 = C1
  1480. NEWWELD.Parent = PARENT
  1481. return NEWWELD
  1482. end
  1483.  
  1484. Head = hed
  1485.  
  1486. IT = Instance.new
  1487. CF = CFrame.new
  1488. VT = Vector3.new
  1489. RAD = math.rad
  1490. C3 = Color3.new
  1491. UD2 = UDim2.new
  1492. BRICKC = BrickColor.new
  1493. ANGLES = CFrame.Angles
  1494. EULER = CFrame.fromEulerAnglesXYZ
  1495. COS = math.cos
  1496. ACOS = math.acos
  1497. SIN = math.sin
  1498. ASIN = math.asin
  1499. ABS = math.abs
  1500. MRANDOM = math.random
  1501. FLOOR = math.floor
  1502.  
  1503. for i = 1, 24 do
  1504. local MATH = (1-(i/30))
  1505. if LASTPART == Head then
  1506. local Horn = CreatePart(3, LostHope, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1507. CreateWeldOrSnapOrMotor("Weld", LostHope, LASTPART, Horn, CF(0.7, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0))
  1508. LASTPART = Horn
  1509. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*2-2)/255))
  1510. else
  1511. local Horn = CreatePart(3, LostHope, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1512. CreateWeldOrSnapOrMotor("Weld", LostHope, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
  1513. LASTPART = Horn
  1514. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*2-2)/255))
  1515. end
  1516. end
  1517. local LASTPART = Head
  1518. for i = 1, 24 do
  1519. local MATH = (1-(i/30))
  1520. if LASTPART == Head then
  1521. local Horn = CreatePart(3, LostHope, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1522. CreateWeldOrSnapOrMotor("Weld", LostHope, LASTPART, Horn, CF(-0.7, 0.3, -0.4) * ANGLES(RAD(-25), RAD(-220), RAD(-90)), CF(0, 0, 0))
  1523. LASTPART = Horn
  1524. Horn.Color = BrickColor.new(maincolor).Color
  1525. else
  1526. local Horn = CreatePart(3, LostHope, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1527. CreateWeldOrSnapOrMotor("Weld", LostHope, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
  1528. LASTPART = Horn
  1529. Horn.Color = BrickColor.new(maincolor).Color
  1530. end
  1531. end
  1532. local LASTPART = Head
  1533. for i = 1, 8 do
  1534. local MATH = (1-(i/14))
  1535. if LASTPART == Head then
  1536. local Horn = CreatePart(3, LostHope, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1537. CreateWeldOrSnapOrMotor("Weld", LostHope, LASTPART, Horn, CF(0.55, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0))
  1538. LASTPART = Horn
  1539. Horn.Color = BrickColor.new(maincolor).Color
  1540. else
  1541. local Horn = CreatePart(3, LostHope, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1542. CreateWeldOrSnapOrMotor("Weld", LostHope, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
  1543. LASTPART = Horn
  1544. Horn.Color = BrickColor.new(maincolor).Color
  1545. end
  1546. end
  1547. local LASTPART = Head
  1548. for i = 1, 8 do
  1549. local MATH = (1-(i/14))
  1550. if LASTPART == Head then
  1551. local Horn = CreatePart(3, LostHope, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1552. CreateWeldOrSnapOrMotor("Weld", LostHope, LASTPART, Horn, CF(-0.55, -0.3, -0.4) * ANGLES(RAD(-25), RAD(-250), RAD(-90)), CF(0, 0, 0))
  1553. LASTPART = Horn
  1554. Horn.Color = BrickColor.new(maincolor).Color
  1555. else
  1556. local Horn = CreatePart(3, LostHope, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  1557. CreateWeldOrSnapOrMotor("Weld", LostHope, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
  1558. LASTPART = Horn
  1559. Horn.Color = BrickColor.new(maincolor).Color
  1560. end
  1561. end
  1562.  
  1563. function DivineExplosion()
  1564. if attack == false and ModeOfGlitch == 5 then
  1565.  
  1566. end
  1567. end
  1568. -------------------------------------------------------
  1569. --End Mode Functions--
  1570. -------------------------------------------------------
  1571. -------------------------------------------------------
  1572. --Start Attacks--
  1573. -------------------------------------------------------
  1574. mouse = owner:GetMouse()
  1575.  
  1576. function Beam()
  1577. if attack == false and ModeOfGlitch == 1 then
  1578. attack = true
  1579. local beam = Instance.new("Part",char)
  1580. beam.CanCollide = false
  1581. beam.Size = Vector3.new(3, 1000, 3)
  1582. beam.Anchored = true
  1583. beam.Position = mouse.Hit.p
  1584. beam.Material = "Neon"
  1585. beam.Transparency = 0.75
  1586. beam.BrickColor = BrickColor.new(maincolor)
  1587. beam.Touched:connect(function(hit)
  1588. Eviscerate(hit.Parent)
  1589. end)
  1590. local mesh = Instance.new("SpecialMesh",beam)
  1591. mesh.MeshType = "Sphere"
  1592. for i = 0,0.75,0.1 do
  1593. swait()
  1594. beam.Size = beam.Size + Vector3.new(0.1, 0.1, 0.1)
  1595. beam.Transparency = beam.Transparency - 0.01
  1596. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  1597. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1598. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.3 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  1599. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.3 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  1600. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(175), Rad(-.6), Rad(15)), 0.1)
  1601. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1602. end
  1603. for i = 0,0.75,0.1 do
  1604. swait()
  1605. beam.Size = beam.Size - Vector3.new(0.1, 0.1, 0.1)
  1606. beam.Transparency = beam.Transparency + 0.01
  1607. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  1608. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1609. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.3 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  1610. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.3 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  1611. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(175), Rad(-.6), Rad(15)), 0.1)
  1612. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1613. end
  1614. beam:Destroy()
  1615. attack = false
  1616. end
  1617. end
  1618.  
  1619. function Rush()
  1620. hum.JumpPower = 250
  1621. wait(.1)
  1622. hum.Jump = true
  1623. balls = Instance.new("Model",char)
  1624. balls.Name = "BallsEffect"
  1625. ball = Instance.new("Part",balls)
  1626. ball.CanCollide = false
  1627. ball.Anchored = true
  1628. ball.Shape = "Ball"
  1629. ball.Material = "Neon"
  1630. ball.BrickColor = BrickColor.new(maincolor)
  1631. ball.Size = Vector3.new(5, 5, 5)
  1632. ball.Transparency = 0
  1633. ball.Position = tors.Position
  1634. local terrible = Instance.new("SpecialMesh",ball)
  1635. terrible.MeshId = "rbxassetid://489415286"
  1636. terrible.Scale = Vector3.new(5, 0, 5)
  1637. wait(0.1)
  1638. ball.Orientation = ball.Orientation + Vector3.new(0, 25, 0)
  1639. ball.Transparency = ball.Transparency + 1
  1640. terrible.Scale = terrible.Scale + Vector3.new(0.5, 0.5, 0.5)
  1641. wait(0.1)
  1642. ball.Orientation = ball.Orientation + Vector3.new(0, 25, 0)
  1643. ball.Transparency = ball.Transparency + 1
  1644. terrible.Scale = terrible.Scale + Vector3.new(0.5, 0.5, 0.5)
  1645. wait(0.1)
  1646. ball.Orientation = ball.Orientation + Vector3.new(0, 25, 0)
  1647. ball.Transparency = ball.Transparency + 1
  1648. terrible.Scale = terrible.Scale + Vector3.new(0.5, 0.5, 0.5)
  1649. wait(0.1)
  1650. ball.Orientation = ball.Orientation + Vector3.new(0, 25, 0)
  1651. ball.Transparency = ball.Transparency + 1
  1652. terrible.Scale = terrible.Scale + Vector3.new(0.5, 0.5, 0.5)
  1653. wait(0.1)
  1654. ball.Orientation = ball.Orientation + Vector3.new(0, 25, 0)
  1655. ball.Transparency = ball.Transparency + 1
  1656. terrible.Scale = terrible.Scale + Vector3.new(0.5, 0.5, 0.5)
  1657. wait(0.5)
  1658. ball.Orientation = ball.Orientation + Vector3.new(0, 5, 0)
  1659. ball.Transparency = ball.Transparency + 1
  1660. terrible.Scale = terrible.Scale + Vector3.new(0.5, 0.5, 0.5)
  1661. hum.JumpPower = 74
  1662. balls:Destroy()
  1663. end
  1664. -------------------------------------------------------
  1665. --End Attacks--
  1666. -------------------------------------------------------
  1667. -------------------------------------------------------
  1668. --Start Keys--
  1669. -------------------------------------------------------
  1670.  
  1671. mouse.KeyDown:connect(function(key)
  1672. key=key:lower()
  1673. if key == 't' then
  1674. DivinityMode()
  1675. end
  1676. if key == 'q' then
  1677. SolitudeMode()
  1678. end
  1679. if key == 'e' then
  1680. PurityMode()
  1681. end
  1682. if key == 'u' then
  1683. if vapor then
  1684. RainbowMode()
  1685. else
  1686. VaporwaveMode()
  1687. end
  1688. end
  1689. if key == 'v' then
  1690. Beam()
  1691. end
  1692. if key == 'c' then
  1693. Rush()
  1694. end
  1695. end)
  1696.  
  1697. -------------------------------------------------------
  1698. --End Keys--
  1699. -------------------------------------------------------
  1700. -------------------------------------------------------
  1701. --Start Customization--
  1702. -------------------------------------------------------
  1703. local Player_Size = 1.75
  1704. if Player_Size ~= 1 then
  1705. root.Size = root.Size * Player_Size
  1706. tors.Size = tors.Size * Player_Size
  1707. hed.Size = hed.Size * Player_Size
  1708. ra.Size = ra.Size * Player_Size
  1709. la.Size = la.Size * Player_Size
  1710. rl.Size = rl.Size * Player_Size
  1711. ll.Size = ll.Size * Player_Size
  1712. ----------------------------------------------------------------------------------
  1713. rootj.Parent = root
  1714. neck.Parent = tors
  1715. RW.Parent = tors
  1716. LW.Parent = tors
  1717. RH.Parent = tors
  1718. LH.Parent = tors
  1719. ----------------------------------------------------------------------------------
  1720. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1721. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1722. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1723. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1724. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1725. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1726. ----------------------------------------------------------------------------------
  1727. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1728. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1729. RH.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))
  1730. LH.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))
  1731. --hat.Parent = Character
  1732. end
  1733. ----------------------------------------------------------------------------------
  1734. hum.WalkSpeed = 20
  1735. hum.JumpPower = 74
  1736. hum.Animator.Parent = nil
  1737. local equipped = false
  1738. local idle = 0
  1739. local change = 1
  1740. local val = 0
  1741. local toim = 0
  1742. local idleanim = 0.4
  1743. local sine = 0
  1744. local Sit = 1
  1745. local VALUE1 = false
  1746. local VALUE2 = false
  1747. -------------------------------------------------------
  1748. local SONG = 1564523997
  1749. local SONG2 = 0
  1750. -------------------------------------------------------
  1751. -------------------------------------------------------
  1752. --End Customization--
  1753. -------------------------------------------------------
  1754.  
  1755.  
  1756.  
  1757.  
  1758. -------------------------------------------------------
  1759. --Start Animations--
  1760. -------------------------------------------------------
  1761. while true do
  1762. swait()
  1763. sine = sine + change
  1764. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1765. local velderp = root.Velocity.y
  1766. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1767. if equipped == true or equipped == false then
  1768. if attack == false then
  1769. idle = idle + 1
  1770. else
  1771. idle = 0
  1772. end
  1773. if 1 < root.Velocity.y and hitfloor == nil then
  1774. Anim = "Jump"
  1775. if attack == false then
  1776. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.1)
  1777. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1778. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.1)
  1779. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.1)
  1780. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1781. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1782. end
  1783. if ModeOfGlitch == 8 then
  1784. mask.Transparency = 0
  1785. caphat.Transparency = 0
  1786. shirt.ShirtTemplate = "rbxassetid://2104684397"
  1787. pants.PantsTemplate = "rbxassetid://3472643787"
  1788. tecks2.TextColor3 = Color3.new(r/255, g/255, b/255)
  1789. tecks2.TextStrokeColor3 = Color3.new(r/500, g/500, b/500)
  1790. maincolor = "White"
  1791.  
  1792. tors.Color = Color3.new(r/255, g/255, b/255)
  1793. la.Color = tors.Color
  1794. ra.Color = tors.Color
  1795. ll.Color = tors.Color
  1796. rl.Color = tors.Color
  1797. hed.BrickColor = BrickColor.new("White")
  1798.  
  1799. for _,v in pairs (LostHope:children()) do
  1800. if v:IsA("Part") then
  1801. v.Color = tors.Color
  1802. end
  1803. end
  1804. end
  1805. elseif -1 > root.Velocity.y and hitfloor == nil then
  1806. Anim = "Fall"
  1807. if attack == false then
  1808. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.1)
  1809. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1810. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.1)
  1811. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.1)
  1812. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  1813. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  1814. end
  1815. if ModeOfGlitch == 8 then
  1816. mask.Transparency = 0
  1817. caphat.Transparency = 0
  1818. shirt.ShirtTemplate = "rbxassetid://2104684397"
  1819. pants.PantsTemplate = "rbxassetid://3472643787"
  1820. tecks2.TextColor3 = Color3.new(r/255, g/255, b/255)
  1821. tecks2.TextStrokeColor3 = Color3.new(r/500, g/500, b/500)
  1822. maincolor = "White"
  1823.  
  1824. tors.Color = Color3.new(r/255, g/255, b/255)
  1825. la.Color = tors.Color
  1826. ra.Color = tors.Color
  1827. ll.Color = tors.Color
  1828. rl.Color = tors.Color
  1829. hed.BrickColor = BrickColor.new("White")
  1830.  
  1831. for _,v in pairs (LostHope:children()) do
  1832. if v:IsA("Part") then
  1833. v.Color = tors.Color
  1834. end
  1835. end
  1836. end
  1837. elseif torvel < 1 and hitfloor ~= nil then
  1838. Anim = "Idle"
  1839. change = 1
  1840. if attack == false and ModeOfGlitch == 1 or ModeOfGlitch == 5 then
  1841. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  1842. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1843. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.3 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  1844. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.3 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  1845. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  1846. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  1847. end
  1848. if ModeOfGlitch == 2 or ModeOfGlitch == 8 and attack == false then
  1849.  
  1850. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  1851. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1852. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.3 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  1853. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.3 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  1854. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.75 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-76)), 0.1)
  1855. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.75 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(56)), 0.1)
  1856. end
  1857. if ModeOfGlitch == 8 then
  1858. mask.Transparency = 0
  1859. caphat.Transparency = 0
  1860. shirt.ShirtTemplate = "rbxassetid://2104684397"
  1861. pants.PantsTemplate = "rbxassetid://3472643787"
  1862. tecks2.TextColor3 = Color3.new(r/255, g/255, b/255)
  1863. tecks2.TextStrokeColor3 = Color3.new(r/500, g/500, b/500)
  1864. maincolor = "White"
  1865.  
  1866. tors.Color = Color3.new(r/255, g/255, b/255)
  1867. la.Color = tors.Color
  1868. ra.Color = tors.Color
  1869. ll.Color = tors.Color
  1870. rl.Color = tors.Color
  1871. hed.BrickColor = BrickColor.new("White")
  1872.  
  1873. for _,v in pairs (LostHope:children()) do
  1874. if v:IsA("Part") then
  1875. v.Color = tors.Color
  1876. end
  1877. end
  1878. end
  1879. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1880. Anim = "Walk"
  1881. change = 1
  1882. if attack == false then
  1883. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.25 + 0.3 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(-10 - 3 * Cos(sine / 7))), 0.1)
  1884. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(10 - 2 * Cos(sine / 7)) - hed.RotVelocity.Y / 15), 0.3)
  1885. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.3 - 0.1 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1886. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.3 - 0.1 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1887. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  1888. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  1889. end
  1890. if ModeOfGlitch == 8 then
  1891. mask.Transparency = 0
  1892. caphat.Transparency = 0
  1893. shirt.ShirtTemplate = "rbxassetid://2104684397"
  1894. pants.PantsTemplate = "rbxassetid://3472643787"
  1895. tecks2.TextColor3 = Color3.new(r/255, g/255, b/255)
  1896. tecks2.TextStrokeColor3 = Color3.new(r/500, g/500, b/500)
  1897. maincolor = "White"
  1898.  
  1899. tors.Color = Color3.new(r/255, g/255, b/255)
  1900. la.Color = tors.Color
  1901. ra.Color = tors.Color
  1902. ll.Color = tors.Color
  1903. rl.Color = tors.Color
  1904. hed.BrickColor = BrickColor.new("White")
  1905.  
  1906. for _,v in pairs (LostHope:children()) do
  1907. if v:IsA("Part") then
  1908. v.Color = tors.Color
  1909. end
  1910. end
  1911. end
  1912. end
  1913. end
  1914. Music.Looped = true
  1915. Music.Pitch = 1
  1916. Music.Volume = 5
  1917. Music.Parent = tors
  1918. Music:Resume()
  1919. if 0 < #Effects then
  1920. for e = 1, #Effects do
  1921. if Effects[e] ~= nil then
  1922. local Thing = Effects[e]
  1923. if Thing ~= nil then
  1924. local Part = Thing[1]
  1925. local Mode = Thing[2]
  1926. local Delay = Thing[3]
  1927. local IncX = Thing[4]
  1928. local IncY = Thing[5]
  1929. local IncZ = Thing[6]
  1930. if 1 >= Thing[1].Transparency then
  1931. if Thing[2] == "Block1" then
  1932. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1933. local Mesh = Thing[1].Mesh
  1934. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1935. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1936. elseif Thing[2] == "Block2" then
  1937. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1938. local Mesh = Thing[7]
  1939. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1940. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1941. elseif Thing[2] == "Block3" then
  1942. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1943. local Mesh = Thing[7]
  1944. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1945. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1946. elseif Thing[2] == "Cylinder" then
  1947. local Mesh = Thing[1].Mesh
  1948. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1949. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1950. elseif Thing[2] == "Blood" then
  1951. local Mesh = Thing[7]
  1952. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1953. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1954. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1955. elseif Thing[2] == "Elec" then
  1956. local Mesh = Thing[1].Mesh
  1957. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1958. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1959. elseif Thing[2] == "Disappear" then
  1960. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1961. elseif Thing[2] == "Shatter" then
  1962. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1963. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1964. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1965. Thing[6] = Thing[6] + Thing[5]
  1966. end
  1967. else
  1968. Part.Parent = nil
  1969. table.remove(Effects, e)
  1970. end
  1971. end
  1972. end
  1973. end
  1974. end
  1975. end
  1976. -------------------------------------------------------
  1977. --End Animations And Script--
  1978. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement