Advertisement
heyoooooooooo

Untitled

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