NokiTakashi

Untitled

Sep 15th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.04 KB | None | 0 0
  1. local Plr = game:GetService'Players'.LocalPlayer
  2. local UIS = game:GetService'UserInputService'
  3. local Chr = Plr.Character or Plr.CharacterAdded:Wait()
  4. local Hum = Chr:WaitForChild'Humanoid'
  5. local HRP = Chr:WaitForChild'HumanoidRootPart'
  6. local RiA = Chr:WaitForChild'Right Arm'
  7. local LiA = Chr:WaitForChild'Left Arm'
  8. local Head = Chr:WaitForChild'Head'
  9. local Torso = Chr:WaitForChild'Torso'
  10. local attack = false
  11. local anim = Hum.Animator
  12. local Form = "None"
  13. local RS = Torso:FindFirstChild("Right Shoulder")
  14. local LS = Torso:FindFirstChild("Left Shoulder")
  15. local RH = Torso:FindFirstChild("Right Hip")
  16. local LH = Torso:FindFirstChild("Left Hip")
  17. local RJ = HRP:FindFirstChild("RootJoint")
  18. local N = Torso:FindFirstChild("Neck")
  19. local ang = CFrame.Angles
  20. local rd = math.rad
  21. local Mouse = Plr:GetMouse()
  22. local Debris = game:GetService'Debris'
  23. local cf = CFrame.new
  24. local necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  25. local vt = Vector3.new
  26. local euler=CFrame.fromEulerAnglesXYZ
  27. local RootCF=euler(-1.57,0,3.14)
  28. local CP = game:GetService'ContentProvider'
  29. local PL = {743886825,597269159,437432504,186934658,560718478,568141359,858904104,870984991,710665860,533682002,533682286,741623151,738749992,711351773}
  30. for a,a in pairs(PL)do
  31. CP:Preload('rbxassetid://'..tostring(a))
  32. end
  33. Hum.MaxHealth = math.huge
  34. Hum.Health = math.huge
  35. Hum.WalkSpeed = 100
  36. Hum.JumpPower = 50
  37. if Head:FindFirstChild'face' then
  38. Head:WaitForChild'face'.Texture = 'rbxassetid://710665860'
  39. else
  40. local a = Instance.new('Decal', Head)
  41. a.Texture = 'rbxassetid://710665860'
  42. end
  43. for a, a in pairs(Chr:GetChildren()) do
  44. if a:IsA'Shirt' or a:IsA'Pants' or a:IsA'Hat' or a:IsA'Accessory' then
  45. a:Destroy()
  46. end
  47. end
  48. for a, a in pairs(Head:GetChildren()) do
  49. if a:IsA'Sound' then
  50. a:Destroy()
  51. end
  52. end
  53. local S = Instance.new("Shirt", Chr)
  54. S.Name = "Shirt"
  55. local Pants = Instance.new("Pants", Chr)
  56. Pants.Name = "Pants"
  57. S.ShirtTemplate = 'rbxassetid://533682002'
  58. Pants.PantsTemplate = 'rbxassetid://533682286'
  59. local W2 = Instance.new("Weld", Head)
  60. W2.Part0 = Head
  61. local train = Instance.new("Part", Head)
  62. train.Anchored = true
  63. train.CanCollide = false
  64. train.Size = vt(3, 2, 6)
  65. train.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  66. W2.Part1 = train
  67. W2.C1 = cf(0.05, -0.9, -0.5) * ang(0, rd(0), 0)
  68. train.Anchored = false
  69. local TrainMesh = Instance.new("SpecialMesh", train)
  70. TrainMesh.MeshType = Enum.MeshType.FileMesh
  71. TrainMesh.Scale = vt(6.25, 6.25, 6.25)
  72. TrainMesh.MeshId = "rbxassetid://560718478"
  73. TrainMesh.TextureId = "rbxassetid://0"
  74. local function HSLtoRGB(hue, sat, light)
  75. local c = light > .5 and (2 - 2 * light) * sat or (2 * light) * sat
  76. local h2 = hue / 60
  77. local x = c * (1 - math.abs((h2 % 2) - 1))
  78. local rgbvals = {{c, x, 0}, {x, c, 0}, {0, c, x}, {0, x, c}, {x, 0, c}, {c, 0, x}}
  79. local rgb = rgbvals[math.floor(h2) + 1]
  80. for i = 1, 3 do rgb[i] = rgb[i] + (light - .5 * c) end
  81. return Color3.new(rgb[1], rgb[2], rgb[3])
  82. end
  83. local function New(Object, Parent, Name, Data)
  84. local Object = Instance.new(Object)
  85. for Index, Value in pairs(Data or {}) do
  86. Object[Index] = Value
  87. end
  88. Object.Parent = Parent
  89. Object.Name = Name
  90. return Object
  91. end
  92. local function QuaternionFromCFrame(cf)
  93. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  94. local trace = m00 + m11 + m22
  95. if trace > 0 then
  96. local s = math.sqrt(1 + trace)
  97. local recip = 0.5/s
  98. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  99. else
  100. local i = 0
  101. if m11 > m00 then
  102. i = 1
  103. end
  104. if m22 > (i == 0 and m00 or m11) then
  105. i = 2
  106. end
  107. if i == 0 then
  108. local s = math.sqrt(m00-m11-m22+1)
  109. local recip = 0.5/s
  110. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  111. elseif i == 1 then
  112. local s = math.sqrt(m11-m22-m00+1)
  113. local recip = 0.5/s
  114. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  115. elseif i == 2 then
  116. local s = math.sqrt(m22-m00-m11+1)
  117. local recip = 0.5/s
  118. return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  119. end
  120. end
  121. end
  122. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  123. local xs, ys, zs = x + x, y + y, z + z
  124. local wx, wy, wz = w*xs, w*ys, w*zs
  125. local xx = x*xs
  126. local xy = x*ys
  127. local xz = x*zs
  128. local yy = y*ys
  129. local yz = y*zs
  130. local zz = z*zs
  131. 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))
  132. end
  133. local function QuaternionSlerp(a, b, t)
  134. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  135. local startInterp, finishInterp;
  136. if cosTheta >= 0.0001 then
  137. if (1 - cosTheta) > 0.0001 then
  138. local theta = math.acos(cosTheta)
  139. local invSinTheta = 1/math.sin(theta)
  140. startInterp = math.sin((1-t)*theta)*invSinTheta
  141. finishInterp = math.sin(t*theta)*invSinTheta
  142. else
  143. startInterp = 1-t
  144. finishInterp = t
  145. end
  146. else
  147. if (1+cosTheta) > 0.0001 then
  148. local theta = math.acos(-cosTheta)
  149. local invSinTheta = 1/math.sin(theta)
  150. startInterp = math.sin((t-1)*theta)*invSinTheta
  151. finishInterp = math.sin(t*theta)*invSinTheta
  152. else
  153. startInterp = t-1
  154. finishInterp = t
  155. end
  156. end
  157. 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
  158. end
  159. local function clerp(a,b,t)
  160. local qa = {QuaternionFromCFrame(a)}
  161. local qb = {QuaternionFromCFrame(b)}
  162. local ax, ay, az = a.x, a.y, a.z
  163. local bx, by, bz = b.x, b.y, b.z
  164. local _t = 1-t
  165. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  166. end
  167. local RightArm = New("Model", Chr, "RightArm", {})
  168. local MainPart = New("Part", RightArm, "MainPart", {
  169. Transparency = 1,
  170. Transparency = 1,
  171. FormFactor = Enum.FormFactor.Symmetric,
  172. Size = Vector3.new(1, 2, 1),
  173. CFrame = cf(2.011096, 6.31690788, -3.92582893, 0.00918400101, -0.262283146, 0.964947343, 0.259330034, 0.932596445, 0.251021653, -0.965745091, 0.247934431, 0.0765828639),
  174. CanCollide = false,
  175. })
  176. New("ManualWeld", MainPart, "Weld", {
  177. Part0 = MainPart,
  178. Part1 = RiA,
  179. C0 = cf(0, 0, 0, 0.00918400101, 0.259330034, -0.965745091, -0.262283146, 0.932596445, 0.247934431, 0.964947343, 0.251021653, 0.0765828639),
  180. C1 = cf(-2.86102295e-006, -9.05990601e-006, -2.38418579e-006, 0.00918400101, 0.259330034, -0.965745091, -0.262283146, 0.932596445, 0.247934431, 0.964947343, 0.251021653, 0.0765828639)
  181. })
  182. Hitbox = New("Part", RightArm, "Hitbox", {
  183. BrickColor = BrickColor.new("Really black"),
  184. Transparency = 1,
  185. Transparency = 1,
  186. Size = Vector3.new(1, 4, 1),
  187. CFrame = cf(22.2733669, 5.0842762, -22.1737366, -0.964945257, -0.262290984, 0.00919180829, -0.251027077, 0.93259424, 0.259333313, -0.0765930116, 0.247935042, -0.965744138),
  188. CanCollide = false,
  189. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  190. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  191. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  192. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  193. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  194. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  195. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  196. })
  197. New("ManualWeld", Hitbox, "Weld", {
  198. Part0 = Hitbox,
  199. Part1 = MainPart,
  200. C0 = cf(0, 0, 0, -0.964945257, -0.251027077, -0.0765930116, -0.262290984, 0.93259424, 0.247935042, 0.00919180829, 0.259333313, -0.965744138),
  201. C1 = cf(-1.52587891e-005, -1.00003147, -1.71661377e-005, 0.0091838371, 0.259330064, -0.965745151, -0.262283117, 0.932596445, 0.247934505, 0.964947283, 0.251021653, 0.0765827149)
  202. })
  203. CorruptedPart = New("Part", RightArm, "CorruptedPart", {
  204. BrickColor = BrickColor.new("Bright violet"),
  205. Material = Enum.Material.Sand,
  206. Size = Vector3.new(1, 2, 1),
  207. CFrame = cf(2.011096, 6.3169179, -3.92581391, -0.964945257, -0.262290984, 0.00919180829, -0.251027077, 0.93259424, 0.259333313, -0.0765930116, 0.247935042, -0.965744138),
  208. CanCollide = false,
  209. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  210. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  211. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  212. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  213. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  214. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  215. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  216. })
  217. New("BlockMesh", CorruptedPart, "Mesh", {
  218. Scale = Vector3.new(1.10000002, 1.10000002, 1.10000002),
  219. })
  220. New("ManualWeld", CorruptedPart, "Weld", {
  221. Part0 = CorruptedPart,
  222. Part1 = MainPart,
  223. C0 = cf(0, 0, 0, -0.964945138, -0.251027018, -0.0765930042, -0.262290984, 0.932594121, 0.247935027, 0.00919180084, 0.259333313, -0.965744197),
  224. C1 = cf(-1.1920929e-005, 1.28746033e-005, 3.57627869e-006, 0.00918400101, 0.259330034, -0.965745091, -0.262283146, 0.932596445, 0.247934431, 0.964947343, 0.251021653, 0.0765828639)
  225. })
  226. CorruptedPart = New("Part", RightArm, "CorruptedPart", {
  227. BrickColor = BrickColor.new("Bright violet"),
  228. Material = Enum.Material.Sand,
  229. Size = Vector3.new(1, 0.600000024, 0.400000036),
  230. CFrame = cf(2.14866924, 6.03215551, -4.72580194, -0.964945078, 0.262291819, -0.00918725226, -0.251029015, -0.932593465, -0.259333432, -0.0765890032, -0.247936144, 0.965744317),
  231. CanCollide = false,
  232. BackSurface = Enum.SurfaceType.SmoothNoOutlines,
  233. BottomSurface = Enum.SurfaceType.SmoothNoOutlines,
  234. FrontSurface = Enum.SurfaceType.SmoothNoOutlines,
  235. LeftSurface = Enum.SurfaceType.SmoothNoOutlines,
  236. RightSurface = Enum.SurfaceType.SmoothNoOutlines,
  237. TopSurface = Enum.SurfaceType.SmoothNoOutlines,
  238. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  239. })
  240. New("SpecialMesh", CorruptedPart, "Mesh", {
  241. Scale = Vector3.new(1.75, 3, 4.5),
  242. MeshType = Enum.MeshType.Sphere,
  243. })
  244. New("ManualWeld", CorruptedPart, "Weld", {
  245. Part0 = CorruptedPart,
  246. Part1 = MainPart,
  247. C0 = cf(0, 1, 0, -1., -0.251028955, -0.0765889958, 0.262291819, -0.932593465, -0.247936144, -0.00918724574, -0.259333432, 0.965744257),
  248. C1 = cf(0, -0.499982834, 7.62939453e-006, 0.00918400101, 0.259330034, -0.965745091, -0.262283146, 0.932596445, 0.247934431, 0.964947343, 0.251021653, 0.0765828639)
  249. })
  250. local swinganim = Hum:LoadAnimation(New("Animation", Chr, "Swing", {
  251. AnimationId = "rbxassetid://186934658"
  252. }))
  253. local function SoulSteal(pos)
  254. local soul = Instance.new("Part", Chr)
  255. soul.Size = vt(0, 0, 0)
  256. soul.CanCollide = false
  257. soul.Anchored = false
  258. soul.Position = pos
  259. soul.CFrame = cf(pos.X, pos.Y, pos.Z)
  260. soul.Transparency = 1
  261. local ptc = Instance.new("ParticleEmitter", soul)
  262. ptc.Texture = "rbxassetid://149468041"
  263. ptc.Size = NumberSequence.new(.8)
  264. ptc.LockedToPart = true
  265. ptc.Speed = NumberRange.new(0)
  266. ptc.Lifetime = NumberRange.new(9999)
  267. local bodpos = Instance.new("BodyPosition", soul)
  268. bodpos.Position = pos
  269. soul.Touched:Connect(function(hit)
  270. if hit.Parent == Chr then
  271. soul:Destroy()
  272. end
  273. end)
  274. spawn(function()
  275. while soul and wait(.125) do
  276. bodpos.Position = Torso.Position
  277. end
  278. end)
  279. end
  280. local function KillMortal(hitdude)
  281. local torsy = nil
  282. if hitdude:FindFirstChild'Torso'then
  283. torsy = hitdude.Torso
  284. elseif hitdude:FindFirstChild'UpperTorso'then
  285. torsy = hitdude.UpperTorso
  286. end
  287. local val = Instance.new("ObjectValue", hitdude)
  288. val.Name = "HasBeenHit"
  289. hitdude:BreakJoints()
  290. SoulSteal(torsy.Position)
  291. local chi = hitdude:GetChildren()
  292. for i = 1, #chi do
  293. if chi[i]:IsA"Part" or chi[i]:IsA"MeshPart" then
  294. local bodpos = Instance.new("BodyPosition", chi[i])
  295. bodpos.Position = chi[i].Position + vt(math.random(0, 0), math.random(0, 0), math.random(0, 0))
  296. chi[i].BrickColor = BrickColor.new("Bright violet")
  297. spawn(function()
  298. wait(1.25)
  299. chi[i]:Destroy()
  300. end)
  301. end
  302. end
  303. for i = 1, 4 do
  304. for i = 1, #chi do
  305. if chi[i]:IsA"Part" or chi[i]:IsA"MeshPart" then
  306. chi[i].Transparency = chi[i].Transparency + .25
  307. wait(.01)
  308. end
  309. end
  310. end
  311. end
  312. local bladeactive = false
  313. MainPart.Touched:Connect(function(hit)
  314. if bladeactive == true then
  315. if hit.Parent:FindFirstChild'Humanoid' and not hit.Parent:FindFirstChild'HasBeenHit' and hit.Parent ~= Chr then
  316. local Sound = Instance.new('Sound', RiA)
  317. Sound.SoundId = 'rbxassetid://0'
  318. Sound.Volume = 2
  319. Sound:Play()
  320. KillMortal(hit.Parent)
  321. end
  322. end
  323. end)
  324. local name = Instance.new("BillboardGui", Chr)
  325. name.Size = UDim2.new(0, 100, 0, 40)
  326. name.StudsOffset = vt(0, 6, 0)
  327. name.Adornee = Head
  328. local txt = Instance.new("TextLabel", name)
  329. txt.BackgroundTransparency = 1
  330. txt.BorderSizePixel = 0
  331. txt.Text = "???"
  332. txt.Font = "Fantasy"
  333. txt.FontSize = "Size24"
  334. txt.TextStrokeTransparency = 0
  335. txt.TextStrokeColor3 = Color3.new(0, 0, 0)
  336. txt.TextColor3 = Color3.new(0, 0, 0)
  337. txt.Size = UDim2.new(1, 0, .5, 0)
  338. trazx = Instance.new("ParticleEmitter")
  339. local function swait(num)
  340. if num == 0 or num == nil then
  341. game:GetService'RunService'.Heartbeat:wait(0)
  342. else
  343. for i = 0, num do
  344. game:GetService'RunService'.Heartbeat:wait(0)
  345. end
  346. end
  347. end
  348. local function lerpz(joint, prop, CFramermz, alp)
  349. joint[prop] = joint[prop]:lerp(CFramermz, alp)
  350. end
  351. local RSC0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  352. local RSC1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  353. local LSC0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  354. local LSC1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  355. local RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  356. local RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  357. local LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  358. local LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  359. local NC0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  360. local NC1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  361. local RJC0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  362. local RJC1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  363. local function resetlerp()
  364. RJ.C0 = RJC0
  365. RJ.C1 = RJC1
  366. N.C0 = NC0
  367. N.C1 = NC1
  368. RS.C0 = RSC0
  369. RS.C1 = RSC1
  370. LS.C0 = LSC0
  371. LS.C1 = LSC1
  372. RH.C0 = RHC0
  373. RH.C1 = RHC1
  374. LH.C0 = LHC0
  375. LH.C1 = LHC1
  376. end
  377. local function SSJB()
  378. if Form == "None"then
  379. Form = "SSJB"
  380. anim.Parent = nil
  381. for i = 1, 35 do
  382. swait()
  383. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
  384. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
  385. lerpz(RS, "C0", RSC0 * cf(0, 0, -0.5) * ang(rd(-45), rd(0), rd(140)), 0.3)
  386. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  387. lerpz(LS, "C0", LSC0 * cf(0, 0, -0.5) * ang(rd(-45), rd(0), rd(-140)), 0.3)
  388. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  389. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.3)
  390. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  391. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.3)
  392. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  393. end
  394. for i = 1, 15 do
  395. swait()
  396. lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.35) * ang(rd(10), rd(0), rd(0)), 0.5)
  397. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 0.5)
  398. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-5), rd(5), rd(45)), 0.5)
  399. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  400. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5), rd(-5), rd(-45)), 0.5)
  401. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  402. lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-10), rd(10)), 0.5)
  403. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  404. lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(10), rd(-10)), 0.5)
  405. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  406. end
  407. for i, v in pairs(Chr:GetChildren()) do
  408. if v:IsA'Part' then
  409. local tra = trazx:clone()
  410. tra.Parent = v
  411. tra.LightEmission = 1
  412. tra.Color = ColorSequence.new(Color3.new(0, 0, 0))
  413. tra.Rate = 12
  414. tra.Rotation = NumberRange.new(-5, 5)
  415. tra.Lifetime = NumberRange.new(1.5, 2)
  416. tra.Size = NumberSequence.new({
  417. NumberSequenceKeypoint.new(0, 0.1, 0),
  418. NumberSequenceKeypoint.new(1, 0, 0)
  419. })
  420. tra.Transparency = NumberSequence.new({
  421. NumberSequenceKeypoint.new(0, 1, 0),
  422. NumberSequenceKeypoint.new(0.135, 0, 0),
  423. NumberSequenceKeypoint.new(0.875, 0, 0),
  424. NumberSequenceKeypoint.new(1, 1, 0)
  425. })
  426. tra.Speed = NumberRange.new(0.5)
  427. tra.VelocitySpread = 360
  428. tra.VelocityInheritance = 0.5
  429. tra.ZOffset = 2
  430. tra.Acceleration = vt(0, 2.5, 0)
  431. end
  432. end
  433. local tra = trazx:clone()
  434. tra.Parent = HRP
  435. tra.Texture = "rbxassetid://741623151"
  436. tra.LightEmission = 0.8
  437. tra.Color = ColorSequence.new(Color3.new(0, 0, 0))
  438. tra.Rate = 250
  439. tra.Rotation = NumberRange.new(-5, 5)
  440. tra.Lifetime = NumberRange.new(0.75)
  441. tra.Size = NumberSequence.new({
  442. NumberSequenceKeypoint.new(0, 4.81, 0.875),
  443. NumberSequenceKeypoint.new(1, 2.13, 0.875)
  444. })
  445. tra.Transparency = NumberSequence.new({
  446. NumberSequenceKeypoint.new(0, 1, 0),
  447. NumberSequenceKeypoint.new(0.0399, 0.85, 0),
  448. NumberSequenceKeypoint.new(0.394, 0.9, 0),
  449. NumberSequenceKeypoint.new(0.699, 1, 0),
  450. NumberSequenceKeypoint.new(1, 1, 0)
  451. })
  452. tra.Speed = NumberRange.new(15)
  453. tra.VelocitySpread = 360
  454. tra.VelocityInheritance = 0.5
  455. tra.ZOffset = 3.5
  456. tra.Acceleration = vt(0, 25, 0)
  457.  
  458. for i = 1, 25 do
  459. for i = 1, 3 do
  460. swait()
  461. lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.4) * ang(rd(12), rd(0), rd(0)), 0.5)
  462. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 0.5)
  463. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(5), rd(50)), 0.5)
  464. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  465. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(-50)), 0.5)
  466. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  467. lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-12), rd(12)), 0.5)
  468. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  469. lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(12), rd(-12)), 0.5)
  470. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  471. end
  472. for i = 1, 3 do
  473. swait()
  474. lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.35) * ang(rd(10), rd(0), rd(0)), 0.5)
  475. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 0.5)
  476. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(5), rd(45)), 0.5)
  477. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  478. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(-45)), 0.5)
  479. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  480. lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-10), rd(10)), 0.5)
  481. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  482. lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(10), rd(-10)), 0.5)
  483. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  484. end
  485. end
  486. TrainMesh.MeshType = Enum.MeshType.FileMesh
  487. TrainMesh.Scale = vt(0.05, 0.05, 0.05)
  488. TrainMesh.MeshId = "rbxassetid://437432504"
  489. W2.C1 = cf(0, 0.4, -2.1) * ang(0, rd(0), 0)
  490. local S2 = Instance.new("Sound", HRP)
  491. S2.SoundId = "rbxassetid://597269159"
  492. S2.Volume = 1
  493. S2:Play()
  494. txt.Text = "I've tapped into an interesting power."
  495. wait(2)
  496. txt.Text = "???"
  497. local SE = Instance.new("ChorusSoundEffect", S2)
  498. tra.LightEmission = 0.8
  499. tra.Color = ColorSequence.new(Color3.new(0, 0, 0))
  500. tra.Rate = 250
  501. tra.Rotation = NumberRange.new(-5, 5)
  502. tra.Lifetime = NumberRange.new(0.2, 0.4)
  503. tra.Size = NumberSequence.new({
  504. NumberSequenceKeypoint.new(0, 4.81, 0.875),
  505. NumberSequenceKeypoint.new(1, 2.13, 0.875)
  506. })
  507. tra.Transparency = NumberSequence.new({
  508. NumberSequenceKeypoint.new(0, 1, 0),
  509. NumberSequenceKeypoint.new(0.0399, 0.8, 0),
  510. NumberSequenceKeypoint.new(0.394, 0.8, 0),
  511. NumberSequenceKeypoint.new(0.699, 1, 0),
  512. NumberSequenceKeypoint.new(1, 1, 0)
  513. })
  514. tra.Speed = NumberRange.new(5)
  515. tra.VelocitySpread = 360
  516. tra.VelocityInheritance = 0.5
  517. tra.ZOffset = 3.5
  518. tra.Acceleration = vt(0, 150, 0)
  519. local tra = trazx:clone()
  520. tra.Parent = HRP
  521. tra.Texture = "rbxassetid://257173628"
  522. tra.LightEmission = 1
  523. tra.Rate = 20
  524. tra.Rotation = NumberRange.new(360, 720)
  525. tra.Lifetime = NumberRange.new(0.75)
  526. tra.Size = NumberSequence.new({
  527. NumberSequenceKeypoint.new(0, 2.5, 0.875),
  528. NumberSequenceKeypoint.new(1, 2.5, 0.875)
  529. })
  530. tra.Transparency = NumberSequence.new({
  531. NumberSequenceKeypoint.new(0, 0, 0),
  532. NumberSequenceKeypoint.new(0, 0., 0),
  533. NumberSequenceKeypoint.new(0, 0, 0),
  534. NumberSequenceKeypoint.new(0, 0, 0),
  535. NumberSequenceKeypoint.new(1, 1, 0)
  536. })
  537. tra.Speed = NumberRange.new(0)
  538. tra.VelocitySpread = 360
  539. tra.VelocityInheritance = 0
  540. tra.ZOffset = 3.5
  541. tra.Acceleration = vt(0, 0, 0)
  542. local tra = trazx:clone()
  543. tra.Parent = HRP
  544. tra.Texture = "rbxassetid://380961170"
  545. tra.LightEmission = 1
  546. tra.Rate = 25
  547. tra.RotSpeed = NumberRange.new(5000,10000)
  548. tra.Rotation = NumberRange.new(0, 0)
  549. tra.Lifetime = NumberRange.new(1)
  550. tra.Size = NumberSequence.new({
  551. NumberSequenceKeypoint.new(0, 0, 0),
  552. NumberSequenceKeypoint.new(1, 10, 0)
  553. })
  554. tra.Transparency = NumberSequence.new({
  555. NumberSequenceKeypoint.new(0, 0, 0),
  556. NumberSequenceKeypoint.new(0, 0., 0),
  557. NumberSequenceKeypoint.new(0, 0, 0),
  558. NumberSequenceKeypoint.new(0, 0, 0),
  559. NumberSequenceKeypoint.new(1, 1, 0)
  560. })
  561. tra.Speed = NumberRange.new(3)
  562. tra.VelocitySpread = 0
  563. tra.VelocityInheritance = 0
  564. tra.ZOffset = 0
  565. tra.Acceleration = vt(0, 0, 0)
  566.  
  567. local s = Instance.new("Sound", Head)
  568. s.SoundId = "rbxassetid://0"
  569. s.Volume = 1
  570. s.Looped = true
  571. s:Play()
  572. for i = 1, 50 do
  573. swait()
  574. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
  575. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
  576. lerpz(RS, "C0", RSC0 * cf(0, 0, -0.5) * ang(rd(-25), rd(0), rd(-25)), 0.3)
  577. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  578. lerpz(LS, "C0", LSC0 * cf(0, 0, -0.5) * ang(rd(-25), rd(0), rd(25)), 0.3)
  579. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  580. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.3)
  581. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  582. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.3)
  583. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  584. end
  585. resetlerp()
  586. attack = false
  587. anim.Parent = Hum
  588. elseif Form == "SSJB" then
  589. Form = "Kaioken"
  590. anim.Parent = nil
  591. for i = 1, 35 do
  592. swait()
  593. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
  594. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
  595. lerpz(RS, "C0", RSC0 * cf(0, 0, -0.5) * ang(rd(-45), rd(0), rd(140)), 0.3)
  596. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  597. lerpz(LS, "C0", LSC0 * cf(0, 0, -0.5) * ang(rd(-45), rd(0), rd(-140)), 0.3)
  598. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  599. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.3)
  600. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  601. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.3)
  602. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  603. end
  604. local S2 = Instance.new("Sound", HRP)
  605. S2.SoundId = "rbxassetid://0"
  606. S2.Volume = 1
  607. S2:Play()
  608. for i = 1, 15 do
  609. swait()
  610. lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.35) * ang(rd(10), rd(0), rd(0)), 0.5)
  611. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 0.5)
  612. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-5), rd(5), rd(45)), 0.5)
  613. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  614. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5), rd(-5), rd(-45)), 0.5)
  615. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  616. lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-10), rd(10)), 0.5)
  617. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  618. lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(10), rd(-10)), 0.5)
  619. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  620. end
  621. local tra = trazx:clone()
  622. tra.Parent = HRP
  623. tra.Texture = "rbxassetid://0"
  624. tra.LightEmission = 0.8
  625. tra.Color = ColorSequence.new(Color3.new(255, 255, 255))
  626. tra.Rate = 75
  627. tra.Rotation = NumberRange.new(-5, 5)
  628. tra.Lifetime = NumberRange.new(0.3)
  629. tra.Size = NumberSequence.new({
  630. NumberSequenceKeypoint.new(0, 8, 0.875),
  631. NumberSequenceKeypoint.new(1, 9, 0.875)
  632. })
  633. tra.Transparency = NumberSequence.new({
  634. NumberSequenceKeypoint.new(0, 1, 0),
  635. NumberSequenceKeypoint.new(0.0399, 0.531, 0),
  636. NumberSequenceKeypoint.new(0.394, 0.906, 0),
  637. NumberSequenceKeypoint.new(0.699, 1, 0),
  638. NumberSequenceKeypoint.new(1, 1, 0)
  639. })
  640. tra.Speed = NumberRange.new(75)
  641. tra.VelocitySpread = 360
  642. tra.VelocityInheritance = 0.5
  643. tra.ZOffset = 3
  644. tra.Acceleration = vt(0, 350, 0)
  645. local s = Instance.new("Sound", HRP)
  646. s.SoundId = "rbxassetid://0"
  647. s.Volume = 5
  648. s:Play()
  649. for i = 1, 2 do
  650. Instance.new("ChorusSoundEffect", s)
  651. end
  652. for i = 1, 23 do
  653. for i = 1, 3 do
  654. swait()
  655. lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.4) * ang(rd(12), rd(0), rd(0)), 1)
  656. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 1)
  657. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(5), rd(50)), 1)
  658. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  659. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(-50)), 1)
  660. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  661. lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-12), rd(12)), 1)
  662. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  663. lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(12), rd(-12)), 1)
  664. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  665. end
  666. for i = 1, 3 do
  667. swait()
  668. lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.35) * ang(rd(10), rd(0), rd(0)), 1)
  669. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(35), rd(0), rd(0)), 1)
  670. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(5), rd(45)), 1)
  671. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  672. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(-45)), 1)
  673. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  674. lerpz(RH, "C0", RHC0 * cf(0.35, 0.35, 0.05) * ang(rd(0), rd(-10), rd(10)), 1)
  675. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  676. lerpz(LH, "C0", LHC0 * cf(-0.35, 0.35, 0.05) * ang(rd(0), rd(10), rd(-10)), 1)
  677. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  678. end
  679. end
  680. tra.LightEmission = 0.8
  681. tra.Color = ColorSequence.new(Color3.new(255, 255, 255))
  682. tra.Rate = 100
  683. tra.Rotation = NumberRange.new(-5, 5)
  684. tra.Lifetime = NumberRange.new(0.3)
  685. tra.Size = NumberSequence.new({
  686. NumberSequenceKeypoint.new(0, 8, 0.875),
  687. NumberSequenceKeypoint.new(1, 9, 0.875)
  688. })
  689. tra.Transparency = NumberSequence.new({
  690. NumberSequenceKeypoint.new(0, 1, 0),
  691. NumberSequenceKeypoint.new(0.0399, 0.531, 0),
  692. NumberSequenceKeypoint.new(0.394, 0.906, 0),
  693. NumberSequenceKeypoint.new(0.699, 1, 0),
  694. NumberSequenceKeypoint.new(1, 1, 0)
  695. })
  696. tra.Speed = NumberRange.new(25)
  697. tra.VelocitySpread = 360
  698. tra.VelocityInheritance = 0.5
  699. tra.ZOffset = 3
  700. tra.Acceleration = vt(0, 350, 0)
  701. for i = 1, 50 do
  702. swait()
  703. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
  704. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.3)
  705. lerpz(RS, "C0", RSC0 * cf(0, 0, -0.5) * ang(rd(-25), rd(0), rd(-25)), 0.3)
  706. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  707. lerpz(LS, "C0", LSC0 * cf(0, 0, -0.5) * ang(rd(-25), rd(0), rd(25)), 0.3)
  708. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  709. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.3)
  710. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  711. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.3)
  712. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  713. end
  714. resetlerp()
  715. attack = false
  716. anim.Parent = Hum
  717. txt.Text = "A fusion between Rose and Super Saiyan Three!"
  718. wait(3)
  719. txt.Text = "???"
  720. end
  721. end
  722. local function computeDirection(vec)
  723. local lenSquared = vec.magnitude * vec.magnitude
  724. local invSqrt = 1 / math.sqrt(lenSquared)
  725. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  726. end
  727. local function SB()
  728. resetlerp()
  729. anim.Parent = nil
  730. HRP.Anchored = true
  731. local Sound = Instance.new('Sound', HRP)
  732. Sound.SoundId = 'rbxassetid://858904104'
  733. Sound.Volume = 4.5
  734. Sound:Play()
  735. local PE = Instance.new("Part", workspace)
  736. PE.Size = vt(3, 3, 3)
  737. PE.Material = "Neon"
  738. PE.BrickColor = BrickColor.new("Really red")
  739. PE.CanCollide = false
  740. PE.Anchored = true
  741. PE.Shape = "Ball"
  742. PE.CFrame = HRP.CFrame * cf(0, 120, 0)
  743. PE.Transparency = 0.1
  744. for i = 1, 50 do
  745. swait()
  746. HRP.CFrame = cf(Torso.CFrame:toWorldSpace(cf(0, 0, 0)).p, Mouse.hit.p)
  747. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  748. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  749. lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(10), rd(0), rd(180)), 0.5)
  750. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  751. lerpz(LS, "C0", LSC0 * cf(0, 0.5, 0) * ang(rd(10), rd(0), rd(0)), 0)
  752. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0)
  753. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0)
  754. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0)
  755. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0)
  756. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0)
  757. txt.Text = "DIVINE WRATH:PURIFCATION!"
  758. end
  759. for i = 1, 95 do
  760. HRP.CFrame = cf(Torso.CFrame:toWorldSpace(cf(0, 0, 0)).p, Mouse.hit.p)
  761. PE.Size = PE.Size + vt(2, 2, 2)
  762. PE.CFrame = HRP.CFrame * cf(0, 120, 0)
  763. swait()
  764. end
  765. local Hit = false
  766. PE.Touched:Connect(function(H)
  767. if Hit == false and H.Parent and H.Parent ~= Chr and H.Parent:FindFirstChild'Torso'and H.Parent:FindFirstChild'Humanoid'then
  768. Hit = true
  769. KillMortal(H.Parent)
  770. wait(.75)
  771. Hit = false
  772. end
  773. end)
  774. Sound:Stop()
  775. for i = 1, 4 do
  776. swait()
  777. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(10), rd(0)), 0.5)
  778. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  779. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.5)
  780. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  781. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.5)
  782. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  783. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.5)
  784. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  785. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.5)
  786. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  787. txt.Text = "???"
  788. end
  789. W2.C0 = cf(0, 0, 0)
  790. local Sound4 = Instance.new("Sound", PE)
  791. Sound4.Volume = 4
  792. Sound4:Play()
  793. Sound4.SoundId = "rbxassetid://870984991"
  794. PE.CFrame = cf(HRP.CFrame:toWorldSpace(cf(0, 0, 0)).p, Mouse.hit.p)
  795. PE.CFrame = PE.CFrame * cf(0, 0, -100)
  796. local t = Mouse.Hit.p
  797. local d = t - PE.Position
  798. d = computeDirection(d)
  799. local pos = PE.Position + (d * 10.0)
  800. PE.Anchored = false
  801. PE.CFrame = CFrame.new(pos, pos + d) * CFrame.Angles(math.pi/2, 0, 0)
  802. local ff = Instance.new("BodyForce")
  803. ff.force = vt(0, PE:GetMass() * 196.1, 0.0)
  804. ff.Parent = PE
  805. PE.Velocity = d * -160
  806. swait()
  807. PE.CFrame = PE.CFrame * cf(0, 0, -1)
  808. anim.Parent = Hum
  809. wait(2.25)
  810. resetlerp()
  811. HRP.Anchored = false
  812. if PE then
  813. PE:Destroy()
  814. end
  815. end
  816. local function NO(part)
  817. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  818. end
  819. local function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  820. local fp=Instance.new("Part", parent)
  821. fp.formFactor=formfactor
  822. fp.Reflectance=reflectance
  823. fp.Transparency=transparency
  824. fp.CanCollide=false
  825. fp.Locked=true
  826. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  827. fp.Name=name
  828. fp.Size=size
  829. fp.Position=Torso.Position
  830. NO(fp)
  831. fp.Material=material
  832. fp:BreakJoints()
  833. return fp
  834. end
  835. local function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  836. local fp = Instance.new("Part", parent)
  837. fp.formFactor = formfactor
  838. fp.Reflectance = reflectance
  839. fp.Transparency = transparency
  840. fp.CanCollide = false
  841. fp.Locked=true
  842. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  843. fp.Name = name
  844. fp.Size = size
  845. fp.Position = LiA.Position
  846. NO(fp)
  847. fp.Material="Neon"
  848. fp:BreakJoints()
  849. return fp
  850. end
  851. local function mesh(Mesh,part,meshtype,meshid,offset,scale)
  852. local mesh=Instance.new(Mesh)
  853. mesh.Parent=part
  854. if Mesh=="SpecialMesh" then
  855. mesh.MeshType=meshtype
  856. mesh.MeshId=meshid
  857. end
  858. mesh.Offset=offset
  859. mesh.Scale=scale
  860. return mesh
  861. end
  862. local function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  863. local prt=ppart(3,workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  864. prt.Anchored=true
  865. prt.CFrame=cframe
  866. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  867. Debris:AddItem(prt,5)
  868. coroutine.resume(coroutine.create(function(Part,Mesh)
  869. for i=0,1,delay do
  870. wait()
  871. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  872. Part.Transparency=i
  873. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  874. end
  875. Part.Parent=nil
  876. end),prt,msh)
  877. end
  878. local function CB(parent,t)
  879. local counter=0
  880. local size=1
  881. for i=0,t,1 do
  882. swait()
  883. counter=counter+1
  884. if counter%5==0 then
  885. if size==1 then
  886. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  887. elseif size==2 then
  888. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  889. elseif size==3 then
  890. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  891. end
  892. end
  893. end
  894. end
  895. function so(id,par,vol,pit)
  896. coroutine.resume(coroutine.create(function()
  897. local sou = Instance.new("Sound",par or workspace)
  898. sou.Volume=vol
  899. sou.Pitch=pit or 1
  900. sou.SoundId=id
  901. swait()
  902. sou:Play()
  903. Debris:AddItem(sou,6)
  904. end))
  905. end
  906. local function computeDirection(vec)
  907. local lenSquared = vec.magnitude * vec.magnitude
  908. local invSqrt = 1 / math.sqrt(lenSquared)
  909. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  910. end
  911. local function Blast()
  912. for i=0,1,.1 do
  913. swait()
  914. RJ.C0 = clerp(RJ.C0,RootCF*cf(0,0,0)* ang(math.rad(0),math.rad(0),math.rad(60)),.3)
  915. Torso.Neck.C0 = clerp(N.C0,necko *ang(math.rad(0),math.rad(0),math.rad(-60)),.3)
  916. RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * ang(math.rad(18), math.rad(-15), math.rad(15)), 0.3)
  917. LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * ang(math.rad(-75), math.rad(0), math.rad(-50)), 0.3)
  918. RH.C0=clerp(RH.C0,cf(1,-1,0)*ang(math.rad(-3),math.rad(65),math.rad(0)),.3)
  919. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*ang(math.rad(-25),math.rad(-110),math.rad(0))*ang(math.rad(-25),math.rad(0),math.rad(0)),.3)
  920. end
  921. so("rbxassetid://199145659",LiA,1,1)
  922. efprt=part(Enum.FormFactor.Custom,workspace,Enum.Material.Neon,0,0,"Really red","BallEffect",vt(45, 45, 45))
  923. efprt.Anchored = true
  924. efprt.Position = Vector3.new(2e5,2e5,2e5)
  925. mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
  926. CB(LiA,35)
  927. for i=0,1,.1 do
  928. swait()
  929. RJ.C0 = clerp(RJ.C0,RootCF*cf(0,0,0)* ang(math.rad(0),math.rad(0),math.rad(-60)),.3)
  930. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *ang(math.rad(0),math.rad(0),math.rad(60)),.3)
  931. RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * ang(math.rad(-18), math.rad(15), math.rad(15)), 0.3)
  932. LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * ang(math.rad(75), math.rad(0), math.rad(-65)), 0.3)
  933. RH.C0=clerp(RH.C0,cf(1,-1,0)*ang(math.rad(0),math.rad(110),math.rad(0)),.3)
  934. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*ang(math.rad(0),math.rad(-70),math.rad(0)),.3)
  935. end
  936. txt.Text = "Have a ki blast."
  937. so("rbxassetid://199145534",LiA,1,1.2)
  938. efprt:BreakJoints()
  939. local t = Mouse.Hit.p
  940. local d = t - LiA.Position
  941. d = computeDirection(d)
  942. local pos = LiA.Position + (d * 10.0)
  943. efprt.Anchored = false
  944. efprt.CFrame = CFrame.new(pos, pos + d) * CFrame.Angles(math.pi/2, 0, 0)
  945. local ff = Instance.new("BodyForce")
  946. ff.force = vt(0, efprt:GetMass() * 196.1, 0.0)
  947. ff.Parent = efprt
  948. efprt.Velocity = d * 160
  949. efprt.Touched:Connect(function(hit)
  950. if not hit:IsDescendantOf(Chr)and not hit.Parent:FindFirstChild'HasBeenHit'and hit.Parent and hit.Parent:FindFirstChild'Humanoid'and hit.Parent:FindFirstChild'Torso'then
  951. KillMortal(hit.Parent)
  952. ff:Destroy()
  953. efprt.Anchored=true
  954. efprt:Destroy()
  955. end
  956. end)
  957. Debris:AddItem(efprt,6)
  958. resetlerp()
  959. end
  960. local function Blast2()
  961. for i=0,1,.1 do
  962. swait()
  963. RJ.C0 = clerp(RJ.C0,RootCF*cf(0,0,0)* ang(math.rad(0),math.rad(0),math.rad(60)),.3)
  964. Torso.Neck.C0 = clerp(N.C0,necko *ang(math.rad(0),math.rad(0),math.rad(-60)),.3)
  965. RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * ang(math.rad(18), math.rad(-15), math.rad(15)), 0.3)
  966. LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * ang(math.rad(-75), math.rad(0), math.rad(-50)), 0.3)
  967. RH.C0=clerp(RH.C0,cf(1,-1,0)*ang(math.rad(-3),math.rad(65),math.rad(0)),.3)
  968. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*ang(math.rad(-25),math.rad(-110),math.rad(0))*ang(math.rad(-25),math.rad(0),math.rad(0)),.3)
  969. end
  970. so("rbxassetid://199145659",LiA,1,1)
  971. efprt=part(Enum.FormFactor.Custom,workspace,Enum.Material.Neon,0,0,"Really red","BallEffect",vt(15, 15, 15))
  972. efprt.Anchored = true
  973. efprt.Position = Vector3.new(2e5,2e5,2e5)
  974. mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
  975. CB(LiA,35)
  976. for i=0,1,.1 do
  977. swait()
  978. RJ.C0 = clerp(RJ.C0,RootCF*cf(0,0,0)* ang(math.rad(0),math.rad(0),math.rad(-60)),.3)
  979. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *ang(math.rad(0),math.rad(0),math.rad(60)),.3)
  980. RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * ang(math.rad(-18), math.rad(15), math.rad(15)), 0.3)
  981. LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * ang(math.rad(75), math.rad(0), math.rad(-65)), 0.3)
  982. RH.C0=clerp(RH.C0,cf(1,-1,0)*ang(math.rad(0),math.rad(110),math.rad(0)),.3)
  983. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*ang(math.rad(0),math.rad(-70),math.rad(0)),.3)
  984. end
  985. so("rbxassetid://199145534",LiA,1,1.2)
  986. efprt:BreakJoints()
  987. local t = Mouse.Hit.p
  988. local d = t - LiA.Position
  989. d = computeDirection(d)
  990. local pos = LiA.Position + (d * 10.0)
  991. efprt.Anchored = false
  992. efprt.CFrame = CFrame.new(pos, pos + d) * CFrame.Angles(math.pi/2, 0, 0)
  993. local ff = Instance.new("BodyForce")
  994. ff.force = vt(0, efprt:GetMass() * 196.1, 0.0)
  995. ff.Parent = efprt
  996. efprt.Velocity = d * 160
  997. efprt.Touched:Connect(function(hit)
  998. if not hit:IsDescendantOf(Chr)and not hit.Parent:FindFirstChild'HasBeenHit'and hit.Parent and hit.Parent:FindFirstChild'Humanoid'and hit.Parent:FindFirstChild'Torso'then
  999. KillMortal(hit.Parent)
  1000. ff:Destroy()
  1001. efprt.Anchored=true
  1002. efprt:Destroy()
  1003. end
  1004. end)
  1005. Debris:AddItem(efprt,6)
  1006. resetlerp()
  1007. end
  1008. local function Blast3()
  1009. for i=0,1,.1 do
  1010. swait()
  1011. RJ.C0 = clerp(RJ.C0,RootCF*cf(0,0,0)* ang(math.rad(0),math.rad(0),math.rad(60)),.3)
  1012. Torso.Neck.C0 = clerp(N.C0,necko *ang(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1013. RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * ang(math.rad(18), math.rad(-15), math.rad(15)), 0.3)
  1014. LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * ang(math.rad(-75), math.rad(0), math.rad(-50)), 0.3)
  1015. RH.C0=clerp(RH.C0,cf(1,-1,0)*ang(math.rad(-3),math.rad(65),math.rad(0)),.3)
  1016. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*ang(math.rad(-25),math.rad(-110),math.rad(0))*ang(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1017. end
  1018. so("rbxassetid://199145659",LiA,1,1)
  1019. efprt=part(Enum.FormFactor.Custom,workspace,Enum.Material.Neon,0,0,"Really red","BallEffect",vt(15, 15, 15))
  1020. efprt.Anchored = true
  1021. efprt.Position = Vector3.new(2e5,2e5,2e5)
  1022. mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
  1023. CB(LiA,35)
  1024. for i=0,1,.1 do
  1025. swait()
  1026. RJ.C0 = clerp(RJ.C0,RootCF*cf(0,0,0)* ang(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1027. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *ang(math.rad(0),math.rad(0),math.rad(60)),.3)
  1028. RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * ang(math.rad(-18), math.rad(15), math.rad(15)), 0.3)
  1029. LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * ang(math.rad(75), math.rad(0), math.rad(-65)), 0.3)
  1030. RH.C0=clerp(RH.C0,cf(1,-1,0)*ang(math.rad(0),math.rad(110),math.rad(0)),.3)
  1031. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*ang(math.rad(0),math.rad(-70),math.rad(0)),.3)
  1032. end
  1033. so("rbxassetid://199145534",LiA,1,1.2)
  1034. efprt:BreakJoints()
  1035. local t = Mouse.Hit.p
  1036. local d = t - LiA.Position
  1037. d = computeDirection(d)
  1038. local pos = LiA.Position + (d * 10.0)
  1039. efprt.Anchored = false
  1040. efprt.CFrame = CFrame.new(pos, pos + d) * CFrame.Angles(math.pi/2, 0, 0)
  1041. local ff = Instance.new("BodyForce")
  1042. ff.force = vt(0, efprt:GetMass() * 196.1, 0.0)
  1043. ff.Parent = efprt
  1044. efprt.Velocity = d * 160
  1045. efprt.Touched:Connect(function(hit)
  1046. if not hit:IsDescendantOf(Chr)and not hit.Parent:FindFirstChild'HasBeenHit'and hit.Parent and hit.Parent:FindFirstChild'Humanoid'and hit.Parent:FindFirstChild'Torso'then
  1047. KillMortal(hit.Parent)
  1048. ff:Destroy()
  1049. efprt.Anchored=true
  1050. efprt:Destroy()
  1051. end
  1052. end)
  1053. Debris:AddItem(efprt,6)
  1054. resetlerp()
  1055. end
  1056. Ev = UIS.InputBegan:Connect(function(Key, Gc)
  1057. if Gc then
  1058. return
  1059. end
  1060. if attack == false and Key.UserInputType == Enum.UserInputType.MouseButton1 then
  1061. attack = true
  1062. swinganim:Play()
  1063. bladeactive = true
  1064. wait(.7)
  1065. bladeactive = false
  1066. attack = false
  1067. swinganim:Stop()
  1068. elseif attack == false and Key.UserInputType == Enum.UserInputType.Keyboard then
  1069. if Key.KeyCode == Enum.KeyCode.Z and attack == false then
  1070. attack = true
  1071. SB()
  1072. wait(.75)
  1073. attack = false
  1074. elseif Key.KeyCode == Enum.KeyCode.X and attack == false then
  1075. attack = true
  1076. SSJB()
  1077. elseif Key.KeyCode == Enum.KeyCode.Q and attack == false then
  1078. attack = true
  1079. Blast()
  1080. wait(3)
  1081. txt.Text = "???"
  1082. CB(efprt, 100)
  1083. wait(.45)
  1084. attack = false
  1085. end
  1086. end
  1087. end)
  1088. spawn(function()
  1089. while wait(.25)do
  1090. for i = 1,150 do
  1091. wait()
  1092. TrainMesh.VertexColor = vt(HSLtoRGB(i*2,1,0.5).r,HSLtoRGB(i*2,1,0.5).g,HSLtoRGB(i*2,1,0.5).b)
  1093. end
  1094. wait()
  1095. local reversei = 150
  1096. for i = 1,150 do
  1097. wait()
  1098. TrainMesh.VertexColor = vt(HSLtoRGB(reversei*2,1,0.5).r,HSLtoRGB(reversei*2,1,0.5).g,HSLtoRGB(reversei*2,1,0.5).b)
  1099. reversei = reversei-1
  1100. end
  1101. end
  1102. end)
  1103. Hum.Died:Connect(function()
  1104. local a = Instance.new("Part", workspace)
  1105. a.Transparency = 1
  1106. a.Anchored = true
  1107. a.CFrame = Torso.CFrame
  1108. name.Parent = a
  1109. name.Adornee = a
  1110. local S = Instance.new('Sky', game:GetService'Lighting')
  1111. S.Name = ' 1341 63469 '
  1112. S.SkyboxBk = "rbxassetid://711351773"
  1113. S.SkyboxDn = "rbxassetid://711351773"
  1114. S.SkyboxUp = "rbxassetid://711351773"
  1115. S.SkyboxRt = "rbxassetid://711351773"
  1116. S.SkyboxLf = "rbxassetid://711351773"
  1117. S.SkyboxFt = "rbxassetid://711351773"
  1118. txt.Text = "I WILL NOT LOSE TO A FILTHY NINGEN!!!"
  1119. txt.FontSize = "Size48"
  1120. wait(1.85)
  1121. for a,a in pairs(game:GetService'Players':GetPlayers())do
  1122. if a.Character and a.Character:FindFirstChild'Head'then
  1123. a.Character:BreakJoints()
  1124. end
  1125. end
  1126. wait(2)
  1127. name:Destroy()
  1128. S:Destroy()
  1129. Ev:Disconnect()
  1130. script:Destroy()
  1131. end)
  1132. warn'Loaded!'
Add Comment
Please, Sign In to add comment