Advertisement
heyoooooooooo

Untitled

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