cat568

Untitled

Jun 25th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.92 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local c = Player.Character
  3. if not c or not c.Parent then
  4. c = Player.CharacterAdded:wait()
  5. end
  6. local radio = Instance.new("Part", c)
  7. radio.Name = "Radio"
  8. radio.CanCollide = false
  9. radio.Anchored = true
  10. radio.FormFactor = "Custom"
  11. radio.Size = Vector3.new(2.5, 1, 0.4)
  12. radio.CFrame = c.Torso.CFrame * CFrame.new(-3.5, 2, 0.2)
  13. radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  14. radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, -0.1)
  15. radio.Transparency = 1
  16. local sound = Instance.new("Sound", radio)
  17. sound.Name = "Music"
  18. sound.Looped = true
  19. sound.Volume = 5
  20. local weld = Instance.new("Weld", radio)
  21. weld.Part0 = c.Torso
  22. weld.Part1 = radio
  23. weld.C0 = c.Torso.CFrame:inverse()
  24. weld.C1 = radio.CFrame:inverse()
  25. radio.Anchored = false
  26. player = game:service("Players").LocalPlayer
  27. char2 = player.Character
  28. Glow1 = Color3.new(0, 0, 0)
  29. Glow2 = Color3.new(1, 0, 0)
  30. Glow3 = Color3.new(0, 1, 0)
  31. Glow4 = Color3.new(0, 0, 1)
  32. GlowParticle = Instance.new("ParticleEmitter", radio)
  33. GlowParticle.LightEmission = 1
  34. GlowParticle.Color = ColorSequence.new(Glow2, Glow1)
  35. GlowParticle.Size = NumberSequence.new(0.4)
  36. GlowParticle.Texture = "http://www.roblox.com/asset/?id=118641183"
  37. GlowParticle.Transparency = NumberSequence.new(1)
  38. GlowParticle.LockedToPart = false
  39. GlowParticle.Lifetime = NumberRange.new(0.5, 1)
  40. GlowParticle.Rate = 200
  41. GlowParticle.Speed = NumberRange.new(1.5)
  42. GlowParticle.Acceleration = Vector3.new(0, 1, 0)
  43. GlowParticle.VelocitySpread = 100
  44. GlowParticle2 = Instance.new("ParticleEmitter", radio)
  45. GlowParticle2.LightEmission = 1
  46. GlowParticle2.Color = ColorSequence.new(Glow3, Glow1)
  47. GlowParticle2.Size = NumberSequence.new(0.4)
  48. GlowParticle2.Texture = "http://www.roblox.com/asset/?id=118641183"
  49. GlowParticle2.Transparency = NumberSequence.new(1)
  50. GlowParticle2.LockedToPart = false
  51. GlowParticle2.Lifetime = NumberRange.new(0.5, 1)
  52. GlowParticle2.Rate = 200
  53. GlowParticle2.Speed = NumberRange.new(1.5)
  54. GlowParticle2.Acceleration = Vector3.new(0, 1, 0)
  55. GlowParticle2.VelocitySpread = 100
  56. GlowParticle3 = Instance.new("ParticleEmitter", radio)
  57. GlowParticle3.LightEmission = 1
  58. GlowParticle3.Color = ColorSequence.new(Glow4, Glow1)
  59. GlowParticle3.Size = NumberSequence.new(0.4)
  60. GlowParticle3.Texture = "http://www.roblox.com/asset/?id=118641183"
  61. GlowParticle3.Transparency = NumberSequence.new(1)
  62. GlowParticle3.LockedToPart = false
  63. GlowParticle3.Lifetime = NumberRange.new(0.5, 1)
  64. GlowParticle3.Rate = 200
  65. GlowParticle3.Speed = NumberRange.new(1.5)
  66. GlowParticle3.Acceleration = Vector3.new(0, 1, 0)
  67. GlowParticle3.VelocitySpread = 100
  68. wait(0)
  69. fat = Instance.new("BindableEvent", script)
  70. fat.Name = "Heartbeat"
  71. local charge = false
  72. P = game.Players.LocalPlayer
  73. char = P.Character
  74. torso = char.Torso
  75. neck = char.Torso.Neck
  76. hum = char.Humanoid
  77. hum.MaxHealth = 9.876543219876543E44
  78. wait()
  79. hum.Health = hum.MaxHealth
  80. char.Head.face.Texture = "rbxassetid://176206791"
  81. p2 = game.Players.LocalPlayer
  82. char049 = p2.Character
  83. for i, v in pairs(char049:children()) do
  84. if v:IsA("Accessory") then
  85. v:Destroy()
  86. end
  87. end
  88. local M69 = Instance.new("SpecialMesh")
  89. M69.Parent = torso
  90. M69.MeshId = "rbxassetid://456901040"
  91. M69.Scale = Vector3.new(1, 1, 1)
  92. char049.Shirt:Remove()
  93. for i, v in pairs(char049:GetChildren()) do
  94. if v:IsA("Pants") then
  95. v:Remove()
  96. end
  97. end
  98. wait()
  99. shirt = Instance.new("Shirt", char049)
  100. shirt.Name = "Shirt"
  101. pants = Instance.new("Pants", char049)
  102. pants.Name = "Pants"
  103. char049.Shirt.ShirtTemplate = "rbxassetid://"
  104. char049.Pants.PantsTemplate = "rbxassetid://"
  105. local BC = char["Body Colors"]
  106. BC.HeadColor = BrickColor.new("Fossil")
  107. BC.LeftArmColor = BrickColor.new("Fossil")
  108. BC.LeftLegColor = BrickColor.new("Fossil")
  109. BC.RightArmColor = BrickColor.new("Fossil")
  110. BC.RightLegColor = BrickColor.new("Fossil")
  111. BC.TorsoColor = BrickColor.new("Plum")
  112. Player = game:GetService("Players").LocalPlayer
  113. Character = Player.Character
  114. local Orbd = Instance.new("Part", Character)
  115. Orbd.Name = "Orbd"
  116. Orbd.Shape = Enum.PartType.Ball
  117. Orbd.CanCollide = false
  118. Orbd.BrickColor = BrickColor.new("Really black")
  119. Orbd.Transparency = 1
  120. Orbd.Material = "Neon"
  121. Orbd.Size = Vector3.new(0.2, 0.2, 0.2)
  122. Orbd.TopSurface = Enum.SurfaceType.Smooth
  123. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  124. local Weld = Instance.new("Weld", Orbd)
  125. Weld.Part0 = Character.Head
  126. Weld.Part1 = Orbd
  127. Weld.C1 = CFrame.new(-0.01, 0.2, 0.51)
  128. local Mask = Instance.new("Part", Character)
  129. Mask.Name = "Mask"
  130. Mask.CanCollide = false
  131. Mask.BrickColor = BrickColor.new("Sunrise")
  132. Mask.Transparency = 1
  133. Mask.Material = "Neon"
  134. Mask.Size = Vector3.new(0.1, 0.1, 0.1)
  135. Mask.TopSurface = Enum.SurfaceType.Smooth
  136. Mask.BottomSurface = Enum.SurfaceType.Smooth
  137. local Weld = Instance.new("Weld", Mask)
  138. Weld.Part0 = Character.Head
  139. Weld.Part1 = Mask
  140. Weld.C1 = CFrame.new(0, 0.03, 0.5)
  141. local M1 = Instance.new("SpecialMesh")
  142. M1.Parent = Mask
  143. M1.MeshId = "http://www.roblox.com/asset/?id=430736398"
  144. M1.Scale = Vector3.new(0.3, 0.03, 0.099)
  145. local Hood = Instance.new("Part", Character)
  146. Hood.Name = "Hair"
  147. Hood.CanCollide = false
  148. Hood.BrickColor = BrickColor.new("Dark indigo")
  149. Hood.Transparency = 1
  150. Hood.Material = "Neon"
  151. Hood.Size = Vector3.new(0.1, 0.1, 0.1)
  152. Hood.TopSurface = Enum.SurfaceType.Smooth
  153. Hood.BottomSurface = Enum.SurfaceType.Smooth
  154. local Weld = Instance.new("Weld", Hood)
  155. Weld.Part0 = Character.Head
  156. Weld.Part1 = Hood
  157. Weld.C1 = CFrame.new(0, -0.5, 0)
  158. local M2 = Instance.new("SpecialMesh")
  159. M2.Parent = Hood
  160. M2.MeshId = "http://www.roblox.com/asset/?id=362013001"
  161. M2.Scale = Vector3.new(1, 1.06, 1.1)
  162. local skin = Instance.new("Part", Character)
  163. skin.Name = "skin"
  164. skin.CanCollide = false
  165. skin.BrickColor = BrickColor.new("Fossil")
  166. skin.Transparency = 1
  167. skin.Material = "SmoothPlastic"
  168. skin.Size = Vector3.new(0.1, 0.1, 0.1)
  169. skin.TopSurface = Enum.SurfaceType.Smooth
  170. skin.BottomSurface = Enum.SurfaceType.Smooth
  171. local Weld = Instance.new("Weld", skin)
  172. Weld.Part0 = Character.Torso
  173. Weld.Part1 = skin
  174. Weld.C1 = CFrame.new(0, -0.83, 0.5)
  175. local M3 = Instance.new("SpecialMesh")
  176. M3.Parent = skin
  177. M3.MeshId = "http://www.roblox.com/asset/?id=518429841"
  178. M3.Scale = Vector3.new(0.0054, 0.0014, 1.0E-4)
  179. local hair2 = Instance.new("Part", Character)
  180. hair2.Name = "Hair2"
  181. hair2.CanCollide = false
  182. hair2.BrickColor = BrickColor.new("Dark indigo")
  183. hair2.Transparency = 1
  184. hair2.Material = "Neon"
  185. hair2.Size = Vector3.new(0.1, 0.1, 0.1)
  186. hair2.TopSurface = Enum.SurfaceType.Smooth
  187. hair2.BottomSurface = Enum.SurfaceType.Smooth
  188. local Weld = Instance.new("Weld", hair2)
  189. Weld.Part0 = Character.Head
  190. Weld.Part1 = hair2
  191. Weld.C1 = CFrame.new(0, 0.65, -0.05)
  192. local M2 = Instance.new("SpecialMesh")
  193. M2.Parent = hair2
  194. M2.MeshId = "http://www.roblox.com/asset/?id=164382853"
  195. M2.Scale = Vector3.new(1.1, 1.1, 1)
  196. local hat2 = Instance.new("Part", Character)
  197. hat2.Name = "hat2"
  198. hat2.CanCollide = false
  199. hat2.BrickColor = BrickColor.new("Plum")
  200. hat2.Transparency = 1
  201. hat2.Material = "SmoothPlastic"
  202. hat2.Size = Vector3.new(0.1, 0.1, 0.1)
  203. hat2.TopSurface = Enum.SurfaceType.Smooth
  204. hat2.BottomSurface = Enum.SurfaceType.Smooth
  205. local Weld = Instance.new("Weld", hat2)
  206. Weld.Part0 = Character.Head
  207. Weld.Part1 = hat2
  208. Weld.C1 = CFrame.new(0, -1, 0)
  209. local M4 = Instance.new("SpecialMesh")
  210. M4.Parent = hat2
  211. M4.MeshId = "http://www.roblox.com/asset/?id=110852069"
  212. M4.Scale = Vector3.new(0.8, 1, 1)
  213. local hat3 = Instance.new("Part", Character)
  214. hat3.Name = "SmoothPlastic"
  215. hat3.CanCollide = false
  216. hat3.BrickColor = BrickColor.new("Plum")
  217. hat3.Transparency = 1
  218. hat3.Material = "Neon"
  219. hat3.Size = Vector3.new(0.1, 0.1, 0.1)
  220. hat3.TopSurface = Enum.SurfaceType.Smooth
  221. hat3.BottomSurface = Enum.SurfaceType.Smooth
  222. local Weld = Instance.new("Weld", hat3)
  223. Weld.Part0 = Character.Head
  224. Weld.Part1 = hat3
  225. Weld.C1 = CFrame.new(0, -0.8, 0)
  226. local M5 = Instance.new("SpecialMesh")
  227. M5.Parent = hat3
  228. M5.MeshId = "http://www.roblox.com/asset/?id=104780903"
  229. M5.Scale = Vector3.new(1.25, 1.1, 1.25)
  230. local tail2 = Instance.new("Part", Character)
  231. tail2.Name = "tail2"
  232. tail2.CanCollide = false
  233. tail2.BrickColor = BrickColor.new("White")
  234. tail2.Transparency = 1
  235. tail2.Material = "SmoothPlastic"
  236. tail2.Size = Vector3.new(0.1, 0.1, 0.1)
  237. tail2.TopSurface = Enum.SurfaceType.Smooth
  238. tail2.BottomSurface = Enum.SurfaceType.Smooth
  239. local Weld = Instance.new("Weld", tail2)
  240. Weld.Part0 = Character.Torso
  241. Weld.Part1 = tail2
  242. Weld.C1 = CFrame.new(0, 0.63, -0.6)
  243. local M7 = Instance.new("SpecialMesh")
  244. M7.Parent = tail2
  245. M7.MeshId = "http://www.roblox.com/asset/?id=518429841"
  246. M7.Scale = Vector3.new(0.0028, 0.0028, 0.0028)
  247. local tail3 = Instance.new("Part", Character)
  248. tail3.Name = "tail3"
  249. tail3.CanCollide = false
  250. tail3.BrickColor = BrickColor.new("Plum")
  251. tail3.Transparency = 1
  252. tail3.Material = "Neon"
  253. tail3.Size = Vector3.new(0.1, 0.1, 0.1)
  254. tail3.TopSurface = Enum.SurfaceType.Smooth
  255. tail3.BottomSurface = Enum.SurfaceType.Smooth
  256. local Weld = Instance.new("Weld", tail3)
  257. Weld.Part0 = Character.Torso
  258. Weld.Part1 = tail3
  259. Weld.C1 = CFrame.new(-0.2, -0.2, -1.8)
  260. local M2 = Instance.new("SpecialMesh")
  261. M2.Parent = tail3
  262. M2.MeshId = "http://www.roblox.com/asset/?id=170939831"
  263. M2.Scale = Vector3.new(1, 1, 1)
  264. local Player = game.Players.localPlayer
  265. local Character = Player.Character
  266. local red = 255
  267. local green = 255
  268. local blue = 255
  269. local Humanoid = Character.Humanoid
  270. local mouse = Player:GetMouse()
  271. local m = Instance.new("Model", Character)
  272. m.Name = "WeaponModel"
  273. local LeftArm = Character["Left Arm"]
  274. local RightArm = Character["Right Arm"]
  275. local LeftLeg = Character["Left Leg"]
  276. local RightLeg = Character["Right Leg"]
  277. local Head = Character.Head
  278. local Torso = Character.Torso
  279. local cam = game.Workspace.CurrentCamera
  280. local RootPart = Character.HumanoidRootPart
  281. local RootJoint = RootPart.RootJoint
  282. local equipped = false
  283. local attack = false
  284. local Anim = "Idle"
  285. local idle = 0
  286. local attacktype = 1
  287. local Torsovelocity = RootPart.Velocity.y * Vector3.new(1, 0, 1).magnitude
  288. local velocity = RootPart.Velocity.y
  289. local sine = 0
  290. local change = 1
  291. local grabbed = false
  292. local cn = CFrame.new
  293. local mr = math.rad
  294. local angles = CFrame.Angles
  295. local ud = UDim2.new
  296. local c3 = Color3.new
  297. local lim = 0
  298. local st = 0
  299. local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  300. local attacktype = 1
  301. local ZTarget, RocketTarget
  302. local euler = CFrame.fromEulerAnglesXYZ
  303. function clerp(a, b, t)
  304. local qa = {
  305. QuaternionFromCFrame(a)
  306. }
  307. local qb = {
  308. QuaternionFromCFrame(b)
  309. }
  310. local ax, ay, az = a.x, a.y, a.z
  311. local bx, by, bz = b.x, b.y, b.z
  312. local _t = 1 - t
  313. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  314. end
  315. function QuaternionFromCFrame(cf)
  316. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  317. local trace = m00 + m11 + m22
  318. if trace > 0 then
  319. local s = math.sqrt(1 + trace)
  320. local recip = 0.5 / s
  321. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  322. else
  323. local i = 0
  324. if m00 < m11 then
  325. i = 1
  326. end
  327. if m22 > (i == 0 and m00 or m11) then
  328. i = 2
  329. end
  330. if i == 0 then
  331. local s = math.sqrt(m00 - m11 - m22 + 1)
  332. local recip = 0.5 / s
  333. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  334. elseif i == 1 then
  335. local s = math.sqrt(m11 - m22 - m00 + 1)
  336. local recip = 0.5 / s
  337. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  338. elseif i == 2 then
  339. local s = math.sqrt(m22 - m00 - m11 + 1)
  340. local recip = 0.5 / s
  341. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  342. end
  343. end
  344. end
  345. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  346. local xs, ys, zs = x + x, y + y, z + z
  347. local wx, wy, wz = w * xs, w * ys, w * zs
  348. local xx = x * xs
  349. local xy = x * ys
  350. local xz = x * zs
  351. local yy = y * ys
  352. local yz = y * zs
  353. local zz = z * zs
  354. 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))
  355. end
  356. function QuaternionSlerp(a, b, t)
  357. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  358. local startInterp, finishInterp
  359. if cosTheta >= 1.0E-4 then
  360. if 1 - cosTheta > 1.0E-4 then
  361. local theta = math.acos(cosTheta)
  362. local invSinTheta = 1 / math.sin(theta)
  363. startInterp = math.sin((1 - t) * theta) * invSinTheta
  364. finishInterp = math.sin(t * theta) * invSinTheta
  365. else
  366. startInterp = 1 - t
  367. finishInterp = t
  368. end
  369. elseif 1 + cosTheta > 1.0E-4 then
  370. local theta = math.acos(-cosTheta)
  371. local invSinTheta = 1 / math.sin(theta)
  372. startInterp = math.sin((t - 1) * theta) * invSinTheta
  373. finishInterp = math.sin(t * theta) * invSinTheta
  374. else
  375. startInterp = t - 1
  376. finishInterp = t
  377. end
  378. 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
  379. end
  380. function rayCast(Position, Direction, Range, Ignore)
  381. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  382. end
  383. local v = game.Players.localPlayer
  384. local torso = v.Character.Torso
  385. wait(0)
  386. local p = Instance.new("Part", v.Character)
  387. p.Name = "kit"
  388. p.BrickColor = BrickColor.new("Plum")
  389. p.Anchored = true
  390. p.Transparency = 1
  391. p.Material = "Plastic"
  392. p.CanCollide = false
  393. p.TopSurface = 0
  394. p.BottomSurface = 0
  395. p.Size = Vector3.new(0.2, 0.2, 0.2)
  396. p.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  397. local msh = Instance.new("SpecialMesh", p)
  398. msh.Scale = Vector3.new(0.55, 0.55, 0.55)
  399. msh.MeshId = "http://www.roblox.com/asset/?id=430736398"
  400. msh.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  401. local pn = Instance.new("Part", v.Character.kit)
  402. pn.Name = "D"
  403. pn.BrickColor = BrickColor.new("Plum")
  404. pn.Anchored = true
  405. pn.Transparency = 1
  406. pn.Material = "Plastic"
  407. pn.CanCollide = false
  408. pn.TopSurface = 0
  409. pn.BottomSurface = 0
  410. pn.Size = Vector3.new(0.2, 0.2, 0.2)
  411. pn.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  412. local mshn = Instance.new("SpecialMesh", pn)
  413. mshn.Scale = Vector3.new(0.55, 0.55, 0.55)
  414. mshn.MeshId = "http://www.roblox.com/asset/?id=430736398"
  415. mshn.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  416. local pn3 = Instance.new("Part", v.Character.kit)
  417. pn3.Name = "B"
  418. pn3.BrickColor = BrickColor.new("Fossil")
  419. pn3.Anchored = true
  420. pn3.Transparency = 1
  421. pn3.Material = "Plastic"
  422. pn3.CanCollide = false
  423. pn3.TopSurface = 0
  424. pn3.BottomSurface = 0
  425. pn3.Size = Vector3.new(0.2, 0.2, 0.2)
  426. pn3.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  427. local mshn3 = Instance.new("SpecialMesh", pn3)
  428. mshn3.Scale = Vector3.new(0.0054, 0.0054, 0.0054)
  429. mshn3.MeshId = "http://www.roblox.com/asset/?id=518429841"
  430. mshn3.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  431. local pn4 = Instance.new("Part", v.Character.kit)
  432. pn4.Name = "B"
  433. pn4.BrickColor = BrickColor.new("Fossil")
  434. pn4.Anchored = true
  435. pn4.Transparency = 1
  436. pn4.Material = "Plastic"
  437. pn4.CanCollide = false
  438. pn4.TopSurface = 0
  439. pn4.BottomSurface = 0
  440. pn4.Size = Vector3.new(0.2, 0.2, 0.2)
  441. pn4.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  442. local mshn4 = Instance.new("SpecialMesh", pn4)
  443. mshn4.Scale = Vector3.new(0.0054, 0.0054, 0.0054)
  444. mshn4.MeshId = "http://www.roblox.com/asset/?id=518429841"
  445. mshn4.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  446. local pn5 = Instance.new("Part", v.Character.kit)
  447. pn5.Name = "tail"
  448. pn5.Anchored = true
  449. pn5.Transparency = 1
  450. pn5.BrickColor = BrickColor.new("Plum")
  451. pn5.Material = "Plastic"
  452. pn5.CanCollide = false
  453. pn5.TopSurface = 0
  454. pn5.BottomSurface = 0
  455. pn5.Size = Vector3.new(0.2, 0.2, 0.2)
  456. pn5.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  457. local mshn5 = Instance.new("SpecialMesh", pn5)
  458. mshn5.Scale = Vector3.new(2, 2, 2)
  459. mshn5.MeshId = "http://www.roblox.com/asset/?id=188635159"
  460. mshn5.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  461. local pn6 = Instance.new("Part", v.Character.kit)
  462. pn6.Name = "B-Hair"
  463. pn6.Anchored = true
  464. pn6.Transparency = 1
  465. pn6.BrickColor = BrickColor.new("Dark indigo")
  466. pn6.Material = "Plastic"
  467. pn6.CanCollide = false
  468. pn6.TopSurface = 0
  469. pn6.BottomSurface = 0
  470. pn6.Size = Vector3.new(0.2, 0.2, 0.2)
  471. pn6.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  472. local mshn6 = Instance.new("SpecialMesh", pn6)
  473. mshn6.Scale = Vector3.new(0.015, 0.03, 0.001)
  474. mshn6.MeshId = "http://www.roblox.com/asset/?id=521338357"
  475. local pn7 = Instance.new("Part", v.Character.kit)
  476. pn7.Name = "tail"
  477. pn7.Anchored = true
  478. pn7.Transparency = 1
  479. pn7.BrickColor = BrickColor.new("Plum")
  480. pn7.Material = "Plastic"
  481. pn7.CanCollide = false
  482. pn7.TopSurface = 0
  483. pn7.BottomSurface = 0
  484. pn7.Size = Vector3.new(0.2, 0.2, 0.2)
  485. pn7.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  486. local mshn7 = Instance.new("SpecialMesh", pn7)
  487. mshn7.Scale = Vector3.new(2, 2, 2)
  488. mshn7.MeshId = "http://www.roblox.com/asset/?id=188635159"
  489. mshn7.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  490. local pn8 = Instance.new("Part", v.Character.kit)
  491. pn8.Name = "tail"
  492. pn8.Anchored = true
  493. pn8.Transparency = 1
  494. pn8.BrickColor = BrickColor.new("Plum")
  495. pn8.Material = "Plastic"
  496. pn8.CanCollide = false
  497. pn8.TopSurface = 0
  498. pn8.BottomSurface = 0
  499. pn8.Size = Vector3.new(0.2, 0.2, 0.2)
  500. pn8.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  501. local mshn8 = Instance.new("SpecialMesh", pn8)
  502. mshn8.Scale = Vector3.new(2, 2, 2)
  503. mshn8.MeshId = "http://www.roblox.com/asset/?id=188635159"
  504. mshn8.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  505. local pn9 = Instance.new("Part", v.Character.kit)
  506. pn9.Name = "tail"
  507. pn9.Anchored = true
  508. pn9.Transparency = 1
  509. pn9.BrickColor = BrickColor.new("Plum")
  510. pn9.Material = "Plastic"
  511. pn9.CanCollide = false
  512. pn9.TopSurface = 0
  513. pn9.BottomSurface = 0
  514. pn9.Size = Vector3.new(0.2, 0.2, 0.2)
  515. pn9.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  516. local mshn9 = Instance.new("SpecialMesh", pn9)
  517. mshn9.Scale = Vector3.new(2, 2, 2)
  518. mshn9.MeshId = "http://www.roblox.com/asset/?id=188635159"
  519. mshn9.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  520. local pn0 = Instance.new("Part", v.Character.kit)
  521. pn0.Name = "ears"
  522. pn0.Anchored = true
  523. pn0.Transparency = 1
  524. pn0.BrickColor = BrickColor.new("Plum")
  525. pn0.Material = "Plastic"
  526. pn0.CanCollide = false
  527. pn0.TopSurface = 0
  528. pn0.BottomSurface = 0
  529. pn0.Size = Vector3.new(0.2, 0.2, 0.2)
  530. pn0.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  531. local mshn0 = Instance.new("SpecialMesh", pn0)
  532. mshn0.Scale = Vector3.new(0.5, 0.5, 0.5)
  533. mshn0.MeshId = "http://www.roblox.com/asset/?id=361948302"
  534. mshn0.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  535. p.Anchored = false
  536. local motor1 = Instance.new("Weld", torso)
  537. motor1.Part0 = p
  538. motor1.Part1 = torso
  539. motor1.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  540. motor1.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  541. pn.Anchored = false
  542. local motor2 = Instance.new("Weld", torso)
  543. motor2.Part0 = pn
  544. motor2.Part1 = torso
  545. motor2.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  546. motor2.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  547. pn3.Anchored = false
  548. local motor3 = Instance.new("Weld", torso)
  549. motor3.Part0 = pn3
  550. motor3.Part1 = torso
  551. motor3.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  552. motor3.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  553. pn4.Anchored = false
  554. local motor4 = Instance.new("Weld", torso)
  555. motor4.Part0 = pn4
  556. motor4.Part1 = torso
  557. motor4.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  558. motor4.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  559. pn5.Anchored = false
  560. local motor5 = Instance.new("Weld", pn5)
  561. motor5.Part0 = pn5
  562. motor5.Part1 = torso
  563. motor5.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  564. motor5.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  565. pn6.Anchored = false
  566. local motor6 = Instance.new("Weld", pn6)
  567. motor6.Part0 = pn6
  568. motor6.Part1 = Head
  569. motor6.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  570. motor6.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  571. pn7.Anchored = false
  572. local motor7 = Instance.new("Weld", pn7)
  573. motor7.Part0 = pn7
  574. motor7.Part1 = torso
  575. motor7.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  576. motor7.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  577. pn8.Anchored = false
  578. local motor8 = Instance.new("Weld", pn8)
  579. motor8.Part0 = pn8
  580. motor8.Part1 = torso
  581. motor8.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  582. motor8.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  583. pn9.Anchored = false
  584. local motor9 = Instance.new("Weld", pn9)
  585. motor9.Part0 = pn9
  586. motor9.Part1 = torso
  587. motor9.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  588. motor9.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  589. pn0.Anchored = false
  590. local motor0 = Instance.new("Weld", pn0)
  591. motor0.Part0 = pn0
  592. motor0.Part1 = v.Character.Head
  593. motor0.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  594. game:GetService("RunService").Stepped:connect(function()
  595. Torsovelocity = RootPart.Velocity.y * Vector3.new(1, 0, 1).magnitude
  596. velocity = RootPart.Velocity.y
  597. sine = sine + change
  598. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  599. if equipped == true or equipped == false then
  600. if 1 < RootPart.Velocity.y and hit == nil then
  601. Anim = "Jump"
  602. if attack == false then
  603. motor1.C0 = clerp(motor1.C0, CFrame.new(0.45, -1.4, 0.85) * angles(math.rad(2 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  604. motor2.C0 = clerp(motor2.C0, CFrame.new(-0.45, -1.4, 0.85) * angles(math.rad(2 + 0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  605. motor3.C0 = clerp(motor3.C0, CFrame.new(0.4, -1.45, 0.75) * angles(math.rad(2 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  606. motor4.C0 = clerp(motor3.C0, CFrame.new(-7.6, -1.45, 0.73) * angles(math.rad(2 + 0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  607. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  608. motor6.C0 = clerp(motor6.C0, CFrame.new(-0.28, 0.27, 1.38) * angles(math.rad(-26.3 + -1 * math.cos(sine / 20)), math.rad(10 + 0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  609. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  610. motor8.C0 = clerp(motor8.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(120 + 0 * math.cos(sine / -30)), math.rad(110 + 0 * math.cos(sine / 20)), math.rad(115 + 0 * math.cos(sine / 10))), 0.1)
  611. motor9.C0 = clerp(motor9.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(120 + 0 * math.cos(sine / -30)), math.rad(110 + 0 * math.cos(sine / 20)), math.rad(115 + 0 * math.cos(sine / 10))), 0.1)
  612. end
  613. elseif RootPart.Velocity.y < -1 and hit == nil then
  614. Anim = "Fall"
  615. if attack == false then
  616. motor1.C0 = clerp(motor1.C0, CFrame.new(0.45, -1.4, 0.85) * angles(math.rad(-3 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  617. motor2.C0 = clerp(motor2.C0, CFrame.new(-0.45, -1.4, 0.85) * angles(math.rad(-3 + 0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  618. motor3.C0 = clerp(motor3.C0, CFrame.new(0.4, -1.45, 0.75) * angles(math.rad(-3 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  619. motor4.C0 = clerp(motor3.C0, CFrame.new(-7.6, -1.45, 0.73) * angles(math.rad(-3 + 0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  620. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  621. motor6.C0 = clerp(motor6.C0, CFrame.new(-0.28, 0.27, 1.38) * angles(math.rad(-26.3 + -1 * math.cos(sine / 20)), math.rad(10 + 0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  622. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  623. motor8.C0 = clerp(motor8.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(120 + 0 * math.cos(sine / -30)), math.rad(180 + 0 * math.cos(sine / 20)), math.rad(115 + 0 * math.cos(sine / 10))), 0.1)
  624. motor9.C0 = clerp(motor9.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(120 + 0 * math.cos(sine / -30)), math.rad(180 + 0 * math.cos(sine / 20)), math.rad(115 + 0 * math.cos(sine / 10))), 0.1)
  625. end
  626. elseif (Torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and hit ~= nil then
  627. Anim = "Idle"
  628. if attack == false then
  629. change = 1
  630. motor1.C0 = clerp(motor1.C0, CFrame.new(0.45, -1.4, 0.85) * angles(math.rad(0 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  631. motor2.C0 = clerp(motor2.C0, CFrame.new(-0.45, -1.4, 0.85) * angles(math.rad(0 + 0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  632. motor3.C0 = clerp(motor3.C0, CFrame.new(0.4, -1.45, 0.75) * angles(math.rad(0 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  633. motor4.C0 = clerp(motor3.C0, CFrame.new(-7.6, -1.45, 0.73) * angles(math.rad(0 + 0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  634. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 60)), math.rad(0 + 5 * math.cos(sine / 65)), math.rad(10 + 0 * math.cos(sine / 25))), 0.1)
  635. motor6.C0 = clerp(motor6.C0, CFrame.new(-0.28, 0.27, 1.38) * angles(math.rad(-26.3 + -1 * math.cos(sine / 20)), math.rad(10 + 0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  636. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 70)), math.rad(0 + 5 * math.cos(sine / 35)), math.rad(-45 + 0 * math.cos(sine / 25))), 0.1)
  637. motor8.C0 = clerp(motor8.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-10 + 5 * math.cos(sine / 55)), math.rad(0 + 5 * math.cos(sine / 55)), math.rad(-150 + 0 * math.cos(sine / 25))), 0.1)
  638. motor9.C0 = clerp(motor9.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-20 + 5 * math.cos(sine / 65)), math.rad(0 + 5 * math.cos(sine / 60)), math.rad(-100 + 0 * math.cos(sine / 25))), 0.1)
  639. end
  640. elseif (Torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 2 and hit ~= nil then
  641. Anim = "Walk"
  642. if attack == false then
  643. motor1.C0 = clerp(motor1.C0, CFrame.new(0.45, -1.4, 0.85) * angles(math.rad(2 + 2 * math.cos(sine / 5)), math.rad(0 + -1 * math.cos(sine / 5)), math.rad(0 + 1 * math.cos(sine / 5))), 0.1)
  644. motor2.C0 = clerp(motor2.C0, CFrame.new(-0.45, -1.4, 0.85) * angles(math.rad(2 + -2 * math.cos(sine / 5)), math.rad(0 + -1 * math.cos(sine / 5)), math.rad(0 + 1 * math.cos(sine / 5))), 0.1)
  645. motor3.C0 = clerp(motor3.C0, CFrame.new(0.4, -1.45, 0.75) * angles(math.rad(0 + 0 * math.cos(sine / 5)), math.rad(0 + 0 * math.cos(sine / 5)), math.rad(0 + 0 * math.cos(sine / 5))), 0.1)
  646. motor4.C0 = clerp(motor3.C0, CFrame.new(-7.6, -1.45, 0.73) * angles(math.rad(0 + 0 * math.cos(sine / 5)), math.rad(0 + 0 * math.cos(sine / 5)), math.rad(0 + 0 * math.cos(sine / 5))), 0.1)
  647. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 30)), math.rad(45 + 10 * math.cos(sine / 20)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  648. motor6.C0 = clerp(motor6.C0, CFrame.new(-0.28, 0.27, 1.38) * angles(math.rad(-26.3 + -1 * math.cos(sine / 20)), math.rad(10 + 0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  649. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 30)), math.rad(45 + 10 * math.cos(sine / 20)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  650. motor8.C0 = clerp(motor8.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(120 + 10 * math.cos(sine / -30)), math.rad(135 + -10 * math.cos(sine / 20)), math.rad(115 + 0 * math.cos(sine / 10))), 0.1)
  651. motor9.C0 = clerp(motor9.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(120 + 10 * math.cos(sine / -30)), math.rad(135 + -10 * math.cos(sine / 20)), math.rad(115 + 0 * math.cos(sine / 10))), 0.1)
  652. end
  653. end
  654. end
  655. end)
  656. newface = Instance.new("Decal", Head)
  657. newface.Texture = "rbxassetid://186681690"
  658. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  659. secondcolor = "Really black"
  660. wait(0.016666666666666666)
  661. Effects = {}
  662. local Player = game.Players.localPlayer
  663. local Character = Player.Character
  664. local Humanoid = Character.Humanoid
  665. local mouse = Player:GetMouse()
  666. local LeftArm = Character["Left Arm"]
  667. local RightArm = Character["Right Arm"]
  668. local LeftLeg = Character["Left Leg"]
  669. local RightLeg = Character["Right Leg"]
  670. local Head = Character.Head
  671. local Torso = Character.Torso
  672. local cam = game.Workspace.CurrentCamera
  673. local RootPart = Character.HumanoidRootPart
  674. local RootJoint = RootPart.RootJoint
  675. local equipped = true
  676. local attack = false
  677. local Anim = "Idle"
  678. local idle = 0
  679. local attacktype = 1
  680. local Torsovelocity = RootPart.Velocity.y * Vector3.new(1, 0, 1).magnitude
  681. local velocity = RootPart.Velocity.y
  682. local sine = 0
  683. local change = 1
  684. local grabbed = false
  685. local cn = CFrame.new
  686. local mr = math.rad
  687. local angles = CFrame.Angles
  688. local ud = UDim2.new
  689. local c3 = Color3.new
  690. local NeckCF = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  691. Humanoid.Animator:Destroy()
  692. Character.Animate:Destroy()
  693. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  694. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  695. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  696. RSH, LSH = nil, nil
  697. RW = Instance.new("Weld")
  698. LW = Instance.new("Weld")
  699. RH = Torso["Right Hip"]
  700. LH = Torso["Left Hip"]
  701. RSH = Torso["Right Shoulder"]
  702. LSH = Torso["Left Shoulder"]
  703. RSH.Parent = nil
  704. LSH.Parent = nil
  705. RW.Name = "RW"
  706. RW.Part0 = Torso
  707. RW.C0 = cn(1.5, 0.5, 0)
  708. RW.C1 = cn(0, 0.5, 0)
  709. RW.Part1 = RightArm
  710. RW.Parent = Torso
  711. LW.Name = "LW"
  712. LW.Part0 = Torso
  713. LW.C0 = cn(-1.5, 0.5, 0)
  714. LW.C1 = cn(0, 0.5, 0)
  715. LW.Part1 = LeftArm
  716. LW.Parent = Torso
  717. function clerp(a, b, t)
  718. local qa = {
  719. QuaternionFromCFrame(a)
  720. }
  721. local qb = {
  722. QuaternionFromCFrame(b)
  723. }
  724. local ax, ay, az = a.x, a.y, a.z
  725. local bx, by, bz = b.x, b.y, b.z
  726. local _t = 1 - t
  727. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  728. end
  729. function QuaternionFromCFrame(cf)
  730. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  731. local trace = m00 + m11 + m22
  732. if trace > 0 then
  733. local s = math.sqrt(1 + trace)
  734. local recip = 0.5 / s
  735. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  736. else
  737. local i = 0
  738. if m00 < m11 then
  739. i = 1
  740. end
  741. if m22 > (i == 0 and m00 or m11) then
  742. i = 2
  743. end
  744. if i == 0 then
  745. local s = math.sqrt(m00 - m11 - m22 + 1)
  746. local recip = 0.5 / s
  747. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  748. elseif i == 1 then
  749. local s = math.sqrt(m11 - m22 - m00 + 1)
  750. local recip = 0.5 / s
  751. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  752. elseif i == 2 then
  753. local s = math.sqrt(m22 - m00 - m11 + 1)
  754. local recip = 0.5 / s
  755. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  756. end
  757. end
  758. end
  759. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  760. local xs, ys, zs = x + x, y + y, z + z
  761. local wx, wy, wz = w * xs, w * ys, w * zs
  762. local xx = x * xs
  763. local xy = x * ys
  764. local xz = x * zs
  765. local yy = y * ys
  766. local yz = y * zs
  767. local zz = z * zs
  768. 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))
  769. end
  770. function QuaternionSlerp(a, b, t)
  771. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  772. local startInterp, finishInterp
  773. if cosTheta >= 1.0E-4 then
  774. if 1 - cosTheta > 1.0E-4 then
  775. local theta = math.acos(cosTheta)
  776. local invSinTheta = 1 / math.sin(theta)
  777. startInterp = math.sin((1 - t) * theta) * invSinTheta
  778. finishInterp = math.sin(t * theta) * invSinTheta
  779. else
  780. startInterp = 1 - t
  781. finishInterp = t
  782. end
  783. elseif 1 + cosTheta > 1.0E-4 then
  784. local theta = math.acos(-cosTheta)
  785. local invSinTheta = 1 / math.sin(theta)
  786. startInterp = math.sin((t - 1) * theta) * invSinTheta
  787. finishInterp = math.sin(t * theta) * invSinTheta
  788. else
  789. startInterp = t - 1
  790. finishInterp = t
  791. end
  792. 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
  793. end
  794. function swait(num)
  795. if num == 0 or num == nil then
  796. game:service("RunService").RenderStepped:wait(0)
  797. else
  798. for i = 0, num do
  799. game:service("RunService").RenderStepped:wait(0)
  800. end
  801. end
  802. end
  803. local RbxUtility = LoadLibrary("RbxUtility")
  804. local Create = RbxUtility.Create
  805. function RemoveOutlines(part)
  806. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  807. end
  808. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  809. local Part = Create("Part")({
  810. formFactor = FormFactor,
  811. Parent = Parent,
  812. Reflectance = Reflectance,
  813. Transparency = Transparency,
  814. CanCollide = false,
  815. Locked = true,
  816. BrickColor = BrickColor.new(tostring(BColor)),
  817. Name = Name,
  818. Size = Size,
  819. Material = Material
  820. })
  821. RemoveOutlines(Part)
  822. return Part
  823. end
  824. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  825. local Msh = Create(Mesh)({
  826. Parent = Part,
  827. Offset = OffSet,
  828. Scale = Scale
  829. })
  830. if Mesh == "SpecialMesh" then
  831. Msh.MeshType = MeshType
  832. Msh.MeshId = MeshId
  833. end
  834. return Msh
  835. end
  836. function CreateWeld(Parent, Part0, Part1, C0, C1)
  837. local Weld = Create("Weld")({
  838. Parent = Parent,
  839. Part0 = Part0,
  840. Part1 = Part1,
  841. C0 = C0,
  842. C1 = C1
  843. })
  844. return Weld
  845. end
  846. function rayCast(Position, Direction, Range, Ignore)
  847. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  848. end
  849. function CreateSound(id, par, vol, pit)
  850. coroutine.resume(coroutine.create(function()
  851. local sou = Instance.new("Sound", par or workspace)
  852. sou.Volume = vol
  853. sou.Pitch = pit or 1
  854. sou.SoundId = id
  855. wait()
  856. sou:play()
  857. game:GetService("Debris"):AddItem(sou, 6)
  858. end))
  859. end
  860. local function getclosest(obj, distance)
  861. local last, lastx = distance + 1, nil
  862. for i, v in pairs(workspace:GetChildren()) do
  863. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  864. local t = v.Torso
  865. local dist = (t.Position - obj.Position).magnitude
  866. if distance >= dist and last > dist then
  867. last = dist
  868. lastx = v
  869. end
  870. end
  871. end
  872. return lastx
  873. end
  874. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  875. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  876. prt.Anchored = true
  877. prt.CFrame = cframe
  878. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  879. game:GetService("Debris"):AddItem(prt, 10)
  880. if Type == 1 or Type == nil then
  881. table.insert(Effects, {
  882. prt,
  883. "Block1",
  884. delay,
  885. x3,
  886. y3,
  887. z3,
  888. msh
  889. })
  890. elseif Type == 2 then
  891. table.insert(Effects, {
  892. prt,
  893. "Block2",
  894. delay,
  895. x3,
  896. y3,
  897. z3,
  898. msh
  899. })
  900. end
  901. end
  902. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  903. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  904. prt.Anchored = true
  905. prt.CFrame = cframe
  906. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  907. game:GetService("Debris"):AddItem(prt, 10)
  908. table.insert(Effects, {
  909. prt,
  910. "Cylinder",
  911. delay,
  912. x3,
  913. y3,
  914. z3,
  915. msh
  916. })
  917. end
  918. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  919. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  920. prt.Anchored = true
  921. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  922. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  923. game:GetService("Debris"):AddItem(prt, 10)
  924. table.insert(Effects, {
  925. prt,
  926. "Cylinder",
  927. delay,
  928. x3,
  929. y3,
  930. z3,
  931. msh
  932. })
  933. end
  934. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  935. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  936. prt.Anchored = true
  937. prt.CFrame = cframe
  938. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  939. game:GetService("Debris"):AddItem(prt, 10)
  940. table.insert(Effects, {
  941. prt,
  942. "Cylinder",
  943. delay,
  944. x3,
  945. y3,
  946. z3,
  947. msh
  948. })
  949. end
  950. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  951. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  952. prt.Anchored = true
  953. prt.CFrame = cframe
  954. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  955. game:GetService("Debris"):AddItem(prt, 10)
  956. table.insert(Effects, {
  957. prt,
  958. "Cylinder",
  959. delay,
  960. x3,
  961. y3,
  962. z3,
  963. msh
  964. })
  965. end
  966. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  967. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  968. prt.Anchored = true
  969. prt.CFrame = cframe
  970. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  971. game:GetService("Debris"):AddItem(prt, 10)
  972. table.insert(Effects, {
  973. prt,
  974. "Cylinder",
  975. delay,
  976. x3,
  977. y3,
  978. z3,
  979. msh
  980. })
  981. end
  982. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  983. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  984. prt.Anchored = true
  985. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  986. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  987. local num = math.random(10, 50) / 1000
  988. game:GetService("Debris"):AddItem(prt, 10)
  989. table.insert(Effects, {
  990. prt,
  991. "Shatter",
  992. num,
  993. prt.CFrame,
  994. math.random() - math.random(),
  995. 0,
  996. math.random(50, 100) / 100
  997. })
  998. end
  999. for i = 0, 1, 0.05 do
  1000. swait()
  1001. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1002. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), 0.1)
  1003. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  1004. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  1005. if Torsovelocity > 2 then
  1006. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), 0.2)
  1007. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), 0.3)
  1008. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), 0.3)
  1009. elseif Torsovelocity < 1 then
  1010. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  1011. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), 0.1)
  1012. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), 0.1)
  1013. end
  1014. end
  1015. attack = false
  1016. game:GetService("RunService").Stepped:connect(function()
  1017. -- Torsovelocity = --RootPart.Velocity.y * Vector3.new(1, 0, 1).magnitude
  1018. Torsovelocity = (torso.Velocity*Vector3.new(1, 0, 1)).magnitude
  1019. velocity = RootPart.Velocity.y
  1020. sine = sine + change
  1021. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1022. if equipped == true or equipped == false then
  1023. if 1 < RootPart.Velocity.y and hit == nil then
  1024. Anim = "Jump"
  1025. if attack == false and Anim2 == false then
  1026. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1027. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1028. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), 0.1)
  1029. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), 0.1)
  1030. RH.C0 = clerp(RH.C0, cn(1, -0.9, -0.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
  1031. LH.C0 = clerp(LH.C0, cn(-1, -0.7, -0.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
  1032. end
  1033. elseif RootPart.Velocity.y < -1 and hit == nil then
  1034. Anim = "Fall"
  1035. if attack == false and Anim2 == false then
  1036. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1037. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1038. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.1)
  1039. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.1)
  1040. RH.C0 = clerp(RH.C0, cn(1, -1, -0.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1041. LH.C0 = clerp(LH.C0, cn(-1, -0.8, -0.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1042. end
  1043. elseif Torsovelocity < 1 and hit ~= nil then
  1044. Anim = "Idle"
  1045. if attack == false and Anim2 == false then
  1046. change = 0.8
  1047. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(-5), math.rad(5)), 0.1)
  1048. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 50)), math.rad(8), math.rad(-5)), 0.1)
  1049. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.6, 0.3) * angles(math.rad(30), math.rad(150), math.rad(-200 + 3 * math.cos(sine / 25))), 0.1)
  1050. LW.C0 = clerp(LW.C0, CFrame.new(-1.54, 0.5, 0.1) * angles(math.rad(0), math.rad(10), math.rad(0 - 4 * math.cos(sine / 25))), 0.1)
  1051. RH.C0 = clerp(RH.C0, cn(1, -0.93 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-10 + 2 * math.cos(sine / 25)), math.rad(-15), math.rad(6 + 2 * math.cos(sine / 45))), 0.1)
  1052. LH.C0 = clerp(LH.C0, cn(-1, -0.93 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-5 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(7 + 2 * math.cos(sine / 25))), 0.1)
  1053. end
  1054. elseif Torsovelocity > 1 and hit ~= nil then
  1055. Anim = "Walk"
  1056. if attack == false and Anim2 == false then
  1057. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.02 + 0.1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(7 * math.cos(sine / 5))), 0.1)
  1058. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), 0.1)
  1059. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(-7), math.rad(4 * math.cos(sine / 4))), 0.1)
  1060. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50 * math.cos(sine / 4)), math.rad(7), math.rad(4 * math.cos(sine / 4))), 0.1)
  1061. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.2 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(7), math.rad(50 * math.cos(sine / 4))), 0.1)
  1062. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(-7), math.rad(50 * math.cos(sine / 4))), 0.1)
  1063. end
  1064. end
  1065. end
  1066. if equipped == true or equipped == false then
  1067. if 1 < RootPart.Velocity.y and hit == nil then
  1068. Anim = "Jump"
  1069. if attack == false and Anim2 == true then
  1070. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1071. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1072. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), 0.1)
  1073. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), 0.1)
  1074. RH.C0 = clerp(RH.C0, cn(1, -0.9, -0.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
  1075. LH.C0 = clerp(LH.C0, cn(-1, -0.7, -0.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
  1076. end
  1077. elseif RootPart.Velocity.y < -1 and hit == nil then
  1078. Anim = "Fall"
  1079. if attack == false and Anim2 == true then
  1080. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1081. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1082. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.1)
  1083. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.1)
  1084. RH.C0 = clerp(RH.C0, cn(1, -1, -0.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1085. LH.C0 = clerp(LH.C0, cn(-1, -0.8, -0.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1086. end
  1087. elseif Torsovelocity < 1 and hit ~= nil then
  1088. Anim = "Idle"
  1089. if attack == false and Anim2 == true then
  1090. change = 0.8
  1091. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.1)
  1092. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(1 - 1 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), 0.1)
  1093. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  1094. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.1)
  1095. RH.C0 = clerp(RH.C0, cn(1, -0.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), 0.1)
  1096. LH.C0 = clerp(LH.C0, cn(-1, -0.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), 0.1)
  1097. end
  1098. elseif Torsovelocity > 1 and hit ~= nil then
  1099. Anim = "Walk"
  1100. if attack == false and Anim2 == true then
  1101. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.02 + 0.1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), 0.2)
  1102. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), 0.2)
  1103. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), 0.1)
  1104. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), 0.1)
  1105. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.2 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), 0.1)
  1106. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), 0.1)
  1107. end
  1108. end
  1109. end
  1110. if 0 < #Effects then
  1111. for e = 1, #Effects do
  1112. if Effects[e] ~= nil then
  1113. local Thing = Effects[e]
  1114. if Thing ~= nil then
  1115. local Part = Thing[1]
  1116. local Mode = Thing[2]
  1117. local Delay = Thing[3]
  1118. local IncX = Thing[4]
  1119. local IncY = Thing[5]
  1120. local IncZ = Thing[6]
  1121. if 1 >= Thing[1].Transparency then
  1122. if Thing[2] == "Block1" then
  1123. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1124. local Mesh = Thing[1].Mesh
  1125. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1126. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1127. elseif Thing[2] == "Block2" then
  1128. Thing[1].CFrame = Thing[1].CFrame
  1129. local Mesh = Thing[7]
  1130. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1131. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1132. elseif Thing[2] == "Cylinder" then
  1133. local Mesh = Thing[1].Mesh
  1134. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1135. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1136. elseif Thing[2] == "Blood" then
  1137. local Mesh = Thing[7]
  1138. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1139. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1140. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1141. elseif Thing[2] == "Elec" then
  1142. local Mesh = Thing[1].Mesh
  1143. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1144. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1145. elseif Thing[2] == "Disappear" then
  1146. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1147. elseif Thing[2] == "Shatter" then
  1148. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1149. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1150. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1151. Thing[6] = Thing[6] + Thing[5]
  1152. end
  1153. else
  1154. Part.Parent = nil
  1155. table.remove(Effects, e)
  1156. end
  1157. end
  1158. end
  1159. end
  1160. end
  1161. end)
  1162. Pressed = false
  1163. MaskOn = false
  1164. MaskOff = true
  1165. Anim2 = true
  1166. eye1 = false
  1167. eye2 = false
  1168. eye3 = true
  1169. mouth1 = false
  1170. mouth2 = true
  1171. mouth3 = false
  1172. mouth4 = false
  1173. mouth5 = false
  1174. mouth6 = false
  1175. mouth7 = false
  1176. bkit0 = true
  1177. bkit1 = false
  1178. bkit2 = false
  1179. torso1 = false
  1180. torso2 = true
  1181. Tail0 = true
  1182. Tail1 = false
  1183. Tail2 = false
  1184. Tail3 = false
  1185. Hair0 = true
  1186. Hair1 = false
  1187. Hair2 = false
  1188. Hair3 = false
  1189. Hat0 = true
  1190. Hat1 = false
  1191. Hat2 = false
  1192. Hat3 = false
  1193. local Playing = false
  1194. char2 = game.Players.LocalPlayer.Character
  1195. iPlayer = game.Players.LocalPlayer.Name
  1196. local Gui = Instance.new("ScreenGui", game.Players[iPlayer].PlayerGui)
  1197. Gui.Name = "Gui test"
  1198. local Pull = Instance.new("Frame", Gui)
  1199. Pull.Name = "Grab"
  1200. Pull.Active = true
  1201. Pull.BackgroundColor3 = Color3.new(0.3803921568627451, 0.3803921568627451, 0.3803921568627451)
  1202. Pull.BackgroundTransparency = 0
  1203. Pull.BorderSizePixel = 4
  1204. Pull.Position = UDim2.new(0.5, -318, 0.5, -92)
  1205. Pull.Size = UDim2.new(0, 120, 0, 50)
  1206. Pull.Draggable = true
  1207. Pull.BorderColor3 = Color3.new(0.3803921568627451, 0.3803921568627451, 0.3803921568627451)
  1208. local Close = Instance.new("TextButton", Pull)
  1209. Close.Name = "Close"
  1210. Close.BackgroundTransparency = 1
  1211. Close.Position = UDim2.new(1, -23, 0, 1)
  1212. Close.Size = UDim2.new(0, 22, 0, 22)
  1213. Close.Font = "SourceSans"
  1214. Close.FontSize = "Size24"
  1215. Close.TextColor3 = Color3.new(255, 255, 255)
  1216. Close.Text = "X"
  1217. Close.TextStrokeTransparency = 0.8
  1218. local Body = Instance.new("Frame", Pull)
  1219. Body.Name = "Body"
  1220. Body.BackgroundColor3 = Color3.new(0.23529411764705882, 0.23529411764705882, 0.23529411764705882)
  1221. Body.BackgroundTransparency = 0
  1222. Body.BorderSizePixel = 4
  1223. Body.Position = UDim2.new(0, 0, 0, 52)
  1224. Body.Size = UDim2.new(0, 547, 0, 212)
  1225. Body.BorderColor3 = Color3.new(0.3803921568627451, 0.3803921568627451, 0.3803921568627451)
  1226. local Line = Instance.new("Frame", Body)
  1227. Line.Name = "Line"
  1228. Line.BackgroundColor3 = Color3.new(0.23529411764705882, 0.23529411764705882, 0.23529411764705882)
  1229. Line.BackgroundTransparency = 0
  1230. Line.BorderSizePixel = 2
  1231. Line.Position = UDim2.new(0, 152.5, 0, 0)
  1232. Line.Size = UDim2.new(0, 0.01, 0, 212)
  1233. Line.BorderColor3 = Color3.new(0.3803921568627451, 0.3803921568627451, 0.3803921568627451)
  1234. local Line2 = Instance.new("Frame", Body)
  1235. Line2.Name = "Line2"
  1236. Line2.BackgroundColor3 = Color3.new(0.23529411764705882, 0.23529411764705882, 0.23529411764705882)
  1237. Line2.BackgroundTransparency = 0
  1238. Line2.BorderSizePixel = 2
  1239. Line2.Position = UDim2.new(0, 306.5, 0, 0)
  1240. Line2.Size = UDim2.new(0, 0.01, 0, 212)
  1241. Line2.BorderColor3 = Color3.new(0.3803921568627451, 0.3803921568627451, 0.3803921568627451)
  1242. local Title = Instance.new("TextLabel", Pull)
  1243. Title.Name = "Title"
  1244. Title.BackgroundTransparency = 1
  1245. Title.Position = UDim2.new(0, -50, 0, 0)
  1246. Title.Size = UDim2.new(0, 200, 1, 0)
  1247. Title.Font = "SourceSansLight"
  1248. Title.FontSize = "Size48"
  1249. Title.Text = "Menu"
  1250. Title.TextColor3 = Color3.new(0.5, 0, 1)
  1251. Title.TextStrokeColor3 = Color3.new(0.2901960784313726, 0.2901960784313726, 0.2901960784313726)
  1252. Title.TextStrokeTransparency = 0
  1253. local PlayerName = Instance.new("TextBox", Body)
  1254. PlayerName.Name = "PlayerName"
  1255. PlayerName.BorderSizePixel = 0
  1256. PlayerName.Position = UDim2.new(0, 8, 0, 10)
  1257. PlayerName.Size = UDim2.new(0, 135, 0, 30)
  1258. PlayerName.Font = "SourceSans"
  1259. PlayerName.FontSize = "Size18"
  1260. PlayerName.Text = "Name of the color"
  1261. PlayerName.BackgroundColor3 = Color3.new(255, 255, 255)
  1262. PlayerName.TextColor3 = Color3.new(0, 0, 0)
  1263. PlayerName.TextWrapped = true
  1264. local ColTex2 = Instance.new("TextBox", Body)
  1265. ColTex2.Name = "ColTex2"
  1266. ColTex2.BorderSizePixel = 0
  1267. ColTex2.Position = UDim2.new(0, 318.5, 0, 10)
  1268. ColTex2.Size = UDim2.new(0, 135, 0, 30)
  1269. ColTex2.Font = "SourceSans"
  1270. ColTex2.FontSize = "Size18"
  1271. ColTex2.Text = "Song id"
  1272. ColTex2.BackgroundColor3 = Color3.new(255, 255, 255)
  1273. ColTex2.TextColor3 = Color3.new(0, 0, 0)
  1274. ColTex2.TextWrapped = true
  1275. local ColTex3 = Instance.new("TextBox", Body)
  1276. ColTex3.Name = "ColTex3"
  1277. ColTex3.BorderSizePixel = 2
  1278. ColTex3.Position = UDim2.new(0, 10, 0, 130)
  1279. ColTex3.Size = UDim2.new(0, 57.5, 0, 30)
  1280. ColTex3.Font = "SourceSans"
  1281. ColTex3.FontSize = "Size10"
  1282. ColTex3.Text = "Shirt id"
  1283. ColTex3.BackgroundColor3 = Color3.new(255, 255, 255)
  1284. ColTex3.TextColor3 = Color3.new(0, 0, 0)
  1285. ColTex3.TextWrapped = true
  1286. local ColTex4 = Instance.new("TextBox", Body)
  1287. ColTex4.Name = "ColTex4"
  1288. ColTex4.BorderSizePixel = 2
  1289. ColTex4.Position = UDim2.new(0, 10, 0, 170)
  1290. ColTex4.Size = UDim2.new(0, 57.5, 0, 30)
  1291. ColTex4.Font = "SourceSans"
  1292. ColTex4.FontSize = "Size10"
  1293. ColTex4.Text = "Pants id"
  1294. ColTex4.BackgroundColor3 = Color3.new(255, 255, 255)
  1295. ColTex4.TextColor3 = Color3.new(0, 0, 0)
  1296. ColTex4.TextWrapped = true
  1297. local Chattext = Instance.new("TextBox", Body)
  1298. Chattext.Name = "Chattext"
  1299. Chattext.BorderSizePixel = 2
  1300. Chattext.Position = UDim2.new(0, 125, 0, -45)
  1301. Chattext.Size = UDim2.new(0, 157.5, 0, 40)
  1302. Chattext.Font = "SourceSans"
  1303. Chattext.FontSize = "Size12"
  1304. Chattext.Text = "Beter chat ^-^ "
  1305. Chattext.BackgroundColor3 = Color3.new(255, 255, 255)
  1306. Chattext.TextColor3 = Color3.new(0, 0, 0)
  1307. Chattext.TextWrapped = true
  1308. Chattext.BorderColor3 = Color3.new(0.3803921568627451, 0.3803921568627451, 0.3803921568627451)
  1309. local God = Instance.new("TextButton", Body)
  1310. God.Name = "God"
  1311. God.BackgroundColor3 = Color3.new(0.08235294117647059, 0.5568627450980392, 255)
  1312. God.BackgroundTransparency = 0
  1313. God.BorderSizePixel = 2
  1314. God.Position = UDim2.new(0, 10, 0, 50)
  1315. God.Size = UDim2.new(0, 57.5, 0, 30)
  1316. God.Font = "SourceSansBold"
  1317. God.FontSize = "Size18"
  1318. God.Text = "Skin col"
  1319. God.TextColor3 = Color3.new(255, 255, 255)
  1320. God.TextWrapped = true
  1321. God.BorderColor3 = Color3.new(0.3803921568627451, 0.3803921568627451, 0.3803921568627451)
  1322. God.TextStrokeTransparency = 1
  1323. local Saypress = God:Clone()
  1324. Saypress.Name = "Saypress"
  1325. Saypress.Parent = Body
  1326. Saypress.Position = UDim2.new(0, 285.5, 0, -35)
  1327. Saypress.Text = "Say"
  1328. Saypress.BackgroundColor3 = Color3.new(0.5, 1, 0.5)
  1329. local TpTo = God:Clone()
  1330. TpTo.Name = "TpTo"
  1331. TpTo.Parent = Body
  1332. TpTo.Position = UDim2.new(0, 468.5, 0, 10)
  1333. TpTo.Text = "Play"
  1334. TpTo.BackgroundColor3 = Color3.new(0.5, 1, 0.5)
  1335. local KillPlr = God:Clone()
  1336. KillPlr.Name = "Shirtcol"
  1337. KillPlr.Parent = Body
  1338. KillPlr.Position = UDim2.new(0, 10, 0, 90)
  1339. KillPlr.Text = "Shirt col"
  1340. KillPlr.Size = UDim2.new(0, 130, 0, 30)
  1341. local Haircol = God:Clone()
  1342. Haircol.Name = "Haircol"
  1343. Haircol.Parent = Body
  1344. Haircol.Position = UDim2.new(0, 82.5, 0, 50)
  1345. Haircol.Text = "Hair col"
  1346. local TpMe = God:Clone()
  1347. TpMe.Name = "Hat"
  1348. TpMe.Parent = Body
  1349. TpMe.Position = UDim2.new(0, 164, 0, 90)
  1350. TpMe.Text = "Hat 1"
  1351. TpMe.Size = UDim2.new(0, 57.5, 0, 30)
  1352. TpMe.FontSize = "Size18"
  1353. local TpMe2 = God:Clone()
  1354. TpMe2.Name = "Hair"
  1355. TpMe2.Parent = Body
  1356. TpMe2.Position = UDim2.new(0, 236.5, 0, 50)
  1357. TpMe2.Text = "Hair 1"
  1358. TpMe2.Size = UDim2.new(0, 57.5, 0, 30)
  1359. TpMe2.FontSize = "Size18"
  1360. local G36K = God:Clone()
  1361. G36K.Name = "SpawnG36k"
  1362. G36K.Parent = Body
  1363. G36K.Position = UDim2.new(0, 162, 0, 10)
  1364. G36K.Text = "Idle Pose"
  1365. G36K.Size = UDim2.new(0, 135, 0, 30)
  1366. G36K.BackgroundColor3 = Color3.new(1, 0.5, 0.5)
  1367. G36K.FontSize = "Size28"
  1368. local Tail = God:Clone()
  1369. Tail.Name = "Tail"
  1370. Tail.Parent = Body
  1371. Tail.Position = UDim2.new(0, 164, 0, 50)
  1372. Tail.Text = "Tail 0"
  1373. local Torso2 = God:Clone()
  1374. Torso2.Name = "Hair"
  1375. Torso2.Parent = Body
  1376. Torso2.Position = UDim2.new(0, 236.5, 0, 90)
  1377. Torso2.Text = "Torso 2"
  1378. Torso2.Size = UDim2.new(0, 57.5, 0, 30)
  1379. Torso2.FontSize = "Size18"
  1380. local Bkit = God:Clone()
  1381. Bkit.Name = "Bkit"
  1382. Bkit.Parent = Body
  1383. Bkit.Position = UDim2.new(0, 164, 0, 130)
  1384. Bkit.Text = "Bkit 0"
  1385. Bkit.Size = UDim2.new(0, 57.5, 0, 30)
  1386. Bkit.FontSize = "Size18"
  1387. local Mouth = God:Clone()
  1388. Mouth.Name = "Mouth"
  1389. Mouth.Parent = Body
  1390. Mouth.Position = UDim2.new(0, 164, 0, 170)
  1391. Mouth.Text = "Mouth 2"
  1392. Mouth.FontSize = "Size18"
  1393. local Eyes = God:Clone()
  1394. Eyes.Name = "Eyes"
  1395. Eyes.Parent = Body
  1396. Eyes.Position = UDim2.new(0, 236, 0, 130)
  1397. Eyes.Text = "Eye 3"
  1398. Eyes.FontSize = "Size18"
  1399. local mask = God:Clone()
  1400. mask.Name = "mask"
  1401. mask.Parent = Body
  1402. mask.Position = UDim2.new(0, 236, 0, 170)
  1403. mask.Text = "Shy"
  1404. mask.FontSize = "Size18"
  1405. mask.BackgroundColor3 = Color3.new(1, 0.5, 0.5)
  1406. local Shirtset = God:Clone()
  1407. Shirtset.Name = "Shirtset"
  1408. Shirtset.Parent = Body
  1409. Shirtset.Position = UDim2.new(0, 82.5, 0, 130)
  1410. Shirtset.Text = "Set"
  1411. local Pantsset = God:Clone()
  1412. Pantsset.Name = "Pantsset"
  1413. Pantsset.Parent = Body
  1414. Pantsset.Position = UDim2.new(0, 82.5, 0, 170)
  1415. Pantsset.Text = "Set"
  1416. local Bunny = God:Clone()
  1417. Bunny.Name = "Bunny"
  1418. Bunny.Parent = Body
  1419. Bunny.Position = UDim2.new(0, 318.5, 0, 50)
  1420. Bunny.Text = "Bunny"
  1421. local Noob = God:Clone()
  1422. Noob.Name = "Noob"
  1423. Noob.Parent = Body
  1424. Noob.Position = UDim2.new(0, 318.5, 0, 90)
  1425. Noob.Text = "Noob"
  1426. local Kitty = God:Clone()
  1427. Kitty.Name = "Kitty"
  1428. Kitty.Parent = Body
  1429. Kitty.Position = UDim2.new(0, 318.5, 0, 130)
  1430. Kitty.Text = "Kitty"
  1431. Saypress.MouseButton1Down:connect(function()
  1432. local ChatService = game:GetService("Chat")
  1433. ChatService:Chat(char.Head, "" .. Chattext.Text)
  1434. end)
  1435. God.MouseButton1Down:connect(function()
  1436. BC.HeadColor = BrickColor.new(PlayerName.Text)
  1437. BC.LeftArmColor = BrickColor.new(PlayerName.Text)
  1438. BC.LeftLegColor = BrickColor.new(PlayerName.Text)
  1439. BC.RightArmColor = BrickColor.new(PlayerName.Text)
  1440. BC.RightLegColor = BrickColor.new(PlayerName.Text)
  1441. pn3.BrickColor = BrickColor.new(PlayerName.Text)
  1442. pn4.BrickColor = BrickColor.new(PlayerName.Text)
  1443. skin.BrickColor = BrickColor.new(PlayerName.Text)
  1444. end)
  1445. KillPlr.MouseButton1Down:connect(function()
  1446. pn.BrickColor = BrickColor.new(PlayerName.Text)
  1447. p.BrickColor = BrickColor.new(PlayerName.Text)
  1448. pn0.BrickColor = BrickColor.new(PlayerName.Text)
  1449. BC.TorsoColor = BrickColor.new(PlayerName.Text)
  1450. hat2.BrickColor = BrickColor.new(PlayerName.Text)
  1451. hat3.BrickColor = BrickColor.new(PlayerName.Text)
  1452. pn5.BrickColor = BrickColor.new(PlayerName.Text)
  1453. pn7.BrickColor = BrickColor.new(PlayerName.Text)
  1454. pn8.BrickColor = BrickColor.new(PlayerName.Text)
  1455. pn9.BrickColor = BrickColor.new(PlayerName.Text)
  1456. tail3.BrickColor = BrickColor.new(PlayerName.Text)
  1457. end)
  1458. TpTo.MouseButton1Down:connect(function()
  1459. if Playing == false and Pressed == false then
  1460. TpTo.BackgroundColor3 = Color3.new(1, 0.5, 0.5)
  1461. TpTo.Text = "Stop"
  1462. Pressed = true
  1463. radio.Transparency = 0
  1464. GlowParticle.Transparency = NumberSequence.new(0.3, 0.8)
  1465. GlowParticle2.Transparency = NumberSequence.new(0.3, 0.8)
  1466. GlowParticle3.Transparency = NumberSequence.new(0.3, 0.8)
  1467. wait()
  1468. sound:Play()
  1469. Playing = true
  1470. end
  1471. if Playing == true and Pressed == false then
  1472. TpTo.BackgroundColor3 = Color3.new(0.5, 1, 0.5)
  1473. TpTo.Text = "Play"
  1474. Pressed = true
  1475. radio.Transparency = 1
  1476. GlowParticle.Transparency = NumberSequence.new(1)
  1477. GlowParticle2.Transparency = NumberSequence.new(1)
  1478. GlowParticle3.Transparency = NumberSequence.new(1)
  1479. wait()
  1480. sound:Stop()
  1481. Playing = false
  1482. end
  1483. wait()
  1484. Pressed = false
  1485. end)
  1486. TpMe.MouseButton1Down:connect(function()
  1487. if Hat1 == true and Pressed == false then
  1488. TpMe.Text = "Hat 2"
  1489. pn0.Transparency = 1
  1490. hat2.Transparency = 0
  1491. Pressed = true
  1492. wait()
  1493. Hat1 = false
  1494. Hat2 = true
  1495. end
  1496. if Hat2 == true and Pressed == false then
  1497. TpMe.Text = "Hat 3"
  1498. hat2.Transparency = 1
  1499. hat3.Transparency = 0
  1500. Pressed = true
  1501. wait()
  1502. Hat2 = false
  1503. Hat3 = true
  1504. end
  1505. if Hat3 == true and Pressed == false then
  1506. TpMe.Text = "Hat 0"
  1507. hat3.Transparency = 1
  1508. Pressed = true
  1509. wait()
  1510. Hat3 = false
  1511. Hat0 = true
  1512. end
  1513. if Hat0 == true and Pressed == false then
  1514. TpMe.Text = "Hat 1"
  1515. pn0.Transparency = 0
  1516. Pressed = true
  1517. wait()
  1518. Hat3 = false
  1519. Hat1 = true
  1520. end
  1521. wait()
  1522. Pressed = false
  1523. end)
  1524. G36K.MouseButton1Down:connect(function()
  1525. if Anim2 == false and Pressed == false then
  1526. G36K.BackgroundColor3 = Color3.new(1, 0.5, 0.5)
  1527. Pressed = true
  1528. wait()
  1529. Anim2 = true
  1530. end
  1531. if Anim2 == true and Pressed == false then
  1532. G36K.BackgroundColor3 = Color3.new(0.5, 1, 0.5)
  1533. Pressed = true
  1534. wait()
  1535. Anim2 = false
  1536. end
  1537. wait()
  1538. Pressed = false
  1539. end)
  1540. TpMe2.MouseButton1Down:connect(function()
  1541. if Hair1 == true and Pressed == false then
  1542. TpMe2.Text = "Hair 2"
  1543. Hood.Transparency = 1
  1544. pn6.Transparency = 1
  1545. hair2.Transparency = 0
  1546. Pressed = true
  1547. wait()
  1548. Hair1 = false
  1549. Hair2 = true
  1550. end
  1551. if Hair2 == true and Pressed == false then
  1552. TpMe2.Text = "Hair 3"
  1553. Hood.Transparency = 0
  1554. pn6.Transparency = 1
  1555. hair2.Transparency = 1
  1556. Pressed = true
  1557. wait()
  1558. Hair2 = false
  1559. Hair3 = true
  1560. end
  1561. if Hair3 == true and Pressed == false then
  1562. TpMe2.Text = "Hair 0"
  1563. Hood.Transparency = 1
  1564. pn6.Transparency = 1
  1565. hair2.Transparency = 1
  1566. Pressed = true
  1567. wait()
  1568. Hair3 = false
  1569. Hair0 = true
  1570. end
  1571. if Hair0 == true and Pressed == false then
  1572. TpMe2.Text = "Hair 1"
  1573. Hood.Transparency = 0
  1574. pn6.Transparency = 0
  1575. hair2.Transparency = 0
  1576. Pressed = true
  1577. wait()
  1578. Hair0 = false
  1579. Hair1 = true
  1580. end
  1581. wait()
  1582. Pressed = false
  1583. end)
  1584. Haircol.MouseButton1Down:connect(function()
  1585. hair2.BrickColor = BrickColor.new(PlayerName.Text)
  1586. Hood.BrickColor = BrickColor.new(PlayerName.Text)
  1587. pn6.BrickColor = BrickColor.new(PlayerName.Text)
  1588. end)
  1589. Tail.MouseButton1Down:connect(function()
  1590. if Tail1 == true and Pressed == false then
  1591. Tail.Text = "Tail 2"
  1592. pn5.Transparency = 1
  1593. pn7.Transparency = 1
  1594. pn8.Transparency = 1
  1595. pn9.Transparency = 1
  1596. tail2.Transparency = 0
  1597. Pressed = true
  1598. wait()
  1599. Tail1 = false
  1600. Tail2 = true
  1601. end
  1602. if Tail2 == true and Pressed == false then
  1603. Tail.Text = "Tail 3"
  1604. tail2.Transparency = 1
  1605. tail3.Transparency = 0
  1606. Pressed = true
  1607. wait()
  1608. Tail2 = false
  1609. Tail3 = true
  1610. end
  1611. if Tail3 == true and Pressed == false then
  1612. Tail.Text = "Tail 0"
  1613. tail3.Transparency = 1
  1614. Pressed = true
  1615. wait()
  1616. Tail3 = false
  1617. Tail0 = true
  1618. end
  1619. if Tail0 == true and Pressed == false then
  1620. Tail.Text = "Tail 1"
  1621. pn5.Transparency = 0
  1622. pn7.Transparency = 0
  1623. pn8.Transparency = 0
  1624. pn9.Transparency = 0
  1625. Pressed = true
  1626. wait()
  1627. Tail0 = false
  1628. Tail1 = true
  1629. end
  1630. wait()
  1631. Pressed = false
  1632. end)
  1633. Torso2.MouseButton1Down:connect(function()
  1634. if torso1 == true and Pressed == false then
  1635. Pressed = true
  1636. M69.MeshId = "rbxassetid://456901040"
  1637. M69.Scale = Vector3.new(1, 1, 1)
  1638. Torso2.Text = "Torso 2"
  1639. wait()
  1640. torso1 = false
  1641. torso2 = true
  1642. end
  1643. if torso2 == true and Pressed == false then
  1644. Pressed = true
  1645. M69.MeshId = "rbxassetid://48112070"
  1646. M69.Scale = Vector3.new(1.093, 1, 1)
  1647. Torso2.Text = "Torso 1"
  1648. wait()
  1649. torso1 = true
  1650. torso2 = false
  1651. end
  1652. wait()
  1653. Pressed = false
  1654. end)
  1655. Bkit.MouseButton1Down:connect(function()
  1656. if bkit1 == true and Pressed == false then
  1657. Pressed = true
  1658. p.Transparency = 0
  1659. pn.Transparency = 0
  1660. pn3.Transparency = 1
  1661. pn4.Transparency = 1
  1662. skin.Transparency = 1
  1663. Bkit.Text = "Bkit 2"
  1664. wait()
  1665. bkit1 = false
  1666. bkit2 = true
  1667. end
  1668. if bkit2 == true and Pressed == false then
  1669. Pressed = true
  1670. p.Transparency = 1
  1671. pn.Transparency = 1
  1672. pn3.Transparency = 1
  1673. pn4.Transparency = 1
  1674. skin.Transparency = 1
  1675. Bkit.Text = "Bkit 0"
  1676. wait()
  1677. bkit2 = false
  1678. bkit0 = true
  1679. end
  1680. if bkit0 == true and Pressed == false then
  1681. Pressed = true
  1682. p.Transparency = 0
  1683. pn.Transparency = 0
  1684. pn3.Transparency = 0
  1685. pn4.Transparency = 0
  1686. skin.Transparency = 0
  1687. Bkit.Text = "Bkit 1"
  1688. wait()
  1689. bkit0 = false
  1690. bkit1 = true
  1691. end
  1692. wait()
  1693. Pressed = false
  1694. end)
  1695. Mouth.MouseButton1Down:connect(function()
  1696. if mouth1 == true and Pressed == false then
  1697. Mouth.Text = "Mouth 2"
  1698. newface.Texture = "rbxassetid://186681690"
  1699. Orbd.Transparency = 1
  1700. Pressed = true
  1701. wait()
  1702. mouth1 = false
  1703. mouth2 = true
  1704. end
  1705. if mouth2 == true and Pressed == false then
  1706. Mouth.Text = "Mouth 3"
  1707. newface.Texture = "rbxassetid://322781877"
  1708. Orbd.Transparency = 1
  1709. Pressed = true
  1710. wait()
  1711. mouth2 = false
  1712. mouth3 = true
  1713. end
  1714. if mouth3 == true and Pressed == false then
  1715. Mouth.Text = "Mouth 4"
  1716. newface.Texture = "rbxassetid://186682603"
  1717. Orbd.Transparency = 1
  1718. Pressed = true
  1719. wait()
  1720. mouth3 = false
  1721. mouth4 = true
  1722. end
  1723. if mouth4 == true and Pressed == false then
  1724. Mouth.Text = "Mouth 5"
  1725. newface.Texture = "rbxassetid://133379869"
  1726. Orbd.Transparency = 1
  1727. Pressed = true
  1728. wait()
  1729. mouth4 = false
  1730. mouth5 = true
  1731. end
  1732. if mouth5 == true and Pressed == false then
  1733. Mouth.Text = "Mouth 6"
  1734. newface.Texture = "rbxassetid://186683091"
  1735. Orbd.Transparency = 1
  1736. Pressed = true
  1737. wait()
  1738. mouth5 = false
  1739. mouth6 = true
  1740. end
  1741. if mouth6 == true and Pressed == false then
  1742. Mouth.Text = "Mouth 7"
  1743. newface.Texture = "rbxassetid://186682277"
  1744. Orbd.Transparency = 1
  1745. Pressed = true
  1746. wait()
  1747. mouth6 = false
  1748. mouth7 = true
  1749. end
  1750. if mouth7 == true and Pressed == false then
  1751. Mouth.Text = "Mouth 1"
  1752. newface.Texture = "rbxassetid://"
  1753. Orbd.Transparency = 0
  1754. Pressed = true
  1755. wait()
  1756. mouth6 = false
  1757. mouth1 = true
  1758. end
  1759. wait()
  1760. Pressed = false
  1761. end)
  1762. Eyes.MouseButton1Down:connect(function()
  1763. if eye3 == true and Pressed == false then
  1764. Pressed = true
  1765. char.Head.face.Texture = "rbxassetid://176204308"
  1766. Eyes.Text = "Eye 1"
  1767. wait()
  1768. eye3 = false
  1769. eye1 = true
  1770. end
  1771. if eye1 == true and Pressed == false then
  1772. Pressed = true
  1773. char.Head.face.Texture = "rbxassetid://176210835"
  1774. Eyes.Text = "Eye 2"
  1775. wait()
  1776. eye1 = false
  1777. eye2 = true
  1778. end
  1779. if eye2 == true and Pressed == false then
  1780. Pressed = true
  1781. char.Head.face.Texture = "rbxassetid://176206791"
  1782. Eyes.Text = "Eye 3"
  1783. wait()
  1784. eye2 = false
  1785. eye3 = true
  1786. end
  1787. wait()
  1788. Pressed = false
  1789. end)
  1790. mask.MouseButton1Down:connect(function()
  1791. if MaskOn == true and Pressed == false then
  1792. Mask.Transparency = 1
  1793. Pressed = true
  1794. mask.BackgroundColor3 = Color3.new(1, 0.5, 0.5)
  1795. wait()
  1796. MaskOn = false
  1797. MaskOff = true
  1798. end
  1799. if MaskOff == true and Pressed == false then
  1800. Mask.Transparency = 0
  1801. Pressed = true
  1802. mask.BackgroundColor3 = Color3.new(0.5, 1, 0.5)
  1803. wait()
  1804. MaskOn = true
  1805. MaskOff = false
  1806. end
  1807. wait()
  1808. Pressed = false
  1809. end)
  1810. Shirtset.MouseButton1Down:connect(function()
  1811. char049.Shirt.ShirtTemplate = "rbxassetid://" .. ColTex3.Text
  1812. end)
  1813. Pantsset.MouseButton1Down:connect(function()
  1814. char049.Pants.PantsTemplate = "rbxassetid://" .. ColTex4.Text
  1815. end)
  1816. Close.MouseButton1Down:connect(function()
  1817. if Body.Visible == true then
  1818. Body.Visible = false
  1819. Close.Text = "+"
  1820. Title.FontSize = "Size24"
  1821. Pull.Size = UDim2(0, 125, 0, 12.5)
  1822. elseif Body.Visible == false then
  1823. Body.Visible = true
  1824. Close.Text = "X"
  1825. Title.FontSize = "Size48"
  1826. Graf_f.Size = UDim2(0, 500, 0, 50)
  1827. end
  1828. end)
  1829. local mesh = Instance.new("SpecialMesh", radio)
  1830. mesh.MeshId = "http://www.roblox.com/asset/?id=151760030"
  1831. mesh.TextureId = "rbxassetid://151760072"
  1832. mesh.Scale = Vector3.new(0.7, 0.7, 0.7)
  1833. ColTex2.Changed:connect(function()
  1834. sound.SoundId = "rbxassetid://" .. ColTex2.Text
  1835. end)
  1836. while true do
  1837. if Playing then
  1838. mesh.Scale = Vector3.new(0.71, 0.71, 0.71)
  1839. wait(1.0E-6)
  1840. mesh.Scale = Vector3.new(0.709, 0.709, 0.709)
  1841. wait(1.0E-6)
  1842. mesh.Scale = Vector3.new(0.708, 0.708, 0.708)
  1843. wait(1.0E-6)
  1844. mesh.Scale = Vector3.new(0.707, 0.707, 0.707)
  1845. wait(1.0E-6)
  1846. mesh.Scale = Vector3.new(0.706, 0.706, 0.706)
  1847. wait(1.0E-6)
  1848. mesh.Scale = Vector3.new(0.705, 0.705, 0.705)
  1849. wait(1.0E-6)
  1850. mesh.Scale = Vector3.new(0.704, 0.704, 0.704)
  1851. wait(1.0E-6)
  1852. mesh.Scale = Vector3.new(0.703, 0.703, 0.703)
  1853. wait(1.0E-6)
  1854. mesh.Scale = Vector3.new(0.702, 0.702, 0.702)
  1855. wait(1.0E-6)
  1856. mesh.Scale = Vector3.new(0.701, 0.701, 0.701)
  1857. wait(1.0E-6)
  1858. mesh.Scale = Vector3.new(0.7, 0.7, 0.7)
  1859. end
  1860. wait(0.2)
  1861. end
Add Comment
Please, Sign In to add comment