Advertisement
heyoooooooooo

Untitled

Jan 23rd, 2020
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 75.96 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local char = p.Character
  3. local Character = char
  4. local Mau5 = p:GetMouse()
  5. local larm = char["Left Arm"]
  6. local rarm = char["Right Arm"]
  7. local lleg = char["Left Leg"]
  8. local rleg = char["Right Leg"]
  9. local hed = char.Head
  10. local torso = char.Torso
  11. local hum = char.Humanoid
  12. local cam = game.Workspace.CurrentCamera
  13. local root = char.HumanoidRootPart
  14. local RootPart = root
  15. local felipe = Instance.new("SpecialMesh")
  16. felipe.MeshType = "FileMesh"
  17. felipe.MeshId = "rbxassetid://4125549274"
  18. felipe.TextureId = "rbxassetid://4125544592"
  19. felipe.Scale = Vector3.new(2.5,2.5,2.5)
  20. felipe.Parent = torso
  21. larm.Transparency = 1
  22. rarm.Transparency = 1
  23. lleg.Transparency = 1
  24. rleg.Transparency = 1
  25. hed.Transparency = 1
  26. local l = game:GetService("Lighting")
  27. local debris = game:GetService("Debris")
  28. local rs = game:GetService("RunService").RenderStepped
  29. local Damaged = {}
  30. it = Instance.new
  31. vt = Vector3.new
  32. cn = CFrame.new
  33. euler = CFrame.fromEulerAnglesXYZ
  34. angles = CFrame.Angles
  35. local HandCF = CFrame.new(root.Position - Vector3.new(0, 3, 0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  36. Debounces = {
  37. CanAttack = true,
  38. NoIdle = false,
  39. Anger = false,
  40. OrbMove1 = false,
  41. OrbMove2 = false,
  42. OrbMove3 = false,
  43. OrbMove4 = false,
  44. OrbMove5 = false,
  45. OrbMove6 = false,
  46. OrbMove7 = false,
  47. OrbMove8 = false
  48. }
  49. function Lerp(a, b, t)
  50. local qa = {
  51. QuaternionFromCFrame(a)
  52. }
  53. local qb = {
  54. QuaternionFromCFrame(b)
  55. }
  56. local ax, ay, az = a.x, a.y, a.z
  57. local bx, by, bz = b.x, b.y, b.z
  58. local _t = 1 - t
  59. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  60. end
  61. local Lerp = CFrame.new().lerp
  62. function QuaternionFromCFrame(cf)
  63. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  64. local trace = m00 + m11 + m22
  65. if trace > 0 then
  66. local s = math.sqrt(1 + trace)
  67. local recip = 0.5 / s
  68. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  69. else
  70. local i = 0
  71. if m00 < m11 then
  72. i = 1
  73. end
  74. if i == 0 and m00 or m11 < m22 then
  75. i = 2
  76. end
  77. if i == 0 then
  78. local s = math.sqrt(m00 - m11 - m22 + 1)
  79. local recip = 0.5 / s
  80. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  81. elseif i == 1 then
  82. local s = math.sqrt(m11 - m22 - m00 + 1)
  83. local recip = 0.5 / s
  84. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  85. elseif i == 2 then
  86. local s = math.sqrt(m22 - m00 - m11 + 1)
  87. local recip = 0.5 / s
  88. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  89. end
  90. end
  91. end
  92. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  93. local xs, ys, zs = x + x, y + y, z + z
  94. local wx, wy, wz = w * xs, w * ys, w * zs
  95. local xx = x * xs
  96. local xy = x * ys
  97. local xz = x * zs
  98. local yy = y * ys
  99. local yz = y * zs
  100. local zz = z * zs
  101. 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))
  102. end
  103. function QuaternionSlerp(a, b, t)
  104. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  105. local startInterp, finishInterp
  106. if cosTheta >= 1.0E-4 then
  107. if 1 - cosTheta > 1.0E-4 then
  108. local theta = math.acos(cosTheta)
  109. local invSinTheta = 1 / math.sin(theta)
  110. startInterp = math.sin((1 - t) * theta) * invSinTheta
  111. finishInterp = math.sin(t * theta) * invSinTheta
  112. else
  113. startInterp = 1 - t
  114. finishInterp = t
  115. if 1 + cosTheta > 1.0E-4 then
  116. local theta = math.acos(-cosTheta)
  117. local invSinTheta = 1 / math.sin(theta)
  118. startInterp = math.sin((t - 1) * theta) * invSinTheta
  119. finishInterp = math.sin(t * theta) * invSinTheta
  120. else
  121. startInterp = t - 1
  122. finishInterp = t
  123. 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
  124. end
  125. end
  126. end
  127. end
  128. function scaleTween(strt, fnsh, tim)
  129. local com1 = {
  130. strt.X,
  131. strt.Y,
  132. strt.Z
  133. }
  134. local com2 = {
  135. fnsh.X,
  136. fnsh.Y,
  137. fnsh.Z
  138. }
  139. for i, v in pairs(com1) do
  140. com1[i] = v + (com2[i] - v) * tim
  141. end
  142. return Vector3.new(com1[1], com1[2], com1[3])
  143. end
  144. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  145. local wld = Instance.new("Weld", wp1)
  146. wld.Part0 = wp0
  147. wld.Part1 = wp1
  148. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  149. end
  150.  
  151. function TakeDamage(a, b)
  152. a:TakeDamage(b)
  153. end
  154.  
  155. function WeldBetween(a, b)
  156. weld = Instance.new("Weld", a)
  157. weld.Name = "W"
  158. weld.Part0 = a
  159. weld.Part1 = b
  160. weld.C0 = a.CFrame:inverse() * b.CFrame
  161. return weld
  162. end
  163. function Lerp2(a, b, i)
  164. return a:lerp(b, i)
  165. end
  166. function HasntDamaged(plrname)
  167. local ret = true
  168. for _, v in pairs(Damaged) do
  169. if v == plrname then
  170. ret = false
  171. end
  172. end
  173. return ret
  174. end
  175. function nooutline(part)
  176. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  177. end
  178. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  179. local fp = it("Part")
  180. fp.formFactor = formfactor
  181. fp.Parent = parent
  182. fp.Reflectance = reflectance
  183. fp.Transparency = transparency
  184. fp.CanCollide = false
  185. fp.Locked = true
  186. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  187. fp.Name = name
  188. fp.Size = size
  189. fp.Position = Character.Torso.Position
  190. nooutline(fp)
  191. fp.Material = material
  192. fp:BreakJoints()
  193. return fp
  194. end
  195. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  196. local mesh = it(Mesh)
  197. mesh.Parent = part
  198. if Mesh == "SpecialMesh" then
  199. mesh.MeshType = meshtype
  200. mesh.MeshId = meshid
  201. end
  202. mesh.Offset = offset
  203. mesh.Scale = scale
  204. return mesh
  205. end
  206. function weld(parent, part0, part1, c0, c1)
  207. local weld = it("Weld")
  208. weld.Parent = parent
  209. weld.Part0 = part0
  210. weld.Part1 = part1
  211. weld.C0 = c0
  212. weld.C1 = c1
  213. return weld
  214. end
  215. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, decreaseblock)
  216. if hit.Parent == nil then
  217. return
  218. end
  219. local h = hit.Parent:FindFirstChild("Humanoid")
  220. for _, v in pairs(hit.Parent:children()) do
  221. if v:IsA("Humanoid") then
  222. h = v
  223. end
  224. end
  225. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  226. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  227. end
  228. if hit.Parent.className == "Hat" then
  229. hit = hit.Parent.Parent:findFirstChild("Head")
  230. end
  231. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  232. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  233. return
  234. end
  235. local c = Instance.new("ObjectValue")
  236. c.Name = "creator"
  237. c.Value = game:service("Players").LocalPlayer
  238. c.Parent = h
  239. game:GetService("Debris"):AddItem(c, 0.5)
  240. local Damage = math.random(minim, maxim)
  241. local blocked = false
  242. local block = hit.Parent:findFirstChild("Block")
  243. if block ~= nil then
  244. print(block.className)
  245. if block.className == "NumberValue" and block.Value > 0 then
  246. blocked = true
  247. if decreaseblock == nil then
  248. block.Value = block.Value - 1
  249. end
  250. end
  251. if block.className == "IntValue" and block.Value > 0 then
  252. blocked = true
  253. if decreaseblock ~= nil then
  254. block.Value = block.Value - 1
  255. end
  256. end
  257. end
  258. if blocked == false then
  259. TakeDamage(h, Damage)
  260. ShowDamage(hit.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  261. else
  262. TakeDamage(h, Damage / 2)
  263. ShowDamage(hit.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  264. end
  265. if Type == "Knockdown" then
  266. hum = hit.Parent.Humanoid
  267. hum.PlatformStand = true
  268. coroutine.resume(coroutine.create(function(HHumanoid)
  269. swait(1)
  270. HHumanoid.PlatformStand = false
  271. end), hum)
  272. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  273. local bodvol = Instance.new("BodyVelocity")
  274. bodvol.velocity = angle * knockback
  275. bodvol.P = 5000
  276. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  277. bodvol.Parent = hit
  278. local rl = Instance.new("BodyAngularVelocity")
  279. rl.P = 3000
  280. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  281. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  282. rl.Parent = hit
  283. game:GetService("Debris"):AddItem(bodvol, 0.5)
  284. game:GetService("Debris"):AddItem(rl, 0.5)
  285. elseif Type == "Normal" then
  286. local vp = Instance.new("BodyVelocity")
  287. vp.P = 500
  288. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  289. if KnockbackType == 1 then
  290. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  291. elseif KnockbackType == 2 then
  292. vp.velocity = Property.CFrame.lookVector * knockback
  293. end
  294. if knockback > 0 then
  295. vp.Parent = hit.Parent.Torso
  296. end
  297. game:GetService("Debris"):AddItem(vp, 0.1)
  298. elseif Type == "Up" then
  299. local bodyVelocity = Instance.new("BodyVelocity")
  300. bodyVelocity.velocity = vt(0, 60, 0)
  301. bodyVelocity.P = 5000
  302. bodyVelocity.maxForce = Vector3.new(8000, 8000, 8000)
  303. bodyVelocity.Parent = hit
  304. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  305. local rl = Instance.new("BodyAngularVelocity")
  306. rl.P = 3000
  307. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  308. rl.angularvelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  309. rl.Parent = hit
  310. game:GetService("Debris"):AddItem(rl, 0.5)
  311. elseif Type == "Snare" then
  312. local bp = Instance.new("BodyPosition")
  313. bp.P = 2000
  314. bp.D = 100
  315. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  316. bp.position = hit.Parent.Torso.Position
  317. bp.Parent = hit.Parent.Torso
  318. game:GetService("Debris"):AddItem(bp, 1)
  319. elseif Type == "Target" then
  320. local Targetting = false
  321. if Targetting == false then
  322. local ZTarget = hit.Parent.Torso
  323. coroutine.resume(coroutine.create(function(Part)
  324. so("http://www.roblox.com/asset/?id=15666462", Part, 1, 1.5)
  325. swait(5)
  326. so("http://www.roblox.com/asset/?id=15666462", Part, 1, 1.5)
  327. end), ZTarget)
  328. local TargHum = ZTarget.Parent:findFirstChild("Humanoid")
  329. local targetgui = Instance.new("BillboardGui")
  330. targetgui.Parent = ZTarget
  331. targetgui.Size = UDim2.new(10, 100, 10, 100)
  332. local targ = Instance.new("ImageLabel")
  333. targ.Parent = targetgui
  334. targ.BackgroundTransparency = 1
  335. targ.Image = "rbxassetid://4834067"
  336. targ.Size = UDim2.new(1, 0, 1, 0)
  337. cam.CameraType = "Scriptable"
  338. cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position)
  339. local dir = Vector3.new(cam.CoordinateFrame.lookVector.x, 0, cam.CoordinateFrame.lookVector.z)
  340. workspace.CurrentCamera.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position)
  341. Targetting = true
  342. local RocketTarget = ZTarget
  343. for i = 1, Property do
  344. if 0 < TargHum.Health and Character.Parent ~= nil and 0 < TargHum.Health and TargHum.Parent ~= nil and Targetting == true then
  345. swait()
  346. end
  347. cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position)
  348. dir = Vector3.new(cam.CoordinateFrame.lookVector.x, 0, cam.CoordinateFrame.lookVector.z)
  349. cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position) * cf(0, 5, 10) * euler(-0.3, 0, 0)
  350. end
  351. Targetting = false
  352. RocketTarget = nil
  353. targetgui.Parent = nil
  354. cam.CameraType = "Custom"
  355. end
  356. end
  357. local debounce = Instance.new("BoolValue")
  358. debounce.Name = "DebounceHit"
  359. debounce.Parent = hit.Parent
  360. debounce.Value = true
  361. game:GetService("Debris"):AddItem(debounce, Delay)
  362. c = Instance.new("ObjectValue")
  363. c.Name = "creator"
  364. c.Value = Player
  365. c.Parent = h
  366. game:GetService("Debris"):AddItem(c, 0.5)
  367. end
  368. end
  369. function ShowDamage(Pos, Text, Time, Color)
  370. local Rate = 0.03333333333333333
  371. local Pos = Pos or Vector3.new(0, 0, 0)
  372. local Text = Text or ""
  373. local Time = Time or 2
  374. local Color = Color or Color3.new(1, 0, 0)
  375. local EffectPart = part("Custom", workspace, "Neon", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  376. EffectPart.Anchored = true
  377. local BillboardGui = Instance.new("BillboardGui")
  378. BillboardGui.Size = UDim2.new(3, 3, 3, 3)
  379. BillboardGui.Adornee = EffectPart
  380. local TextLabel = Instance.new("TextLabel")
  381. TextLabel.BackgroundTransparency = 1
  382. TextLabel.Size = UDim2.new(3, 3, 3, 3)
  383. TextLabel.Text = Text
  384. TextLabel.TextColor3 = Color
  385. TextLabel.TextStrokeColor3 = BrickColor.new("Really black").Color
  386. TextLabel.TextScaled = true
  387. TextLabel.TextStrokeTransparency = 0
  388. TextLabel.Font = Enum.Font.SourceSansBold
  389. TextLabel.Parent = BillboardGui
  390. BillboardGui.Parent = EffectPart
  391. game.Debris:AddItem(EffectPart, Time + 0.1)
  392. EffectPart.Parent = game:GetService("Workspace")
  393. Delay(0, function()
  394. local Frames = Time / Rate
  395. for Frame = 1, Frames do
  396. wait(Rate)
  397. local Percent = Frame / Frames
  398. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  399. TextLabel.TextTransparency = Percent
  400. TextLabel.TextStrokeTransparency = Percent
  401. end
  402. if EffectPart and EffectPart.Parent then
  403. EffectPart:Destroy()
  404. end
  405. end)
  406. end
  407. function LoadOutfit()
  408. local Player = game.Players.LocalPlayer
  409. local InsertService = game:GetService("InsertService")
  410. local char = Player.Character
  411. local face = char.Head.face
  412. local color = char["Body Colors"]
  413. local Data = {
  414. Pants = "rbxassetid://163845518",
  415. Shirt = "rbxassetid://225706293",
  416. Hat = 30380659,
  417. Face = "rbxassetid://159139241",
  418. BodyColor = "Pastel brown"
  419. }
  420. for i, v in pairs(char:children()) do
  421. if v.ClassName == "Hat" then
  422. v:Destroy()
  423. elseif v.ClassName == "Shirt" then
  424. v:Destroy()
  425. elseif v.ClassName == "Pants" then
  426. v:Destroy()
  427. end
  428. end
  429. color.HeadColor = BrickColor.new("Pastel brown")
  430. color.TorsoColor = BrickColor.new("Pastel brown")
  431. color.LeftArmColor = BrickColor.new("Pastel brown")
  432. color.LeftLegColor = BrickColor.new("Pastel brown")
  433. color.RightArmColor = BrickColor.new("Pastel brown")
  434. color.RightLegColor = BrickColor.new("Pastel brown")
  435. face.Texture = Data.Face
  436. InsertService:LoadAsset(Data.Hat):children()[1].Parent = char
  437. local shirt = Instance.new("Shirt", char)
  438. shirt.ShirtTemplate = Data.Shirt
  439. local pants = Instance.new("Pants", char)
  440. pants.PantsTemplate = Data.Pants
  441. end
  442. function MakeOrb(Type)
  443. local this = {}
  444. local LightOrDark
  445. if Type == nil then
  446. LightOrDark = math.random(0, 1)
  447. else
  448. LightOrDark = Type
  449. end
  450. local Orb = Instance.new("Part", Orbs)
  451. Orb.Anchored = true
  452. Orb.Material = "Neon"
  453. if LightOrDark == 1 then
  454. Orb.BrickColor = BrickColor.new("Fucking Gray")
  455. else
  456. Orb.BrickColor = BrickColor.new("Fucking Gray")
  457. end
  458. Orb.CFrame = torso.CFrame
  459. Orb.CanCollide = false
  460. Orb.Shape = "Ball"
  461. Orb.Size = Vector3.new(0.9, 0.9, 0.9)
  462. Orb.BottomSurface = "Smooth"
  463. Orb.TopSurface = "Smooth"
  464. Orb.Locked = true
  465. local OrbMesh = Instance.new("SpecialMesh", Orb)
  466. OrbMesh.MeshType = "FileMesh"
  467. OrbMesh.MeshId = "rbxassetid://4125549274"
  468. OrbMesh.TextureId = "rbxassetid://4125544592"
  469. OrbMesh.Scale = Vector3.new(0.65,0.65,0.65)
  470. local Outline = Instance.new("Part", Orbs)
  471. Outline.Anchored = true
  472. Outline.Material = "Neon"
  473. if LightOrDark == 1 then
  474. Outline.BrickColor = BrickColor.new("Fucking Gray")
  475. else
  476. Outline.BrickColor = BrickColor.new("Fucking Gray")
  477. end
  478. Outline.CFrame = torso.CFrame
  479. Outline.CanCollide = false
  480. Outline.Shape = "Ball"
  481. Outline.Size = Vector3.new(1, 1, 1)
  482. Outline.BottomSurface = "Smooth"
  483. Outline.TopSurface = "Smooth"
  484. Outline.Transparency = 0
  485. Outline.Locked = true
  486. local OrbWeld = newWeld(Outline, Orb, 0, 0, 0)
  487. weld = Instance.new("Weld", Orb)
  488. weld.Part0 = Orb
  489. weld.Part1 = Outline
  490. weld.C0 = CFrame.new(0, 0, 0)
  491. local OrbMesh = Instance.new("SpecialMesh", Orb)
  492. OrbMesh.MeshType = "Sphere"
  493. OrbMesh.Scale = Vector3.new(0.9, 0.9, 0.9)
  494. local OutlineMesh = Instance.new("SpecialMesh", Outline)
  495. OutlineMesh.MeshType = "FileMesh"
  496. OutlineMesh.MeshId = "rbxassetid://4125549274"
  497. OutlineMesh.TextureId = "rbxassetid://4125544592"
  498. OutlineMesh.Scale = Vector3.new(0.7,0.7,0.7)
  499. function this.Size(v3)
  500. OrbMesh.Scale = Lerp2(OrbMesh.Scale, v3 - Vector3.new(1,1,1), 0.3)
  501. OutlineMesh.Scale = Lerp2(OutlineMesh.Scale, v3, 0.3)
  502. end
  503. function this.CFrame(cf)
  504. Orb.CFrame = cf
  505. Outline.CFrame = Orb.CFrame
  506. end
  507. return Orb, Outline, this
  508. end
  509. function TailedBeastBomb()
  510. local this = {}
  511. local TailedBeastBomb = Instance.new("Model", char)
  512. local Outer = Instance.new("Part", TailedBeastBomb)
  513. Outer.Material = "Neon"
  514. Outer.Name = "Outer"
  515. Outer.BrickColor = BrickColor.new("Really black")
  516. Outer.CFrame = CFrame.new(0, 0, 0)
  517. Outer.Locked = true
  518. Outer.Size = Vector3.new(4, 4, 4)
  519. Outer.CanCollide = false
  520. Outer.Transparency = 0.25
  521. local OuterMesh = Instance.new("SpecialMesh", Outer)
  522. OuterMesh.MeshType = "Sphere"
  523. OuterMesh.Scale = Vector3.new(1, 1, 1)
  524. local Inner = Instance.new("Part", TailedBeastBomb)
  525. Inner.Material = "Neon"
  526. Inner.Name = "Inner"
  527. Inner.BrickColor = BrickColor.new("Institutional white")
  528. Inner.CFrame = Outer.CFrame
  529. Inner.Locked = true
  530. Inner.Size = Outer.Size - Vector3.new(1, 1, 1)
  531. Inner.CanCollide = false
  532. Inner.Transparency = 0.8
  533. local InnerMesh = Instance.new("SpecialMesh", Inner)
  534. InnerMesh.MeshType = "Sphere"
  535. InnerMesh.Scale = Vector3.new(1, 1, 1)
  536. local InnerOuterWeld = Instance.new("Weld", Inner)
  537. InnerOuterWeld.Part0 = Inner
  538. InnerOuterWeld.Part1 = Outer
  539. InnerOuterWeld.C0 = CFrame.new(0, 0, 0)
  540. local Core = Instance.new("Part", TailedBeastBomb)
  541. Core.Material = "Neon"
  542. Core.Name = "Core"
  543. Core.BrickColor = BrickColor.new("New Yeller")
  544. Core.CFrame = Outer.CFrame
  545. Core.Locked = true
  546. Core.Size = Inner.Size - Vector3.new(2, 2, 2)
  547. Core.CanCollide = false
  548. Core.Shape = 0
  549. Core.Transparency = 0
  550. local CoreMesh = Instance.new("SpecialMesh", Core)
  551. CoreMesh.MeshType = "Sphere"
  552. CoreMesh.Scale = Vector3.new(1, 1, 1)
  553. local InnerCoreWeld = Instance.new("Weld", Inner)
  554. InnerCoreWeld.Part0 = Inner
  555. InnerCoreWeld.Part1 = Core
  556. InnerCoreWeld.C0 = CFrame.new(0, 0, 0)
  557. function this.reSize(v3)
  558. Outer.Size = Lerp2(Outer.Size, v3, 0.3)
  559. Inner.Size = Lerp2(Inner.Size, Outer.Size - Vector3.new(1, 1, 1), 0.3)
  560. Core.Size = Lerp2(Core.Size, Inner.Size - Vector3.new(2, 2, 2), 0.3)
  561. end
  562. return Outer, Inner, Core, this
  563. end
  564. function SpawnRasengan(m, cf)
  565. local Rasengan = Instance.new("Part", m)
  566. Rasengan.BrickColor = BrickColor.new("Bright blue")
  567. Rasengan.Material = "Neon"
  568. Rasengan.Anchored = true
  569. Rasengan.CFrame = cf or CFrame.new(0, 0, 0)
  570. Rasengan.CanCollide = false
  571. Rasengan.CanCollide = true
  572. Rasengan.BottomSurface = "Smooth"
  573. Rasengan.TopSurface = "Smooth"
  574. Rasengan.Locked = true
  575. Rasengan.Size = Vector3.new(0.9, 0.9, 0.9)
  576. local RasenganMesh = Instance.new("SpecialMesh", Rasengan)
  577. RasenganMesh.MeshType = "Sphere"
  578. local Outline = Instance.new("Part", m)
  579. Outline.BrickColor = BrickColor.new("Institutional white")
  580. Outline.Material = "Neon"
  581. Outline.Transparency = 0.7
  582. Outline.Anchored = true
  583. Outline.CanCollide = false
  584. Outline.CanCollide = true
  585. Outline.BottomSurface = "Smooth"
  586. Outline.TopSurface = "Smooth"
  587. Outline.Locked = true
  588. Outline.CFrame = Rasengan.CFrame
  589. Outline.Size = Rasengan.Size + Vector3.new(0.1, 0.1, 0.1)
  590. local OutlineMesh = Instance.new("SpecialMesh", Outline)
  591. OutlineMesh.MeshType = "Sphere"
  592. local RasenWeld = Instance.new("Weld", Rasengan)
  593. RasenWeld.Part0 = Rasengan
  594. RasenWeld.Part1 = Outline
  595. RasenWeld.C0 = CFrame.new(0, 0, 0)
  596. return Rasengan, Outline
  597. end
  598. function SpawnRasenShurikan(m, cf)
  599. local Rasengan, Outline = SpawnRasengan(m, cf)
  600. local this = {}
  601. local interval = 0
  602. Rasengan.BrickColor = BrickColor.new("Crimson")
  603. Outline.BrickColor = BrickColor.new("Really black")
  604. local Shurikan = Instance.new("Part", m)
  605. Shurikan.BrickColor = BrickColor.new("Institutional white")
  606. Shurikan.Material = "Neon"
  607. Shurikan.Anchored = true
  608. Shurikan.CanCollide = false
  609. Shurikan.BottomSurface = "Smooth"
  610. Shurikan.TopSurface = "Smooth"
  611. Shurikan.Locked = true
  612. Shurikan.Size = Vector3.new(1, 1, 1)
  613. Shurikan.CFrame = Rasengan.CFrame
  614. local ShurikanMesh = Instance.new("SpecialMesh", Shurikan)
  615. ShurikanMesh.MeshType = "FileMesh"
  616. ShurikanMesh.MeshId = "rbxassetid://11376946"
  617. ShurikanMesh.Scale = Vector3.new(7, 7, 7)
  618. ShurikanMesh.TextureId = "rbxassetid://269748808"
  619. function this.Start()
  620. local Event = game:GetService("RunService").RenderStepped:connect(function()
  621. interval = interval + 60
  622. Shurikan.CFrame = Rasengan.CFrame * CFrame.Angles(math.rad(0), math.rad(interval), math.rad(0))
  623. end)
  624. this.Connections = Event
  625. end
  626. function this.Stop()
  627. this.Connections:disconnect()
  628. Shurikan.CFrame = Rasengan.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  629. end
  630. return Rasengan, Outline, Shurikan, ShurikanMesh, this
  631. end
  632. function InstanceService()
  633. local OldInstance = Instance
  634. local Instance = newproxy(true)
  635. local Meta = getmetatable(Instance)
  636. local InstanceData = {
  637. Properties = {
  638. __READONLY = {ClassName = "Instance"}
  639. },
  640. Methods = {},
  641. Events = {},
  642. Private = {
  643. Registered = {},
  644. Util = LoadLibrary("RbxUtility")
  645. },
  646. __META = {SERVICE_MODEL_VERSION = "0.1.0"}
  647. }
  648. local Properties = InstanceData.Properties
  649. local Methods = InstanceData.Methods
  650. local Events = InstanceData.Events
  651. local Private = InstanceData.Private
  652. local function CreateEvent(EventName)
  653. Events[EventName] = {}
  654. local Signal = Private.Util.CreateSignal()
  655. local Event = InstanceData.Events[EventName]
  656. function Event:connect(func)
  657. local this = {}
  658. if self ~= Event then
  659. error("connect must be called with `:`, not `.`", 2)
  660. end
  661. if type(func) ~= "function" then
  662. error("Argument #1 of connect must be a function, got a " .. type(func), 2)
  663. end
  664. Signal:connect(func)
  665. function this:disconnect()
  666. if self ~= this then
  667. error("disconnect must be called with `:`, not `.`", 2)
  668. end
  669. Signal:disconnect()
  670. end
  671. return this
  672. end
  673. return Signal
  674. end
  675. local CheckSelf = function(self)
  676. repeat
  677. if not self then
  678. return false, "\":\" Expected, got \".\""
  679. else
  680. if not self or type(self) == "table" then
  681. end
  682. do return false, "\"userdata or table\" Expected, got \"" .. type(self) .. "\"" end
  683. do break end
  684. if not self or type(self) ~= "table" then
  685. end
  686. return true
  687. end
  688. until true
  689. end
  690. local function MetaIndex(_table, index)
  691. if Properties[index] and index:sub(1, 2) ~= "__" then
  692. return Properties[index]
  693. elseif Properties.__READONLY[index] then
  694. return Properties.__READONLY[index]
  695. elseif Methods[index] then
  696. return Methods[index]
  697. elseif Events[index] then
  698. return Events[index]
  699. end
  700. end
  701. local function MetaNewIndex(_table, index, value)
  702. if Properties[index] and index:sub(1, 2) ~= "__" and type(value) ~= "function" then
  703. if index:sub(1, 2) == "__" then
  704. return error(index .. " is not a valid member of " .. Properties.__READONLY.ClassName)
  705. else
  706. Properties[index] = value
  707. end
  708. end
  709. end
  710. function Methods.register(name, constructor)
  711. if type(name) ~= "string" then
  712. error("Argument #1 of register must be a string, got a " .. type(name))
  713. end
  714. if type(constructor) ~= "function" then
  715. error("Argument #2 of register must be a function, got a " .. type(constructor))
  716. end
  717. Private.Registered[name] = constructor
  718. end
  719. function Methods.new(name, parent, options)
  720. local Parent
  721. if type(parent) == "table" then
  722. if parent[Parent] then
  723. Parent = options[Parent]
  724. else
  725. Parent = nil
  726. end
  727. elseif type(parent) == "userdata" then
  728. Parent = parent
  729. end
  730. if Private.Registered[name] then
  731. return Private.Registered[name](Parent, options)
  732. else
  733. return OldInstance.new(name, Parent)
  734. end
  735. end
  736. Meta.__index = MetaIndex
  737. Meta.__newindex = MetaNewIndex
  738. Meta.__metatable = "The metatable is locked"
  739. return Instance
  740. end
  741. function TruthSeekerOrb()
  742. local O1, O2 = MakeOrb()
  743. local Orb = newproxy(true)
  744. local OrbMeta = getmetatable(Orb)
  745. local OrbProperties = {
  746. ReadOnly = {
  747. ClassName = "TruthSeekerOrb",
  748. _VERSION = "0.1.0"
  749. },
  750. Parent = Orbs,
  751. CFrame = CFrame.new(0, 0, 0),
  752. Size = Vector3.new(0, 0, 0),
  753. Touched = O1.Touched,
  754. Outline = O2
  755. }
  756. local OrbPrivateData = {Orb = O1, Outline = O2}
  757. local OrbMethods = {}
  758. function OrbMeta.__index(_table, index)
  759. if OrbProperties[index] then
  760. if index == "CFrame" then
  761. return OrbPrivateData.Orb.CFrame
  762. elseif index == "Size" then
  763. return OrbPrivateData.Orb.Size
  764. elseif index == "ReadOnly" then
  765. return nil
  766. elseif index == "Parent" then
  767. return OrbPrivateData.Orb.Parent
  768. else
  769. return OrbProperties[index]
  770. end
  771. elseif OrbProperties.ReadOnly[index] then
  772. return OrbProperties.ReadOnly[index]
  773. elseif OrbMethods[index] then
  774. return OrbMethods[index]
  775. end
  776. end
  777. function OrbMeta.__newindex(_table, index, value)
  778. if OrbProperties[index] then
  779. if not type(value) ~= "function" then
  780. if index == "CFrame" then
  781. OrbPrivateData.Orb.CFrame = value
  782. OrbPrivateData.Outline.CFrame = value
  783. elseif index == "Size" then
  784. OrbPrivateData.Orb.Mesh.Scale = Lerp2(OrbPrivateData.Orb.Mesh.Scale, value - Vector3.new(0.1, 0.1, 0.1), 0.3)
  785. OrbPrivateData.Outline.Mesh.Scale = Lerp2(OrbPrivateData.Outline.Mesh.Scale, value, 0.3)
  786. elseif index == "Parent" then
  787. OrbPrivateData.Orb.Parent = value
  788. OrbPrivateData.Outline.Parent = value
  789. elseif index == "ReadOnly" then
  790. return error("can't set protected value")
  791. else
  792. OrbProperties[index] = value
  793. end
  794. end
  795. elseif OrbProperties.ReadOnly[index] then
  796. return error("can't set value")
  797. end
  798. end
  799. local CheckSelf = function(s)
  800. if not s then
  801. return false, "\":\" Expected, got \".\""
  802. end
  803. return true, ""
  804. end
  805. function OrbMethods:Destroy()
  806. assert(CheckSelf(self))
  807. OrbPrivateData.Orb:Destroy()
  808. OrbPrivateData.Outline:Destroy()
  809. end
  810. return Orb
  811. end
  812. function Rasengan(m, options)
  813. local m = Instance.new("Model", m)
  814. local r, o = SpawnRasengan(m, options.CFrame or nil)
  815. local Rasengan = newproxy(true)
  816. local RasenganMeta = getmetatable(Rasengan)
  817. local RasenganData = {Rasengan = r, Outline = o}
  818. local RasenganProperties = {
  819. __Protected = {ClassName = "Rasengan"},
  820. Parent = m,
  821. Size = Vector3.new(0, 0, 0),
  822. CFrame = CFrame.new(0, 0, 0),
  823. Transparency = 0
  824. }
  825. local RasenganMethods = {}
  826. local RasenganEvents = {}
  827. local CreateSignal = function()
  828. local this = {}
  829. local mBindableEvent = Instance.new("BindableEvent")
  830. local mAllCns = {}
  831. function this:connect(func)
  832. if self ~= this then
  833. error("connect must be called with `:`, not `.`", 2)
  834. end
  835. if type(func) ~= "function" then
  836. error("Argument #1 of connect must be a function, got a " .. type(func), 2)
  837. end
  838. local cn = mBindableEvent.Event:connect(func)
  839. mAllCns[cn] = true
  840. local pubCn = {}
  841. function pubCn:disconnect()
  842. cn:disconnect()
  843. mAllCns[cn] = nil
  844. end
  845. return pubCn
  846. end
  847. function this:disconnect()
  848. if self ~= this then
  849. error("disconnect must be called with `:`, not `.`", 2)
  850. end
  851. for cn, _ in pairs(mAllCns) do
  852. cn:disconnect()
  853. mAllCns[cn] = nil
  854. end
  855. end
  856. function this:wait()
  857. if self ~= this then
  858. error("wait must be called with `:`, not `.`", 2)
  859. end
  860. return mBindableEvent.Event:wait()
  861. end
  862. function this:fire(...)
  863. if self ~= this then
  864. error("fire must be called with `:`, not `.`", 2)
  865. end
  866. mBindableEvent:Fire(...)
  867. end
  868. return this
  869. end
  870. local function CreateEvent(EventName)
  871. RasenganEvents[EventName] = {}
  872. local Signal = CreateSignal()
  873. local Event = RasenganEvents[EventName]
  874. function Event:connect(func)
  875. local this = {}
  876. if self ~= Event then
  877. error("connect must be called with `:`, not `.`", 2)
  878. end
  879. if type(func) ~= "function" then
  880. error("Argument #1 of connect must be a function, got a " .. type(func), 2)
  881. end
  882. Signal:connect(func)
  883. function this:disconnect()
  884. if self ~= this then
  885. error("disconnect must be called with `:`, not `.`", 2)
  886. end
  887. Signal:disconnect()
  888. end
  889. return this
  890. end
  891. return Signal
  892. end
  893. local Touched = CreateEvent("Touched")
  894. local Method = RasenganMethods
  895. local CheckSelf = function(self)
  896. if not self then
  897. return false, "\":\" Expected, got \".\""
  898. else
  899. return true
  900. end
  901. end
  902. function Method:Destroy()
  903. assert(CheckSelf(self))
  904. if m then
  905. m:Destroy()
  906. end
  907. if RasenganData.Outline then
  908. RasenganData.Outline:Destroy()
  909. end
  910. if RasenganData.Rasengan then
  911. RasenganData.Rasengan:Destroy()
  912. end
  913. end
  914. local function Handle_GET_Property(index)
  915. if index == "Parent" then
  916. return RasenganData.Rasengan.Parent
  917. elseif index == "Size" then
  918. return RasenganData.Rasengan.Size
  919. elseif index == "CFrame" then
  920. return RasenganData.Rasengan.CFrame
  921. elseif index == "Transparency" then
  922. return RasenganData.Rasengan.Transparency
  923. end
  924. end
  925. local function Handle_SET_Property(index, value)
  926. if index == "Parent" then
  927. RasenganData.Rasengan.Parent = value
  928. RasenganData.Outline.Parent = value
  929. elseif index == "Size" then
  930. RasenganData.Rasengan.Size = Lerp2(RasenganData.Rasengan.Size, value - Vector3.new(0.1, 0.1, 0.1) * value, 0.3)
  931. RasenganData.Outline.Size = Lerp2(RasenganData.Outline.Size, value, 0.3)
  932. elseif index == "CFrame" then
  933. RasenganData.Rasengan.CFrame = value
  934. RasenganData.Outline.CFrame = value
  935. elseif index == "Transparency" then
  936. RasenganData.Rasengan.Transparency = value / 0.7
  937. RasenganData.Outline.Transparency = value / 0.7
  938. end
  939. end
  940. function RasenganMeta.__index(_table, index)
  941. if RasenganProperties[index] then
  942. if index:sub(1, 2) == "__" then
  943. return nil
  944. else
  945. return Handle_GET_Property(index)
  946. end
  947. elseif RasenganProperties.__Protected[index] then
  948. return RasenganProperties.__Protected[index]
  949. elseif RasenganMethods[index] then
  950. return RasenganMethods[index]
  951. elseif RasenganEvents[index] then
  952. return RasenganEvents[index]
  953. else
  954. error(index .. " is not a valid member of " .. RasenganProperties.__Protected.ClassName)
  955. end
  956. end
  957. function RasenganMeta.__newindex(_table, index, value)
  958. if RasenganProperties[index] then
  959. if not type(value) ~= "function" then
  960. if index:sub(1, 2) == "__" then
  961. return error(index .. " is not a valid member of " .. RasenganProperties.__Protected.ClassName)
  962. else
  963. Handle_SET_Property(index, value)
  964. end
  965. end
  966. elseif RasenganProperties.__Protected[index] then
  967. return error("can't set value")
  968. else
  969. error(index .. " is not a valid member of " .. RasenganProperties.__Protected.ClassName)
  970. end
  971. end
  972. RasenganMeta.__metatable = "The metatable is locked"
  973. return Rasengan
  974. end
  975. function RasenShurikan(m, options)
  976. local m = Instance.new("Model", m)
  977. local r, o, s, sm, lib = SpawnRasenShurikan(m, options.CFrame or nil)
  978. local Rasengan = newproxy(true)
  979. local RasenganMeta = getmetatable(Rasengan)
  980. local RasenganData = {
  981. Rasengan = r,
  982. Outline = o,
  983. Shurikan = s,
  984. ShurikanMesh = sm,
  985. Lib = lib
  986. }
  987. local RasenganProperties = {
  988. __Protected = {ClassName = "Rasengan"},
  989. Parent = m,
  990. Size = Vector3.new(0, 0, 0),
  991. CFrame = CFrame.new(0, 0, 0),
  992. Transparency = 0,
  993. Base = r,
  994. Outline = o
  995. }
  996. local RasenganMethods = {}
  997. local RasenganEvents = {}
  998. local CreateSignal = function()
  999. local this = {}
  1000. local mBindableEvent = Instance.new("BindableEvent")
  1001. local mAllCns = {}
  1002. function this:connect(func)
  1003. if self ~= this then
  1004. error("connect must be called with `:`, not `.`", 2)
  1005. end
  1006. if type(func) ~= "function" then
  1007. error("Argument #1 of connect must be a function, got a " .. type(func), 2)
  1008. end
  1009. local cn = mBindableEvent.Event:connect(func)
  1010. mAllCns[cn] = true
  1011. local pubCn = {}
  1012. function pubCn:disconnect()
  1013. cn:disconnect()
  1014. mAllCns[cn] = nil
  1015. end
  1016. return pubCn
  1017. end
  1018. function this:disconnect()
  1019. if self ~= this then
  1020. error("disconnect must be called with `:`, not `.`", 2)
  1021. end
  1022. for cn, _ in pairs(mAllCns) do
  1023. cn:disconnect()
  1024. mAllCns[cn] = nil
  1025. end
  1026. end
  1027. function this:wait()
  1028. if self ~= this then
  1029. error("wait must be called with `:`, not `.`", 2)
  1030. end
  1031. return mBindableEvent.Event:wait()
  1032. end
  1033. function this:fire(...)
  1034. if self ~= this then
  1035. error("fire must be called with `:`, not `.`", 2)
  1036. end
  1037. mBindableEvent:Fire(...)
  1038. end
  1039. return this
  1040. end
  1041. local function CreateEvent(EventName)
  1042. RasenganEvents[EventName] = {}
  1043. local Signal = CreateSignal()
  1044. local Event = RasenganEvents[EventName]
  1045. function Event:connect(func)
  1046. local this = {}
  1047. if self ~= Event then
  1048. error("connect must be called with `:`, not `.`", 2)
  1049. end
  1050. if type(func) ~= "function" then
  1051. error("Argument #1 of connect must be a function, got a " .. type(func), 2)
  1052. end
  1053. Signal:connect(func)
  1054. function this:disconnect()
  1055. if self ~= this then
  1056. error("disconnect must be called with `:`, not `.`", 2)
  1057. end
  1058. Signal:disconnect()
  1059. end
  1060. return this
  1061. end
  1062. return Signal
  1063. end
  1064. local Method = RasenganMethods
  1065. local CheckSelf = function(self)
  1066. if not self then
  1067. return false, "\":\" Expected, got \".\""
  1068. else
  1069. return true
  1070. end
  1071. end
  1072. function Method:Start()
  1073. assert(CheckSelf(self))
  1074. RasenganData.Lib.Start()
  1075. end
  1076. function Method:Stop()
  1077. assert(CheckSelf(self))
  1078. RasenganData.Lib.Stop()
  1079. end
  1080. function Method:Destroy(t)
  1081. assert(CheckSelf(self))
  1082. if t == "Rasengan" then
  1083. RasenganData.Rasengan:Destroy()
  1084. elseif t == "Outline" then
  1085. RasenganData.Outline:Destroy()
  1086. elseif t == "Shurikan" then
  1087. RasenganData.Shurikan:Destroy()
  1088. else
  1089. if m then
  1090. m:Destroy()
  1091. end
  1092. if RasenganData.Rasengan then
  1093. RasenganData.Rasengan:Destroy()
  1094. end
  1095. if RasenganData.Outline then
  1096. RasenganData.Outline:Destroy()
  1097. end
  1098. if RasenganData.Shurikan then
  1099. RasenganData.Shurikan:Destroy()
  1100. end
  1101. end
  1102. end
  1103. local function Handle_GET_Property(index)
  1104. if index == "Parent" then
  1105. return RasenganData.Rasengan.Parent
  1106. elseif index == "Size" then
  1107. return RasenganData.Rasengan.Size
  1108. elseif index == "CFrame" then
  1109. return RasenganData.Rasengan.CFrame
  1110. elseif index == "Transparency" then
  1111. return RasenganData.Rasengan.Transparency
  1112. else
  1113. return RasenganProperties[index]
  1114. end
  1115. end
  1116. local function Handle_SET_Property(index, value)
  1117. if index == "Parent" then
  1118. RasenganData.Rasengan.Parent = value
  1119. RasenganData.Outline.Parent = value
  1120. RasenganData.Shurikan.Parent = value
  1121. elseif index == "Size" then
  1122. RasenganData.Rasengan.Size = Lerp2(RasenganData.Rasengan.Size, value - Vector3.new(0.1, 0.1, 0.1) * value, 0.3)
  1123. RasenganData.Outline.Size = Lerp2(RasenganData.Outline.Size, value, 0.3)
  1124. RasenganData.ShurikanMesh.Scale = Lerp2(RasenganData.ShurikanMesh.Scale, value * 5.5, 0.3)
  1125. elseif index == "CFrame" then
  1126. RasenganData.Rasengan.CFrame = value
  1127. RasenganData.Outline.CFrame = value
  1128. RasenganData.Shurikan.CFrame = value
  1129. elseif index == "Transparency" then
  1130. RasenganData.Rasengan.Transparency = value / 0.7
  1131. RasenganData.Outline.Transparency = value / 0.7
  1132. end
  1133. end
  1134. function RasenganMeta.__index(_table, index)
  1135. if RasenganProperties[index] then
  1136. if index:sub(1, 2) == "__" then
  1137. return nil
  1138. else
  1139. return Handle_GET_Property(index)
  1140. end
  1141. elseif RasenganProperties.__Protected[index] then
  1142. return RasenganProperties.__Protected[index]
  1143. elseif RasenganMethods[index] then
  1144. return RasenganMethods[index]
  1145. elseif RasenganEvents[index] then
  1146. return RasenganEvents[index]
  1147. else
  1148. error(index .. " is not a valid member of " .. RasenganProperties.__Protected.ClassName)
  1149. end
  1150. end
  1151. function RasenganMeta.__newindex(_table, index, value)
  1152. if RasenganProperties[index] then
  1153. if not type(value) ~= "function" then
  1154. if index:sub(1, 2) == "__" then
  1155. return error(index .. " is not a valid member of " .. RasenganProperties.__Protected.ClassName)
  1156. else
  1157. Handle_SET_Property(index, value)
  1158. end
  1159. end
  1160. elseif RasenganProperties.__Protected[index] then
  1161. return error("can't set value")
  1162. else
  1163. error(index .. " is not a valid member of " .. RasenganProperties.__Protected.ClassName)
  1164. end
  1165. end
  1166. RasenganMeta.__metatable = "The metatable is locked"
  1167. return Rasengan
  1168. end
  1169. local Instance = InstanceService()
  1170. Instance.register("TruthSeekerOrb", TruthSeekerOrb)
  1171. Instance.register("Rasengan", Rasengan)
  1172. Instance.register("RasenShurikan", RasenShurikan)
  1173. newWeld(torso, larm, -1.5, 0.5, 0)
  1174. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1175. newWeld(torso, rarm, 1.5, 0.5, 0)
  1176. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1177. newWeld(torso, hed, 0, 1.5, 0)
  1178. newWeld(torso, lleg, -0.5, -1, 0)
  1179. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  1180. newWeld(torso, rleg, 0.5, -1, 0)
  1181. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  1182. newWeld(root, torso, 0, -1, 0)
  1183. torso.Weld.C1 = CFrame.new(0, -1, 0)
  1184. local laDef = CFrame.new(-1.5, 0.5, 0)
  1185. local raDef = CFrame.new(1.5, 0.5, 0)
  1186. local hDef = CFrame.new(0, 1.5, 0)
  1187. local tDef = CFrame.new(0, -1, 0)
  1188. local llDef = CFrame.new(-0.5, -1, 0)
  1189. local rlDef = CFrame.new(0.5, -1, 0)
  1190. Orbs = Instance.new("Model", char)
  1191. Orbs.Name = "Truthseeker Orbs"
  1192. local Orb1 = Instance.new("TruthSeekerOrb")
  1193. local Orb2 = Instance.new("TruthSeekerOrb")
  1194. local Orb3 = Instance.new("TruthSeekerOrb")
  1195. local Orb4 = Instance.new("TruthSeekerOrb")
  1196. local Orb5 = Instance.new("TruthSeekerOrb")
  1197. local Orb6 = Instance.new("TruthSeekerOrb")
  1198. local Orb7 = Instance.new("TruthSeekerOrb")
  1199. local Orb8 = Instance.new("TruthSeekerOrb")
  1200. local Orbs_ = {
  1201. Orb1 = Orb1,
  1202. Orb2 = Orb2,
  1203. Orb3 = Orb3,
  1204. Orb4 = Orb4,
  1205. Orb5 = Orb5,
  1206. Orb6 = Orb6,
  1207. Orb7 = Orb7,
  1208. Orb8 = Orb8
  1209. }
  1210. local CurrentHealth = hum.Health
  1211. local DebounceShot = false
  1212. local OGDesign = 1
  1213. function TailedBeastBombAttack()
  1214. hum.WalkSpeed = 0
  1215. Debounces.CanAttack = false
  1216. Debounces.NoIdle = true
  1217. for i = 1, 10 do
  1218. larm.Weld.C0 = Lerp(larm.Weld.C0, laDef * CFrame.Angles(math.rad(0), math.rad(20), math.rad(-80)), 0.2)
  1219. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 45, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
  1220. rarm.Weld.C0 = Lerp(rarm.Weld.C0, raDef * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(80)), 0.2)
  1221. hed.Weld.C0 = Lerp(hed.Weld.C0, hDef * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
  1222. lleg.Weld.C0 = Lerp(lleg.Weld.C0, llDef * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.2)
  1223. rleg.Weld.C0 = Lerp(rleg.Weld.C0, rlDef * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.2)
  1224. wait()
  1225. end
  1226. function FindNearestTorso(Position, Distance, SinglePlayer)
  1227. if SinglePlayer then
  1228. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1229. end
  1230. local List = {}
  1231. for i, v in pairs(workspace:GetChildren()) do
  1232. if v:IsA("Model") and v:findFirstChild("Torso") and v ~= char and Distance >= (v.Torso.Position - Position).magnitude then
  1233. table.insert(List, v)
  1234. end
  1235. end
  1236. return List
  1237. end
  1238. local Outer, Inner, Core, Control = TailedBeastBomb()
  1239. local SetupWeld = Instance.new("Weld", Inner)
  1240. SetupWeld.Part0 = Inner
  1241. SetupWeld.Part1 = torso
  1242. SetupWeld.C0 = CFrame.new(0, 0, 10)
  1243. wait()
  1244. Core.Anchored = true
  1245. Outer.Anchored = true
  1246. Inner.Anchored = true
  1247. for i = 1, 16 do
  1248. Control.reSize(Lerp2(Outer.Size, Vector3.new(23, 23, 23), 0.3))
  1249. wait()
  1250. end
  1251. wait(0.5)
  1252. for i = 1, 20 do
  1253. larm.Weld.C0 = Lerp(larm.Weld.C0, laDef * CFrame.Angles(math.rad(0), math.rad(-80), math.rad(-80)), 0.2)
  1254. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 45, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  1255. rarm.Weld.C0 = Lerp(rarm.Weld.C0, raDef * CFrame.Angles(math.rad(0), math.rad(80), math.rad(80)), 0.2)
  1256. hed.Weld.C0 = Lerp(hed.Weld.C0, hDef * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2)
  1257. lleg.Weld.C0 = Lerp(lleg.Weld.C0, llDef * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.2)
  1258. rleg.Weld.C0 = Lerp(rleg.Weld.C0, rlDef * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.2)
  1259. wait()
  1260. end
  1261. SetupWeld:remove()
  1262. Core.Anchored = false
  1263. Outer.Anchored = false
  1264. Inner.Anchored = false
  1265. Shooter = Instance.new("BodyVelocity", Inner)
  1266. Shooter.maxForce = Vector3.new(1, 1, 1) * math.huge
  1267. Shooter.velocity = torso.CFrame.lookVector * 100
  1268. Shooter2 = Instance.new("BodyVelocity", Core)
  1269. Shooter2.maxForce = Vector3.new(1, 1, 1) * math.huge
  1270. Shooter2.velocity = torso.CFrame.lookVector * 100
  1271. Shooter3 = Instance.new("BodyVelocity", Outer)
  1272. Shooter3.maxForce = Vector3.new(1, 1, 1) * math.huge
  1273. Shooter3.velocity = torso.CFrame.lookVector * 100
  1274. Explode = Core.Touched:connect(function(hit)
  1275. if hit ~= char and hit.Name ~= "Outer" and hit.Name ~= "Inner" then
  1276. Inner:Destroy()
  1277. Outer:Destroy()
  1278. do
  1279. local cf = Core.CFrame
  1280. Shooter2:Destroy()
  1281. Core.Anchored = true
  1282. Explode:disconnect()
  1283. Core.Size = Vector3.new(3, 3, 3)
  1284. Core.Touched:connect(function(hit)
  1285. end)
  1286. Core.CanCollide = false
  1287. local part3 = Instance.new("Part", rarm)
  1288. part3.Anchored = true
  1289. part3.CanCollide = false
  1290. part3.Locked = true
  1291. part3.TopSurface = "SmoothNoOutlines"
  1292. part3.BottomSurface = "SmoothNoOutlines"
  1293. part3.FormFactor = "Custom"
  1294. part3.Size = Vector3.new(1, 1, 1)
  1295. part3.CFrame = Core.CFrame
  1296. part3.Transparency = 0
  1297. part3.BrickColor = BrickColor.new("Institutional white")
  1298. local mesh3 = Instance.new("SpecialMesh", part3)
  1299. mesh3.MeshType = "Sphere"
  1300. mesh3.Scale = Vector3.new(1, 1, 1)
  1301. local part4 = Instance.new("Part", rarm)
  1302. part4.Material = "Neon"
  1303. part4.Anchored = true
  1304. part4.CanCollide = false
  1305. part4.Locked = true
  1306. part4.TopSurface = "SmoothNoOutlines"
  1307. part4.BottomSurface = "SmoothNoOutlines"
  1308. part4.FormFactor = "Custom"
  1309. part4.Size = Vector3.new(1, 1, 1)
  1310. part4.CFrame = Core.CFrame
  1311. part4.Transparency = 1
  1312. part4.BrickColor = BrickColor.new("New Yeller")
  1313. local mesh4 = Instance.new("SpecialMesh", part4)
  1314. mesh4.MeshType = "Sphere"
  1315. mesh4.Scale = Vector3.new(0.5, 0.5, 0.5)
  1316. local part7 = Instance.new("Part", rarm)
  1317. part7.Material = "Neon"
  1318. part7.Anchored = true
  1319. part7.CanCollide = false
  1320. part7.Locked = true
  1321. part7.TopSurface = "SmoothNoOutlines"
  1322. part7.BottomSurface = "SmoothNoOutlines"
  1323. part7.FormFactor = "Custom"
  1324. part7.Size = Vector3.new(1, 1, 1)
  1325. part7.CFrame = Core.CFrame
  1326. part7.Transparency = 0
  1327. part7.BrickColor = BrickColor.new("Really black")
  1328. local mesh7 = Instance.new("SpecialMesh", part7)
  1329. mesh7.MeshType = "Sphere"
  1330. mesh7.Scale = Vector3.new(0.1, 0.1, 0.1)
  1331. for i, v in pairs(FindNearestTorso(Core.CFrame.p, 80)) do
  1332. if v:FindFirstChild("Humanoid") then
  1333. Damagefunc(Core, v.Torso, 10, 20, math.random(3, 6), "Normal", RootPart, 0.05, 1)
  1334. v.Humanoid.PlatformStand = true
  1335. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  1336. end
  1337. end
  1338. local acos = math.acos
  1339. local sqrt = math.sqrt
  1340. local Vec3 = Vector3.new
  1341. local fromAxisAngle = CFrame.fromAxisAngle
  1342. local function toAxisAngle(CFr)
  1343. local X, Y, Z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = CFr:components()
  1344. local Angle = math.acos((R00 + R11 + R22 - 1) / 2)
  1345. local A = (R21 - R12) ^ 2 + (R02 - R20) ^ 2 + (R10 - R01) ^ 2
  1346. A = A == 0 and 1.0E-5 or A
  1347. local B = (R21 - R12) ^ 2 + (R02 - R20) ^ 2 + (R10 - R01) ^ 2
  1348. B = B == 0 and 1.0E-5 or B
  1349. local C = (R21 - R12) ^ 2 + (R02 - R20) ^ 2 + (R10 - R01) ^ 2
  1350. C = C == 0 and 1.0E-5 or C
  1351. local x = (R21 - R12) / sqrt(A)
  1352. local y = (R02 - R20) / sqrt(B)
  1353. local z = (R10 - R01) / sqrt(C)
  1354. return Vec3(x, y, z), Angle
  1355. end
  1356. function ApplyTrig(Num, Func)
  1357. local Min, Max = Func(0), Func(1)
  1358. local i = Func(Num)
  1359. return (i - Min) / (Max - Min)
  1360. end
  1361. function LerpCFrame(CFrame1, CFrame2, Num)
  1362. local Vec, Ang = toAxisAngle(CFrame1:inverse() * CFrame2)
  1363. return CFrame1 * fromAxisAngle(Vec, Ang * Num) + (CFrame2.p - CFrame1.p) * Num
  1364. end
  1365. function Crater(Torso, Radius)
  1366. Spawn(function()
  1367. local Ray = Ray.new(Torso.Position, Vector3.new(0, -1, 0) * 10)
  1368. local Ignore = {}
  1369. for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  1370. if v.Character ~= nil then
  1371. Ignore[#Ignore + 1] = v.Character
  1372. end
  1373. end
  1374. local Hit, Pos, SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray, Ignore)
  1375. if Hit == nil then
  1376. return
  1377. end
  1378. local Parts = {}
  1379. for i = 1, 360, 10 do
  1380. local P = Instance.new("Part", Torso.Parent)
  1381. P.Anchored = true
  1382. P.FormFactor = "Custom"
  1383. P.BrickColor = BrickColor.new("Really black")
  1384. P.Material = "Neon"
  1385. P.TopSurface = "Smooth"
  1386. P.BottomSurface = "Smooth"
  1387. P.Size = Vector3.new(5, 10, 10) * (math.random(80, 100) / 100)
  1388. P.CFrame = (CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) - Vector3.new(0, 7, 0)) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  1389. Parts[#Parts + 1] = {
  1390. P,
  1391. P.CFrame,
  1392. (CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) - Vector3.new(0, 1, 0)) * CFrame.Angles(0, math.rad(i), 0) * CFrame.new(0, 0, -Radius) * CFrame.Angles(math.rad(math.random(-50, -20)), math.rad(math.random(-15, 15)), math.rad(math.random(-15, 15))),
  1393. P.Size
  1394. }
  1395. if math.random(0, 5) == 0 then
  1396. local P = Instance.new("Part", Torso.Parent)
  1397. P.Anchored = true
  1398. P.FormFactor = "Custom"
  1399. P.BrickColor = Hit.BrickColor
  1400. P.Material = Hit.Material
  1401. P.TopSurface = "Smooth"
  1402. P.BottomSurface = "Smooth"
  1403. P.Size = Vector3.new(2, 2, 2) * (math.random(80, 100) / 100)
  1404. P.CFrame = (CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) - Vector3.new(0, 2.5, 0)) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  1405. Parts[#Parts + 1] = {
  1406. P,
  1407. P.CFrame,
  1408. CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) * CFrame.Angles(0, math.rad(i), 0) * CFrame.new(0, 0, -Radius - 8) * CFrame.Angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90))),
  1409. P.Size
  1410. }
  1411. end
  1412. end
  1413. for i = 0, 1, 0.05 do
  1414. for i2, v in pairs(Parts) do
  1415. v[1].CFrame = LerpCFrame(v[2], v[3], ApplyTrig(i, math.cos))
  1416. end
  1417. wait(0.02)
  1418. end
  1419. for i, v in pairs(Parts) do
  1420. if v[1].Size.X > 2.1 then
  1421. v[1].CFrame = v[1].CFrame + Vector3.new(0, 2, 0)
  1422. end
  1423. v[1].Anchored = false
  1424. end
  1425. for i = 0, 1, 0.05 do
  1426. for i2, v in pairs(Parts) do
  1427. v[1].Transparency = i
  1428. if i == 1 then
  1429. v[1]:Destroy()
  1430. elseif i >= 0.25 then
  1431. v[1].CanCollide = false
  1432. end
  1433. end
  1434. wait(0.02)
  1435. end
  1436. Parts = nil
  1437. end)
  1438. end
  1439. function ROW(out, trans, s, wt, t, ang, plus)
  1440. for i = 1, 360, 360 / t do
  1441. local c = Instance.new("Part", game.Workspace)
  1442. c.FormFactor = 3
  1443. c.TopSurface = 0
  1444. c.BottomSurface = 0
  1445. c.Size = s
  1446. c.Anchored = true
  1447. c.CanCollide = wt
  1448. c.Material = "Neon"
  1449. c.Transparency = trans
  1450. c.BrickColor = BrickColor.new("Really black")
  1451. c.CFrame = CFrame.new(Core.CFrame.x, 0, Core.CFrame.z) * CFrame.Angles(math.rad(20), math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang
  1452. c.Locked = true
  1453. game.Debris:AddItem(c, 15)
  1454. end
  1455. end
  1456. function Part(x, y, z, color, tr, cc, an, parent)
  1457. local p = Instance.new("Part", parent or Weapon)
  1458. p.formFactor = "Custom"
  1459. p.Size = Vector3.new(x, y, z)
  1460. p.BrickColor = BrickColor.new(color)
  1461. p.CanCollide = cc
  1462. p.Transparency = tr
  1463. p.Anchored = an
  1464. p.TopSurface, p.BottomSurface = 0, 0
  1465. p.Locked = true
  1466. p:BreakJoints()
  1467. return p
  1468. end
  1469. function Mesh(par, num, x, y, z)
  1470. local msh = _
  1471. if num == 1 then
  1472. msh = Instance.new("CylinderMesh", par)
  1473. elseif num == 2 then
  1474. msh = Instance.new("SpecialMesh", par)
  1475. msh.MeshType = 3
  1476. elseif num == 3 then
  1477. msh = Instance.new("BlockMesh", par)
  1478. elseif num == 4 then
  1479. msh = Instance.new("SpecialMesh", par)
  1480. msh.MeshType = "Torso"
  1481. elseif type(num) == "string" then
  1482. msh = Instance.new("SpecialMesh", par)
  1483. msh.MeshId = num
  1484. end
  1485. msh.Scale = Vector3.new(x, y, z)
  1486. return msh
  1487. end
  1488. function explosion(col1, col2, cfr, sz, rng, dmg)
  1489. local a = Part(1, 1, 1, col1, 0.5, false, true, workspace)
  1490. local a2 = Part(1, 1, 1, col2, 0.5, false, true, workspace)
  1491. local a3 = Part(1, 1, 1, col2, 0.5, false, true, workspace)
  1492. v1, v2, v3 = sz.x, sz.y, sz.z
  1493. local m = Mesh(a, "http://www.roblox.com/asset/?id=1185246", v1, v2, v3)
  1494. local m2 = Mesh(a2, 3, v1 / 3, v2 / 3, v3 / 3)
  1495. local m3 = Mesh(a3, 3, v1 / 3, v2 / 3, v3 / 3)
  1496. a.CFrame = cfr
  1497. a2.CFrame = cfr * CFrame.Angles(math.random(), math.random(), math.random())
  1498. a3.CFrame = cfr * CFrame.Angles(math.random(), math.random(), math.random())
  1499. Spawn(function()
  1500. while wait() do
  1501. if a.Transparency >= 1 then
  1502. a:Destroy()
  1503. a2:Destroy()
  1504. a3:Destroy()
  1505. break
  1506. end
  1507. m.Scale = m.Scale + Vector3.new(0.1, 0.1, 0.1)
  1508. m2.Scale = m2.Scale + Vector3.new(0.1, 0.1, 0.1)
  1509. m3.Scale = m3.Scale + Vector3.new(0.1, 0.1, 0.1)
  1510. a.Transparency = a.Transparency + 0.05
  1511. a2.Transparency = a2.Transparency + 0.05
  1512. a3.Transparency = a3.Transparency + 0.05
  1513. end
  1514. end)
  1515. end
  1516. local part = Instance.new("Part", rarm)
  1517. part.Anchored = true
  1518. part.CanCollide = false
  1519. part.Locked = true
  1520. part.FormFactor = "Custom"
  1521. part.Size = Vector3.new(1, 1, 1)
  1522. part.CFrame = Core.CFrame * CFrame.new(0, 0, 0)
  1523. part.Transparency = 1
  1524. part.BrickColor = BrickColor.new("Really black")
  1525. local mesh = Instance.new("SpecialMesh", part)
  1526. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1527. mesh.Scale = Vector3.new(2, 2, 2)
  1528. local part2 = part:clone()
  1529. part2.Parent = rarm
  1530. part2.BrickColor = BrickColor.new("Really black")
  1531. local part5 = part:clone()
  1532. part5.Parent = rarm
  1533. part5.BrickColor = BrickColor.new("New Yeller")
  1534. local part6 = part:clone()
  1535. part6.Parent = rarm
  1536. part6.BrickColor = BrickColor.new("Institutional white")
  1537. local mesh2 = mesh:clone()
  1538. mesh2.Parent = part2
  1539. mesh2.Scale = Vector3.new(3, 3, 3)
  1540. local mesh5 = mesh:clone()
  1541. mesh5.Parent = part5
  1542. mesh5.Scale = Vector3.new(3, 3, 3)
  1543. local mesh6 = mesh:clone()
  1544. mesh6.Parent = part6
  1545. mesh6.Scale = Vector3.new(3, 3, 3)
  1546. local blast = Instance.new("Part", rarm)
  1547. blast.BrickColor = BrickColor.new("Really black")
  1548. blast.Anchored = true
  1549. blast.CanCollide = false
  1550. blast.Locked = true
  1551. blast.Size = Vector3.new(1, 1, 1)
  1552. blast.TopSurface = "Smooth"
  1553. blast.BottomSurface = "Smooth"
  1554. blast.Transparency = 0.9
  1555. blast.CFrame = HandCF
  1556. local bm = Instance.new("SpecialMesh", blast)
  1557. bm.Scale = Vector3.new(5, 1, 5)
  1558. bm.MeshId = "rbxassetid://3270017"
  1559. local blast2 = Instance.new("Part", rarm)
  1560. blast2.BrickColor = BrickColor.new("New Yeller")
  1561. blast2.Anchored = true
  1562. blast2.CanCollide = false
  1563. blast2.Locked = true
  1564. blast2.Size = Vector3.new(1, 1, 1)
  1565. blast2.TopSurface = "Smooth"
  1566. blast2.BottomSurface = "Smooth"
  1567. blast2.Transparency = 0.9
  1568. blast2.CFrame = HandCF
  1569. local bm2 = Instance.new("SpecialMesh", blast2)
  1570. bm2.Scale = Vector3.new(3, 1, 3)
  1571. bm2.MeshId = "rbxassetid://3270017"
  1572. local blast3 = Instance.new("Part", rarm)
  1573. blast3.BrickColor = BrickColor.new("Institutional white")
  1574. blast3.Anchored = true
  1575. blast3.CanCollide = false
  1576. blast3.Locked = true
  1577. blast3.Size = Vector3.new(1, 1, 1)
  1578. blast3.TopSurface = "Smooth"
  1579. blast3.BottomSurface = "Smooth"
  1580. blast3.Transparency = 0.9
  1581. blast3.CFrame = HandCF
  1582. local bm3 = Instance.new("SpecialMesh", blast3)
  1583. bm3.Scale = Vector3.new(3, 1, 3)
  1584. bm3.MeshId = "rbxassetid://3270017"
  1585. for i = 1, 120 do
  1586. rs:wait()
  1587. Core.Transparency = Core.Transparency + 0.008333333333333333
  1588. part.Transparency = part.Transparency + 0.008333333333333333
  1589. part2.Transparency = part2.Transparency + 0.008333333333333333
  1590. part3.Transparency = part3.Transparency + 0.008333333333333333
  1591. part4.Transparency = part4.Transparency + 0.008333333333333333
  1592. part5.Transparency = part5.Transparency + 0.008333333333333333
  1593. part6.Transparency = part6.Transparency + 0.008333333333333333
  1594. part7.Transparency = part7.Transparency + 0.008333333333333333
  1595. blast.Transparency = blast.Transparency + 0.008333333333333333
  1596. blast2.Transparency = blast2.Transparency + 0.008333333333333333
  1597. blast3.Transparency = blast3.Transparency + 0.008333333333333333
  1598. Core.Size = Core.Size + Vector3.new(0.8, 0.8, 0.8)
  1599. mesh.Scale = mesh.Scale + Vector3.new(1, 0.2, 1)
  1600. mesh2.Scale = mesh2.Scale + Vector3.new(1.1, 0.2, 1.1)
  1601. mesh3.Scale = mesh3.Scale + Vector3.new(3, 3, 3)
  1602. mesh4.Scale = mesh4.Scale + Vector3.new(1.7, 1.7, 1.7)
  1603. mesh5.Scale = mesh5.Scale + Vector3.new(1.6, 0.2, 1.6)
  1604. mesh6.Scale = mesh6.Scale + Vector3.new(2, 0.2, 2)
  1605. mesh7.Scale = mesh7.Scale + Vector3.new(4, 4, 4)
  1606. bm.Scale = bm.Scale + Vector3.new(6, 6, 0.2)
  1607. bm2.Scale = bm2.Scale + Vector3.new(4, 4, 0.2)
  1608. bm3.Scale = bm3.Scale + Vector3.new(4, 4, 0.2)
  1609. Core.CFrame = cf
  1610. part.CFrame = Core.CFrame * CFrame.Angles(0, math.rad(i * 2), 0)
  1611. part2.CFrame = Core.CFrame * CFrame.Angles(0, math.rad(-i * 2), 0)
  1612. part3.CFrame = Core.CFrame
  1613. part4.CFrame = Core.CFrame
  1614. part7.CFrame = Core.CFrame
  1615. part5.CFrame = Core.CFrame * CFrame.Angles(0, math.rad(i * 2.6), 0)
  1616. part6.CFrame = Core.CFrame * CFrame.Angles(0, math.rad(-i * 2.4), 0)
  1617. blast.CFrame = Core.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1618. blast2.CFrame = Core.CFrame * CFrame.Angles(math.rad(-i * 4), math.rad(i * 4), math.rad(0))
  1619. blast3.CFrame = Core.CFrame * CFrame.Angles(math.rad(180 + i * 4), math.rad(90 - i * 4), math.rad(0))
  1620. rs:wait()
  1621. end
  1622. Core:Destroy()
  1623. part:Destroy()
  1624. part2:Destroy()
  1625. part3:Destroy()
  1626. part4:Destroy()
  1627. part5:Destroy()
  1628. part6:Destroy()
  1629. part7:Destroy()
  1630. blast:Destroy()
  1631. blast2:Destroy()
  1632. blast3:Destroy()
  1633. end
  1634. end
  1635. end)
  1636. Debounces.CanAttack = true
  1637. Debounces.NoIdle = false
  1638. hum.WalkSpeed = 16
  1639. end
  1640. function TruthSeekerOrbSheild()
  1641. Debounces.CanAttack = false
  1642. Debounces.NoIdle = true
  1643. Defence = true
  1644. CurrentHealth = hum.Health
  1645. torso.Anchored = true
  1646. Shield = Instance.new("Part", Orbs)
  1647. Shield.Shape = "Ball"
  1648. Shield.CanCollide = true
  1649. Shield.Anchored = true
  1650. Shield.Material = "Neon"
  1651. Shield.Name = "Shield"
  1652. Shield.Locked = true
  1653. Shield.Transparency = 0.3
  1654. Shield.BrickColor = BrickColor.new("Really black")
  1655. Shield.Size = Vector3.new(10.1, 10.1, 10.1)
  1656. Shield.CFrame = torso.CFrame
  1657. function onDamage(Part)
  1658. if Part:findFirstChild("Humanoid") == nil and Part:findFirstChild("BodyVelocity") ~= nil or Part:findFirstChild("Humanoid") == nil and Part:findFirstChild("RocketPropulsion") ~= nil then
  1659. Part.Anchored = true
  1660. if Part:findFirstChild("Mesh") ~= nil then
  1661. z = Part:findFirstChild("Mesh")
  1662. for i = 1, 5 do
  1663. z.Scale = z.Scale + Vector3.new(1, 1, 1)
  1664. wait(0.05)
  1665. end
  1666. end
  1667. end
  1668. end
  1669. Checker = Instance.new("Part", char)
  1670. Checker.Transparency = 0.99
  1671. Checker.Shape = "Ball"
  1672. Checker.Material = "Neon"
  1673. Checker.BrickColor = BrickColor.new("Institutional white")
  1674. Checker.Anchored = false
  1675. Checker.Locked = true
  1676. Checker.CFrame = torso.CFrame
  1677. Checker.CanCollide = false
  1678. Checker.Size = Vector3.new(20, 20, 20)
  1679. newWeld(Checker, torso, 0, 0, 0)
  1680. Checker.Touched:connect(onDamage)
  1681. InnerShield = Instance.new("Part", Orbs)
  1682. InnerShield.CanCollide = true
  1683. InnerShield.Anchored = true
  1684. InnerShield.Material = "Neon"
  1685. InnerShield.Name = "InnerShield"
  1686. InnerShield.Shape = "Ball"
  1687. InnerShield.Locked = true
  1688. InnerShield.BrickColor = BrickColor.new("Royal purple")
  1689. InnerShield.Size = Vector3.new(10, 10, 10)
  1690. InnerShield.CFrame = Shield.CFrame
  1691. newWeld(InnerShield, Shield, 0, 0, 0)
  1692. newWeld(Shield, torso, 0, 0, 0)
  1693. spawn(function()
  1694. while Defence == true do
  1695. hum.Health = CurrentHealth
  1696. hum.WalkSpeed = 0
  1697. wait()
  1698. end
  1699. end)
  1700. for i = 1, 16 do
  1701. for i, v in pairs(Orbs:children()) do
  1702. if v:IsA("Part") and v.Name ~= "InnerShield" and v.Name ~= "Shield" then
  1703. v.Transparency = v.Transparency + 0.1
  1704. end
  1705. end
  1706. wait()
  1707. end
  1708. end
  1709. function TruthSeekerOrbSheildUp()
  1710. Defence = false
  1711. Debounces.CanAttack = true
  1712. Debounces.NoIdle = false
  1713. Shield.CanCollide = false
  1714. InnerShield.CanCollide = false
  1715. for i = 1, 16 do
  1716. Shield.Transparency = Shield.Transparency + 0.1
  1717. InnerShield.Transparency = InnerShield.Transparency + 0.1
  1718. wait()
  1719. end
  1720. Shield:Destroy()
  1721. Checker:Destroy()
  1722. torso.Anchored = false
  1723. InnerShield:Destroy()
  1724. hum.WalkSpeed = 16
  1725. for i = 1, 16 do
  1726. for i, v in pairs(Orbs:children()) do
  1727. if v:IsA("Part") then
  1728. v.Transparency = v.Transparency - 0.1
  1729. end
  1730. end
  1731. wait()
  1732. end
  1733. end
  1734. function TruthSeekerOrbAttack()
  1735. local selected = math.random(1, 8)
  1736. local Orb = Orbs_["Orb" .. selected]
  1737. local Outline = Orb.Outline
  1738. local nPos
  1739. local sound = Instance.new("Sound", hed)
  1740. sound.SoundId = "rbxassetid://0"
  1741. sound.Volume = 0.35
  1742. sound.Pitch = 1.4 + math.random() / 5
  1743. sound:play()
  1744. game:service("Debris"):AddItem(sound, 5)
  1745. if Debounces["OrbMove" .. selected] == true then
  1746. return
  1747. end
  1748. Debounces["OrbMove" .. selected] = true
  1749. for i = 1, 12 do
  1750. Orb.CFrame = Lerp(Outline.CFrame, Mau5.Hit, 0.3)
  1751. nPos = Outline.CFrame.p
  1752. wait()
  1753. end
  1754. Orb.Touched:connect(function(hit)
  1755. if hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and hit.Parent.Name ~= game:service'Players'.LocalPlayer.Name and Debounces["OrbMove" .. selected] == true then
  1756. hit.Parent:FindFirstChildOfClass'Humanoid':TakeDamage(hit.Parent:FindFirstChildOfClass'Humanoid'.MaxHealth/2/2/2/2/2)
  1757. end
  1758. end)
  1759. Debounces["OrbMove" .. selected] = false
  1760. wait(0.1)
  1761. end
  1762. local origHealth = {}
  1763. local OrbOfHealingEquipped = false
  1764. local OrbOfDiscordEquipped = false
  1765. local Darkness = Instance.new("Sound", char.Torso)
  1766. Darkness.SoundId = "rbxassetid://418097747"
  1767. Darkness.Volume = 0.8
  1768. local Healing = Instance.new("Sound", char.Torso)
  1769. Healing.SoundId = "rbxassetid://418097928"
  1770. Healing.Volume = 0.8
  1771. function OrbOfDiscord(Target)
  1772. if Target.Parent:IsA("Accessory") then
  1773. Target = Target.Parent
  1774. end
  1775. local tplr = game:service("Players"):GetPlayerFromCharacter(Target)
  1776. if tplr and tplr.TeamColor == p.TeamColor then
  1777. return
  1778. end
  1779. if OrbOfDiscordEquipped == Target.Parent then
  1780. print("same target?")
  1781. return
  1782. end
  1783. if OrbOfHealingEquipped == Target.Parent then
  1784. OrbOfHealingEquipped = false
  1785. end
  1786. if Target.Parent:findFirstChild("ForceField") then
  1787. OrbOfDiscordEquipped = false
  1788. return
  1789. end
  1790. OrbOfDiscordEquipped = Target.Parent
  1791. local OD1, OD2 = MakeOrb(1)
  1792. OD1.BrickColor = BrickColor.new("Royal purple")
  1793. OD2.BrickColor = BrickColor.new("Really black")
  1794. OD1.Parent = Target.Parent
  1795. OD2.Parent = Target.Parent
  1796. if not origHealth[Target.Parent] then
  1797. origHealth[Target.Parent] = Target.Parent:findFirstChild("Humanoid").MaxHealth
  1798. end
  1799. Darkness:Play()
  1800. spawn(function()
  1801. while wait(0.2) and OrbOfDiscordEquipped == Target.Parent do
  1802. Target.Parent:FindFirstChild("Humanoid").MaxHealth = origHealth[Target.Parent] * 0.7
  1803. if OrbOfDiscordEquipped == false or OrbOfDiscordEquipped ~= Target.Parent then
  1804. break
  1805. end
  1806. local chars = {}
  1807. for i, v in pairs(workspace:children()) do
  1808. if v:FindFirstChild("Humanoid") then
  1809. table.insert(chars, v)
  1810. end
  1811. end
  1812. local hit, pos, surfaceNormal = workspace:FindPartOnRayWithIgnoreList(Ray.new(root.Position, Target.Parent:FindFirstChild("HumanoidRootPart").Position - root.Position), {
  1813. char,
  1814. unpack(chars)
  1815. })
  1816. if hit then
  1817. print("Line of sight broken!")
  1818. OrbOfDiscordEquipped = false
  1819. break
  1820. end
  1821. end
  1822. end)
  1823. while wait() and OrbOfDiscordEquipped == Target.Parent do
  1824. OD1.CFrame = Lerp(OD1.CFrame, Target.Parent.Torso.CFrame * CFrame.new(3, 3 + math.sin(angle2) * 0.32, 2), 0.3)
  1825. OD2.CFrame = Lerp(OD2.CFrame, Target.Parent.Torso.CFrame * CFrame.new(3, 3 + math.sin(angle2) * 0.32, 2), 0.3)
  1826. if OrbOfDiscordEquipped == false then
  1827. break
  1828. end
  1829. end
  1830. local prevHealth = Target.Parent:FindFirstChild("Humanoid").Health
  1831. Target.Parent:FindFirstChild("Humanoid").MaxHealth = origHealth[Target.Parent]
  1832. Target.Parent:FindFirstChild("Humanoid").Health = prevHealth / (origHealth[Target.Parent] * 0.7) * origHealth[Target.Parent]
  1833. OD1:Destroy()
  1834. OD2:Destroy()
  1835. if OrbOfDiscordEquipped == Target.Parent then
  1836. OrbOfDiscordEquipped = false
  1837. end
  1838. end
  1839. function OrbOfHealing(Target)
  1840. if Target.Parent:IsA("Accessory") then
  1841. Target = Target.Parent
  1842. end
  1843. local tplr = game:service("Players"):GetPlayerFromCharacter(Target)
  1844. if tplr and tplr.TeamColor ~= p.TeamColor then
  1845. return
  1846. end
  1847. if OrbOfHealingEquipped == Target.Parent then
  1848. return
  1849. end
  1850. if OrbOfDiscordEquipped == Target.Parent then
  1851. OrbOfDiscordEquipped = false
  1852. end
  1853. if OrbOfHealingEquipped ~= false then
  1854. OrbOfHealingEquipped = false
  1855. wait()
  1856. end
  1857. if Target.Parent:findFirstChild("ForceField") then
  1858. OrbOfHealingEquipped = false
  1859. return
  1860. end
  1861. OrbOfHealingEquipped = Target.Parent
  1862. local OH1, OH2 = MakeOrb(1)
  1863. OH1.BrickColor = BrickColor.new("New Yeller")
  1864. OH2.BrickColor = BrickColor.new("Institutional white")
  1865. OH1.Parent = Target.Parent
  1866. OH2.Parent = Target.Parent
  1867. Healing:Play()
  1868. spawn(function()
  1869. while wait(1) and OrbOfHealingEquipped == Target.Parent do
  1870. Target.Parent:FindFirstChild("Humanoid").Health = Target.Parent:FindFirstChild("Humanoid").Health + 5
  1871. if OrbOfHealingEquipped == false then
  1872. break
  1873. end
  1874. end
  1875. end)
  1876. spawn(function()
  1877. while wait(0.2) do
  1878. local chars = {}
  1879. for i, v in pairs(workspace:children()) do
  1880. if v:FindFirstChild("Humanoid") then
  1881. table.insert(chars, v)
  1882. end
  1883. end
  1884. local hit, pos, surfaceNormal = workspace:FindPartOnRayWithIgnoreList(Ray.new(root.Position, Target.Parent:FindFirstChild("HumanoidRootPart").Position - root.Position), {
  1885. char,
  1886. unpack(chars)
  1887. })
  1888. if hit then
  1889. print("Line of sight broken!")
  1890. OrbOfHealingEquipped = false
  1891. break
  1892. end
  1893. end
  1894. end)
  1895. while OrbOfHealingEquipped do
  1896. OH1.CFrame = Lerp(OH1.CFrame, Target.Parent.Torso.CFrame * CFrame.new(3, 1.8 + math.sin(angle2) * 0.32, 2), 0.3)
  1897. OH2.CFrame = Lerp(OH2.CFrame, Target.Parent.Torso.CFrame * CFrame.new(3, 1.8 + math.sin(angle2) * 0.32, 2), 0.3)
  1898. if OrbOfHealingEquipped == false then
  1899. break
  1900. end
  1901. wait()
  1902. end
  1903. OH1:Destroy()
  1904. OH2:Destroy()
  1905. OrbOfHealingEquipped = false
  1906. end
  1907. Mau5.KeyDown:connect(function(key)
  1908. if key == "g" then
  1909. TailedBeastBombAttack()
  1910. elseif key == "q" then
  1911. SpawnRasenShurikan(workspace)
  1912. end
  1913. if key == "e" then
  1914. local Targ = Mau5.Target
  1915. Debounces.NoIdle = true
  1916. for i = 1, 5 do
  1917. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.5 - 0.1 * math.cos(i / 7) + math.sin(i / 7) / 7, 0) * angles(0 - 0.1 * math.cos(i / 7), 0, 0) * angles(math.rad(math.random(60, 90)), math.rad(math.random(-20, 20)), math.rad(20)), 0.8)
  1918. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.5 - 0.1 * math.cos(i / 7) + math.sin(i / 7) / 7, 0) * angles(0 - 0.1 * math.cos(i / 7), 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.8)
  1919. hed.Weld.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0))
  1920. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.5, -1, -0.5) * angles(1.2 - 0.1 * math.cos(i / 7), 0, 1.3), 0.8)
  1921. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.5, -1, -0.5) * angles(1.3 - 0.1 * math.cos(i / 7), 0, -1.2), 0.8)
  1922. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1.5 - 0.1 * math.cos(i / 7), 0) * cn(0, 1 - 0.1 * math.cos(i / 7), 0) * angles(math.rad(0), 0.5, 0), 0.8)
  1923. wait()
  1924. end
  1925. Debounces.NoIdle = false
  1926. print(Targ.Parent:FindFirstChild("Humanoid"))
  1927. if Targ and Targ.Parent and Targ.Parent:FindFirstChild("Humanoid") then
  1928. OrbOfHealing(Targ.Parent:FindFirstChild("Torso") or Targ.Parent:FindFirstChild("UpperTorso"))
  1929. end
  1930. if Targ and Targ.Parent:IsA("Accessory") and Targ.Parent.Parent:FindFirstChild("Humanoid") then
  1931. OrbOfHealing(Targ.Parent.Parent:FindFirstChild("Torso") or Targ.Parent.Parent:FindFirstChild("UpperTorso"))
  1932. end
  1933. end
  1934. if key == "f" then
  1935. local Targ = Mau5.Target
  1936. Debounces.NoIdle = true
  1937. for i = 1, 5 do
  1938. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.5 - 0.1 * math.cos(i / 7) + math.sin(i / 7) / 7, 0) * angles(0 - 0.1 * math.cos(i / 7), 0, 0) * angles(math.rad(math.random(60, 90)), math.rad(math.random(-20, 20)), math.rad(20)), 0.8)
  1939. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.5 - 0.1 * math.cos(i / 7) + math.sin(i / 7) / 7, 0) * angles(0 - 0.1 * math.cos(i / 7), 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.8)
  1940. hed.Weld.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0))
  1941. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.5, -1, -0.5) * angles(1.2 - 0.1 * math.cos(i / 7), 0, 1.3), 0.8)
  1942. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.5, -1, -0.5) * angles(1.3 - 0.1 * math.cos(i / 7), 0, -1.2), 0.8)
  1943. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1.5 - 0.1 * math.cos(i / 7), 0) * cn(0, 1 - 0.1 * math.cos(i / 7), 0) * angles(math.rad(0), 0.5, 0), 0.8)
  1944. wait()
  1945. end
  1946. Debounces.NoIdle = false
  1947. print(Targ.Parent:FindFirstChild("Humanoid"))
  1948. if Targ and Targ.Parent and Targ.Parent:FindFirstChild("Humanoid") then
  1949. OrbOfDiscord(Targ.Parent:FindFirstChild("Torso") or Targ.Parent:FindFirstChild("UpperTorso"))
  1950. end
  1951. if Targ and Targ.Parent:IsA("Accessory") and Targ.Parent.Parent:FindFirstChild("Humanoid") then
  1952. OrbOfDiscord(Targ.Parent.Parent:FindFirstChild("Torso") or Targ.Parent.Parent:FindFirstChild("UpperTorso"))
  1953. end
  1954. end
  1955. end)
  1956. Mau5.KeyUp:connect(function(key)
  1957. end)
  1958. WhichHand = 0
  1959. Mau5.Button1Down:connect(function()
  1960. if DebounceShot == false and Debounces.NoIdle == false then
  1961. Debounces.NoIdle = true
  1962. if WhichHand == 0 then
  1963. for i = 1, 5 do
  1964. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.5 - 0.1 * math.cos(i / 7) + math.sin(i / 7) / 7, 0) * angles(0 - 0.1 * math.cos(i / 7), 0, 0) * angles(math.rad(math.random(60, 90)), math.rad(math.random(-20, 20)), math.rad(20)), 0.8)
  1965. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.5 - 0.1 * math.cos(i / 7) + math.sin(i / 7) / 7, 0) * angles(0 - 0.1 * math.cos(i / 7), 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.8)
  1966. hed.Weld.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0))
  1967. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.5, -1, -0.5) * angles(1.2 - 0.1 * math.cos(i / 7), 0, 1.3), 0.8)
  1968. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.5, -1, -0.5) * angles(1.3 - 0.1 * math.cos(i / 7), 0, -1.2), 0.8)
  1969. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1.5 - 0.1 * math.cos(i / 7), 0) * cn(0, 1 - 0.1 * math.cos(i / 7), 0) * angles(math.rad(0), 0.5, 0), 0.8)
  1970. wait()
  1971. end
  1972. WhichHand = 1
  1973. Debounces.NoIdle = false
  1974. TruthSeekerOrbAttack()
  1975. else
  1976. for i = 1, 5 do
  1977. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.5 - 0.1 * math.cos(i / 7) + math.sin(i / 7) / 7, 0) * angles(0 - 0.1 * math.cos(i / 7), 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.8)
  1978. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.5 - 0.1 * math.cos(i / 7) + math.sin(i / 7) / 7, 0) * angles(0 - 0.1 * math.cos(i / 7), 0, 0) * angles(math.rad(math.random(60, 90)), math.rad(math.random(-20, 20)), math.rad(20)), 0.8)
  1979. hed.Weld.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0))
  1980. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.5, -1, -0.5) * angles(1.2 - 0.1 * math.cos(i / 7), 0, 1.3), 0.8)
  1981. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.5, -1, -0.5) * angles(1.3 - 0.1 * math.cos(i / 7), 0, -1.2), 0.8)
  1982. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1.5 - 0.1 * math.cos(i / 7), 0) * cn(0, 1 - 0.1 * math.cos(i / 7), 0) * angles(math.rad(0), -0.5, 0), 0.8)
  1983. wait()
  1984. end
  1985. WhichHand = 0
  1986. Debounces.NoIdle = false
  1987. TruthSeekerOrbAttack()
  1988. end
  1989. end
  1990. end)
  1991. local sine = 0
  1992. local twirl = 0
  1993. local change = 1
  1994. angle = 0
  1995. angle2 = 0
  1996. angle3 = 0
  1997. anglespeed = 2
  1998. anglespeed2 = 1
  1999. anglespeed3 = 0.4
  2000. game:GetService("RunService").RenderStepped:connect(function()
  2001. angle = angle % 100 + anglespeed / 10
  2002. angle2 = angle2 % 100 + anglespeed2 / 10
  2003. angle3 = angle3 % 100 + anglespeed3 / 10
  2004. char.Humanoid.FreeFalling:connect(function(f)
  2005. if f then
  2006. ffing = true
  2007. else
  2008. ffing = false
  2009. end
  2010. end)
  2011. if Debounces.Anger == false then
  2012. if Debounces.OrbMove1 == false then
  2013. Orb1.CFrame = Lerp(Orb1.CFrame, torso.CFrame * CFrame.new(0, 3 + math.sin(angle2) * 0.2, 2), 0.04)
  2014. end
  2015. if Debounces.OrbMove2 == false then
  2016. Orb2.CFrame = Lerp(Orb2.CFrame, torso.CFrame * CFrame.new(0, -3 + math.sin(angle2) * 0.32, 2), 0.03)
  2017. end
  2018. if Debounces.OrbMove3 == false then
  2019. Orb3.CFrame = Lerp(Orb3.CFrame, torso.CFrame * CFrame.new(3, 0 + math.sin(angle2) * 0.22, 2), 0.06)
  2020. end
  2021. if Debounces.OrbMove4 == false then
  2022. Orb4.CFrame = Lerp(Orb4.CFrame, torso.CFrame * CFrame.new(-3, 0 + math.sin(angle2) * 0.12, 2), 0.08)
  2023. end
  2024. if Debounces.OrbMove5 == false then
  2025. Orb5.CFrame = Lerp(Orb5.CFrame, torso.CFrame * CFrame.new(-2, -2 + math.sin(angle2) * 0.12, 2), 0.07)
  2026. end
  2027. if Debounces.OrbMove6 == false then
  2028. Orb6.CFrame = Lerp(Orb6.CFrame, torso.CFrame * CFrame.new(-2, 2 + math.sin(angle2) * 0.12, 2), 0.4)
  2029. end
  2030. if Debounces.OrbMove7 == false then
  2031. Orb7.CFrame = Lerp(Orb7.CFrame, torso.CFrame * CFrame.new(2, 2 + math.sin(angle2) * 0.12, 2), 0.2)
  2032. end
  2033. if Debounces.OrbMove8 == false then
  2034. Orb8.CFrame = Lerp(Orb8.CFrame, torso.CFrame * CFrame.new(2, -2 + math.sin(angle2) * 0.12, 2), 0.05)
  2035. end
  2036. else
  2037. if Debounces.OrbMove1 == false then
  2038. Orb1.CFrame = Lerp(Orb1.CFrame, torso.CFrame * CFrame.new(0, 3 + math.sin(angle2) * 0.2, 2) * CFrame.new(math.sin(angle / 6), math.tan(angle2 / 6), math.cos(angle3 / 6)) * CFrame.Angles(math.sin(angle / 6), math.tan(angle2 / 6), math.floor(angle3 / 6)), 0.04)
  2039. end
  2040. if Debounces.OrbMove2 == false then
  2041. Orb2.CFrame = Lerp(Orb2.CFrame, torso.CFrame * CFrame.new(0, -3 + math.sin(angle2) * 0.32, 2) * CFrame.new(math.sin(angle / 6), math.tan(angle2 / 6), math.cos(angle3 / 6)) * CFrame.Angles(math.sin(angle / 6), math.tan(angle2 / 6), math.floor(angle3 / 6)), 0.03)
  2042. end
  2043. if Debounces.OrbMove3 == false then
  2044. Orb3.CFrame = Lerp(Orb3.CFrame, torso.CFrame * CFrame.new(3, 0 + math.sin(angle2) * 0.22, 2) * CFrame.new(math.tan(angle / 6), math.sin(angle2 / 6), math.cos(angle3 / 6)) * CFrame.Angles(math.sin(angle / 6), math.tan(angle2 / 6), math.floor(angle3 / 6)), 0.06)
  2045. end
  2046. if Debounces.OrbMove4 == false then
  2047. Orb4.CFrame = Lerp(Orb4.CFrame, torso.CFrame * CFrame.new(-3, 0 + math.sin(angle2) * 0.12, 2) * CFrame.new(math.tan(angle / 6), math.sin(angle2 / 6), math.cos(angle3 / 6)) * CFrame.Angles(math.sin(angle / 6), math.tan(angle2 / 6), math.floor(angle3 / 6)), 0.08)
  2048. end
  2049. if Debounces.OrbMove5 == false then
  2050. Orb5.CFrame = Lerp(Orb5.CFrame, torso.CFrame * CFrame.new(-2, -2 + math.sin(angle2) * 0.12, 2) * CFrame.new(math.tan(angle / 6), -math.tan(angle2 / 6), math.cos(angle3 / 6)) * CFrame.Angles(math.sin(angle / 6), math.tan(angle2 / 6), math.floor(angle3 / 6)), 0.07)
  2051. end
  2052. if Debounces.OrbMove6 == false then
  2053. Orb6.CFrame = Lerp(Orb6.CFrame, torso.CFrame * CFrame.new(-2, 2 + math.sin(angle2) * 0.12, 2) * CFrame.new(math.tan(angle / 6), math.tan(angle2 / 6), math.cos(angle3 / 6)) * CFrame.Angles(math.sin(angle / 6), math.tan(angle2 / 6), math.floor(angle3 / 6)), 0.4)
  2054. end
  2055. if Debounces.OrbMove7 == false then
  2056. Orb7.CFrame = Lerp(Orb7.CFrame, torso.CFrame * CFrame.new(2, 2 + math.sin(angle2) * 0.12, 2) * CFrame.new(math.cos(angle / 6), math.tan(angle2 / 6), math.tan(angle3 / 6)) * CFrame.Angles(math.sin(angle / 6), math.tan(angle2 / 6), math.floor(angle3 / 6)), 0.2)
  2057. end
  2058. if Debounces.OrbMove8 == false then
  2059. Orb8.CFrame = Lerp(Orb8.CFrame, torso.CFrame * CFrame.new(2, -2 + math.sin(angle2) * 0.12, 2) * CFrame.new(math.cos(angle / 6), -math.tan(angle2 / 6), math.tan(angle3 / 6)) * CFrame.Angles(math.sin(angle / 6), math.tan(angle2 / 6), math.floor(angle3 / 6)), 0.05)
  2060. end
  2061. end
  2062. sine = sine + change
  2063. if jumpn == true then
  2064. animpose = "Jumping"
  2065. elseif ffing == true then
  2066. animpose = "Freefalling"
  2067. elseif 2 > (torso.Velocity * Vector3.new(1, 0, 1)).magnitude then
  2068. animpose = "Idle"
  2069. elseif (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 20 then
  2070. animpose = "Walking"
  2071. elseif (torso.Velocity * Vector3.new(1, 0, 1)).magnitude > 20 then
  2072. animpose = "Running"
  2073. end
  2074. if animpose ~= lastanimpose then
  2075. sine = 0
  2076. if Debounces.NoIdle ~= false or animpose == "Idle" then
  2077. elseif animpose == "Walking" then
  2078. else
  2079. if animpose == "Running" then
  2080. else
  2081. end
  2082. end
  2083. end
  2084. lastanimpose = animpose
  2085. if Debounces.NoIdle == false then
  2086. if animpose == "Idle" then
  2087. change = 0.5
  2088. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.5 - 0.1 * math.cos(sine / 7) + math.sin(sine / 7) / 7, 0) * angles(0 - 0.1 * math.cos(sine / 7), 0, 0) * angles(math.rad(0), math.rad(180), math.rad(-30)), 0.2)
  2089. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.5 - 0.1 * math.cos(sine / 7) + math.sin(sine / 7) / 7, 0) * angles(0 - 0.1 * math.cos(sine / 7), 0, 0) * angles(math.rad(0), math.rad(180), math.rad(30)), 0.2)
  2090. hed.Weld.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0))
  2091. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.5, -1, -0.5) * angles(1.2 - 0.1 * math.cos(sine / 7), 0, 1.3), 0.4)
  2092. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.5, -1, -0.5) * angles(1.3 - 0.1 * math.cos(sine / 7), 0, -1.2), 0.4)
  2093. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1.5 - 0.1 * math.cos(sine / 7), 0) * cn(0, 1 - 0.1 * math.cos(sine / 7), 0) * angles(math.rad(0), 0, 0), 0.2)
  2094. elseif animpose == "Walking" then
  2095. change = 0.5
  2096. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.5 - 0.1 * math.cos(sine / 7) + math.sin(sine / 7) / 7, 0) * angles(0 - 0.1 * math.cos(sine / 7), 0, 0) * angles(math.rad(0), math.rad(180), math.rad(-30)), 0.2)
  2097. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.5 - 0.1 * math.cos(sine / 7) + math.sin(sine / 7) / 7, 0) * angles(0 - 0.1 * math.cos(sine / 7), 0, 0) * angles(math.rad(0), math.rad(180), math.rad(30)), 0.2)
  2098. hed.Weld.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0))
  2099. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.5, -1, -0.5) * angles(1.2 - 0.1 * math.cos(sine / 7), 0, 1.3), 0.4)
  2100. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.5, -1, -0.5) * angles(1.3 - 0.1 * math.cos(sine / 7), 0, -1.2), 0.4)
  2101. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1.5 - 0.1 * math.cos(sine / 7), 0) * cn(0, 1 - 0.1 * math.cos(sine / 7), 0) * angles(math.rad(0), 0, 0), 0.2)
  2102. elseif animpose == "Running" then
  2103. change = 0.5
  2104. twirl = twirl + 1
  2105. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(0.7, 0.5 - 0.1 * math.cos(sine / 7) + math.sin(sine / 7) / 7, -0.5) * angles(1.2 - 0.1 * math.cos(sine / 7), 0, -1.3), 0.2)
  2106. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-0.7, 0.5 - 0.1 * math.cos(sine / 7) + math.sin(sine / 7) / 7, -0.5) * angles(1.3 - 0.1 * math.cos(sine / 7), 0, 1.2), 0.2)
  2107. hed.Weld.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), 0.5, math.rad(0))
  2108. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.4)
  2109. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.4)
  2110. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1.5 - 0.1 * math.cos(sine / 7), 0) * cn(0, 1 - 0.1 * math.cos(sine / 4), 0) * angles(math.rad(-90), 0, 0) * angles(0, sine / 10, 0), 0.5)
  2111. elseif animpose == "Freefalling" then
  2112. change = 0.5
  2113. end
  2114. end
  2115. end)
  2116. hum.MaxHealth = 150
  2117. wait()
  2118. hum.Health = 150
  2119. function dispose()
  2120. for i, v in pairs(getfenv(0)) do
  2121. v = nil
  2122. end
  2123. error = nil
  2124. print = nil
  2125. warn = nil
  2126. script:Destroy()
  2127. script = nil
  2128. end
  2129. hum.Died:connect(dispose)
  2130. char.Changed:connect(function()
  2131. if char.Parent == nil then
  2132. dispose()
  2133. end
  2134. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement