Advertisement
GodOfDuckz

ColorBlind

Jun 4th, 2018
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.21 KB | None | 0 0
  1. -----------------------
  2. --[[ Name : Colorblind]]--
  3. -------------------------------------------------------
  4. game:GetService("StarterGui"):SetCore("SendNotification", {
  5. Title = "Colorblind";
  6. Text = "Edit By boss_kiddos.";
  7. })
  8.  
  9.  
  10. game:GetService("StarterGui"):SetCore("SendNotification", {
  11. Title = "Creator Credits";
  12. Text = "Credits to makhail7/Creterisk";
  13. })
  14.  
  15.  
  16. --The reality of my life isn't real but a Universe -makhail07
  17. wait()
  18. local plr = game:service'Players'.LocalPlayer
  19. print('Local User is '..plr.Name)
  20. local char = plr.Character
  21. local hum = char.Humanoid
  22. local hed = char.Head
  23. local root = char.HumanoidRootPart
  24. local rootj = root.RootJoint
  25. local tors = char.Torso
  26. local ra = char["Right Arm"]
  27. local la = char["Left Arm"]
  28. local rl = char["Right Leg"]
  29. local ll = char["Left Leg"]
  30. local neck = tors["Neck"]
  31. local mouse = plr:GetMouse()
  32. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  33. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  34. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  35. local maincolor = BrickColor.new("Institutional white")
  36.  
  37. -------------------------------------------------------
  38. --Start Good Stuff--
  39. -------------------------------------------------------
  40. cam = game.Workspace.CurrentCamera
  41. CF = CFrame.new
  42. angles = CFrame.Angles
  43. attack = false
  44. Euler = CFrame.fromEulerAnglesXYZ
  45. Rad = math.rad
  46. IT = Instance.new
  47. BrickC = BrickColor.new
  48. Cos = math.cos
  49. Acos = math.acos
  50. Sin = math.sin
  51. Asin = math.asin
  52. Abs = math.abs
  53. Mrandom = math.random
  54. Floor = math.floor
  55. -------------------------------------------------------
  56. --End Good Stuff--
  57. -------------------------------------------------------
  58. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  59. RSH, LSH = nil, nil
  60. RW = Instance.new("Weld")
  61. LW = Instance.new("Weld")
  62. RH = tors["Right Hip"]
  63. LH = tors["Left Hip"]
  64. RSH = tors["Right Shoulder"]
  65. LSH = tors["Left Shoulder"]
  66. RSH.Parent = nil
  67. LSH.Parent = nil
  68. RW.Name = "RW"
  69. RW.Part0 = tors
  70. RW.C0 = CF(1.5, 0.5, 0)
  71. RW.C1 = CF(0, 0.5, 0)
  72. RW.Part1 = ra
  73. RW.Parent = tors
  74. LW.Name = "LW"
  75. LW.Part0 = tors
  76. LW.C0 = CF(-1.5, 0.5, 0)
  77. LW.C1 = CF(0, 0.5, 0)
  78. LW.Part1 = la
  79. LW.Parent = tors
  80. Effects = {}
  81. -------------------------------------------------------
  82. --Start HeartBeat--
  83. -------------------------------------------------------
  84. ArtificialHB = Instance.new("BindableEvent", script)
  85. ArtificialHB.Name = "Heartbeat"
  86. script:WaitForChild("Heartbeat")
  87.  
  88. frame = 1 / 60
  89. tf = 0
  90. allowframeloss = false
  91. tossremainder = false
  92.  
  93.  
  94. lastframe = tick()
  95. script.Heartbeat:Fire()
  96.  
  97.  
  98. game:GetService("RunService").Heartbeat:connect(function(s, p)
  99. tf = tf + s
  100. if tf >= frame then
  101. if allowframeloss then
  102. script.Heartbeat:Fire()
  103. lastframe = tick()
  104. else
  105. for i = 1, math.floor(tf / frame) do
  106. script.Heartbeat:Fire()
  107. end
  108. lastframe = tick()
  109. end
  110. if tossremainder then
  111. tf = 0
  112. else
  113. tf = tf - frame * math.floor(tf / frame)
  114. end
  115. end
  116. end)
  117. -------------------------------------------------------
  118. --End HeartBeat--
  119. -------------------------------------------------------
  120.  
  121. -------------------------------------------------------
  122. --Start Important Functions--
  123. -------------------------------------------------------
  124. function swait(num)
  125. if num == 0 or num == nil then
  126. game:service("RunService").Stepped:wait(0)
  127. else
  128. for i = 0, num do
  129. game:service("RunService").Stepped:wait(0)
  130. end
  131. end
  132. end
  133. function thread(f)
  134. coroutine.resume(coroutine.create(f))
  135. end
  136. function clerp(a, b, t)
  137. local qa = {
  138. QuaternionFromCFrame(a)
  139. }
  140. local qb = {
  141. QuaternionFromCFrame(b)
  142. }
  143. local ax, ay, az = a.x, a.y, a.z
  144. local bx, by, bz = b.x, b.y, b.z
  145. local _t = 1 - t
  146. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  147. end
  148. function QuaternionFromCFrame(cf)
  149. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  150. local trace = m00 + m11 + m22
  151. if trace > 0 then
  152. local s = math.sqrt(1 + trace)
  153. local recip = 0.5 / s
  154. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  155. else
  156. local i = 0
  157. if m00 < m11 then
  158. i = 1
  159. end
  160. if m22 > (i == 0 and m00 or m11) then
  161. i = 2
  162. end
  163. if i == 0 then
  164. local s = math.sqrt(m00 - m11 - m22 + 1)
  165. local recip = 0.5 / s
  166. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  167. elseif i == 1 then
  168. local s = math.sqrt(m11 - m22 - m00 + 1)
  169. local recip = 0.5 / s
  170. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  171. elseif i == 2 then
  172. local s = math.sqrt(m22 - m00 - m11 + 1)
  173. local recip = 0.5 / s
  174. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  175. end
  176. end
  177. end
  178. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  179. local xs, ys, zs = x + x, y + y, z + z
  180. local wx, wy, wz = w * xs, w * ys, w * zs
  181. local xx = x * xs
  182. local xy = x * ys
  183. local xz = x * zs
  184. local yy = y * ys
  185. local yz = y * zs
  186. local zz = z * zs
  187. 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))
  188. end
  189. function QuaternionSlerp(a, b, t)
  190. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  191. local startInterp, finishInterp
  192. if cosTheta >= 1.0E-4 then
  193. if 1 - cosTheta > 1.0E-4 then
  194. local theta = math.acos(cosTheta)
  195. local invSinTheta = 1 / Sin(theta)
  196. startInterp = Sin((1 - t) * theta) * invSinTheta
  197. finishInterp = Sin(t * theta) * invSinTheta
  198. else
  199. startInterp = 1 - t
  200. finishInterp = t
  201. end
  202. elseif 1 + cosTheta > 1.0E-4 then
  203. local theta = math.acos(-cosTheta)
  204. local invSinTheta = 1 / Sin(theta)
  205. startInterp = Sin((t - 1) * theta) * invSinTheta
  206. finishInterp = Sin(t * theta) * invSinTheta
  207. else
  208. startInterp = t - 1
  209. finishInterp = t
  210. end
  211. 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
  212. end
  213. function rayCast(Position, Direction, Range, Ignore)
  214. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  215. end
  216. local RbxUtility = LoadLibrary("RbxUtility")
  217. local Create = RbxUtility.Create
  218.  
  219. -------------------------------------------------------
  220. --Start Health--
  221. -------------------------------------------------------
  222. local pl = game:service'Players'.LocalPlayer
  223. local chara = pl.Character
  224. local hum = chara:FindFirstChildOfClass("Humanoid")
  225. hum.MaxHealth = 99999999999999999999999999999999999
  226. hum.Health = 99999999999999999999999999999999999
  227.  
  228. -------------------------------------------------------
  229. --Others--
  230. -------------------------------------------------------
  231. chara:WaitForChild"Body Colors"
  232. char["Body Colors"].HeadColor = BrickColor.new("Institutional white")
  233. char["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
  234. char["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
  235. char["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
  236. char["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
  237. char["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
  238.  
  239. ypcall(function()
  240. shirt = Instance.new("Shirt", char)
  241. shirt.Name = "Shirt"
  242. pants = Instance.new("Pants", char)
  243. pants.Name = "Pants"
  244. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=276792537"
  245. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=276792689"
  246. end)
  247. -------------------------------------------------------
  248. --Start Damage Function--
  249. -------------------------------------------------------
  250. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  251. if hit.Parent == nil then
  252. return
  253. end
  254. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  255. for _, v in pairs(hit.Parent:children()) do
  256. if v:IsA("Humanoid") then
  257. h = v
  258. end
  259. end
  260. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  261.  
  262. hit.Parent:FindFirstChild("Head"):BreakJoints()
  263. end
  264.  
  265. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  266. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  267. if hit.Parent.DebounceHit.Value == true then
  268. return
  269. end
  270. end
  271. if insta == true then
  272. hit.Parent:FindFirstChild("Head"):BreakJoints()
  273. end
  274. local c = Create("ObjectValue"){
  275. Name = "creator",
  276. Value = game:service("Players").LocalPlayer,
  277. Parent = h,
  278. }
  279. game:GetService("Debris"):AddItem(c, .5)
  280. if HitSound ~= nil and HitPitch ~= nil then
  281. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  282. end
  283. local Damage = math.random(minim, maxim)
  284. local blocked = false
  285. local block = hit.Parent:findFirstChild("Block")
  286. if block ~= nil then
  287. if block.className == "IntValue" then
  288. if block.Value > 0 then
  289. blocked = true
  290. block.Value = block.Value - 1
  291. print(block.Value)
  292. end
  293. end
  294. end
  295. if blocked == false then
  296. h.Health = h.Health - Damage
  297. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  298. else
  299. h.Health = h.Health - (Damage / 2)
  300. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  301. end
  302. if Type == "Knockdown" then
  303. local hum = hit.Parent.Humanoid
  304. hum.PlatformStand = true
  305. coroutine.resume(coroutine.create(function(HHumanoid)
  306. swait(1)
  307. HHumanoid.PlatformStand = false
  308. end), hum)
  309. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  310. local bodvol = Create("BodyVelocity"){
  311. velocity = angle * knockback,
  312. P = 5000,
  313. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  314. Parent = hit,
  315. }
  316. local rl = Create("BodyAngularVelocity"){
  317. P = 3000,
  318. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  319. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  320. Parent = hit,
  321. }
  322. game:GetService("Debris"):AddItem(bodvol, .5)
  323. game:GetService("Debris"):AddItem(rl, .5)
  324. elseif Type == "Normal" then
  325. local vp = Create("BodyVelocity"){
  326. P = 500,
  327. maxForce = Vector3.new(math.huge, 0, math.huge),
  328. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  329. }
  330. if knockback > 0 then
  331. vp.Parent = hit.Parent.Torso
  332. end
  333. game:GetService("Debris"):AddItem(vp, .5)
  334. elseif Type == "Up" then
  335. local bodyVelocity = Create("BodyVelocity"){
  336. velocity = Vector3.new(0, 20, 0),
  337. P = 5000,
  338. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  339. Parent = hit,
  340. }
  341. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  342. elseif Type == "DarkUp" then
  343. coroutine.resume(coroutine.create(function()
  344. for i = 0, 1, 0.1 do
  345. swait()
  346. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  347. end
  348. end))
  349. local bodyVelocity = Create("BodyVelocity"){
  350. velocity = Vector3.new(0, 20, 0),
  351. P = 5000,
  352. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  353. Parent = hit,
  354. }
  355. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  356. elseif Type == "Snare" then
  357. local bp = Create("BodyPosition"){
  358. P = 2000,
  359. D = 100,
  360. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  361. position = hit.Parent.Torso.Position,
  362. Parent = hit.Parent.Torso,
  363. }
  364. game:GetService("Debris"):AddItem(bp, 1)
  365. elseif Type == "Freeze" then
  366. local BodPos = Create("BodyPosition"){
  367. P = 50000,
  368. D = 1000,
  369. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  370. position = hit.Parent.Torso.Position,
  371. Parent = hit.Parent.Torso,
  372. }
  373. local BodGy = Create("BodyGyro") {
  374. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  375. P = 20e+003,
  376. Parent = hit.Parent.Torso,
  377. cframe = hit.Parent.Torso.CFrame,
  378. }
  379. hit.Parent.Torso.Anchored = true
  380. coroutine.resume(coroutine.create(function(Part)
  381. swait(1.5)
  382. Part.Anchored = false
  383. end), hit.Parent.Torso)
  384. game:GetService("Debris"):AddItem(BodPos, 3)
  385. game:GetService("Debris"):AddItem(BodGy, 3)
  386. end
  387. local debounce = Create("BoolValue"){
  388. Name = "DebounceHit",
  389. Parent = hit.Parent,
  390. Value = true,
  391. }
  392. game:GetService("Debris"):AddItem(debounce, Delay)
  393. c = Create("ObjectValue"){
  394. Name = "creator",
  395. Value = Player,
  396. Parent = h,
  397. }
  398. game:GetService("Debris"):AddItem(c, .5)
  399. end
  400. end
  401. -------------------------------------------------------
  402. --End Damage Function--
  403. -------------------------------------------------------
  404.  
  405. -------------------------------------------------------
  406. --Start Damage Function Customization--
  407. -------------------------------------------------------
  408. function ShowDamage(Pos, Text, Time, Color)
  409. local Rate = (1 / 30)
  410. local Pos = (Pos or Vector3.new(0, 0, 0))
  411. local Text = (Text or "")
  412. local Time = (Time or 2)
  413. local Color = (Color or Color3.new(1, 0, 1))
  414. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  415. EffectPart.Anchored = true
  416. local BillboardGui = Create("BillboardGui"){
  417. Size = UDim2.new(3, 0, 3, 0),
  418. Adornee = EffectPart,
  419. Parent = EffectPart,
  420. }
  421. local TextLabel = Create("TextLabel"){
  422. BackgroundTransparency = 1,
  423. Size = UDim2.new(1, 0, 1, 0),
  424. Text = Text,
  425. Font = "Bodoni",
  426. TextColor3 = Color,
  427. TextScaled = true,
  428. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  429. Parent = BillboardGui,
  430. }
  431. game.Debris:AddItem(EffectPart, (Time))
  432. EffectPart.Parent = game:GetService("Workspace")
  433. delay(0, function()
  434. local Frames = (Time / Rate)
  435. for Frame = 1, Frames do
  436. wait(Rate)
  437. local Percent = (Frame / Frames)
  438. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  439. TextLabel.TextTransparency = Percent
  440. end
  441. if EffectPart and EffectPart.Parent then
  442. EffectPart:Destroy()
  443. end
  444. end)
  445. end
  446. -------------------------------------------------------
  447. --End Damage Function Customization--
  448. -------------------------------------------------------
  449.  
  450. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  451. for _, c in pairs(workspace:children()) do
  452. local hum = c:findFirstChild("Humanoid")
  453. if hum ~= nil then
  454. local head = c:findFirstChild("Head")
  455. if head ~= nil then
  456. local targ = head.Position - Part.Position
  457. local mag = targ.magnitude
  458. if magni >= mag and c.Name ~= plr.Name then
  459. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  460. end
  461. end
  462. end
  463. end
  464. end
  465.  
  466.  
  467. CFuncs = {
  468. Part = {
  469. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  470. local Part = Create("Part")({
  471. Parent = Parent,
  472. Reflectance = Reflectance,
  473. Transparency = Transparency,
  474. CanCollide = false,
  475. Locked = true,
  476. BrickColor = BrickColor.new(tostring(BColor)),
  477. Name = Name,
  478. Size = Size,
  479. Material = Material
  480. })
  481. RemoveOutlines(Part)
  482. return Part
  483. end
  484. },
  485. Mesh = {
  486. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  487. local Msh = Create(Mesh)({
  488. Parent = Part,
  489. Offset = OffSet,
  490. Scale = Scale
  491. })
  492. if Mesh == "SpecialMesh" then
  493. Msh.MeshType = MeshType
  494. Msh.MeshId = MeshId
  495. end
  496. return Msh
  497. end
  498. },
  499. Mesh = {
  500. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  501. local Msh = Create(Mesh)({
  502. Parent = Part,
  503. Offset = OffSet,
  504. Scale = Scale
  505. })
  506. if Mesh == "SpecialMesh" then
  507. Msh.MeshType = MeshType
  508. Msh.MeshId = MeshId
  509. end
  510. return Msh
  511. end
  512. },
  513. Weld = {
  514. Create = function(Parent, Part0, Part1, C0, C1)
  515. local Weld = Create("Weld")({
  516. Parent = Parent,
  517. Part0 = Part0,
  518. Part1 = Part1,
  519. C0 = C0,
  520. C1 = C1
  521. })
  522. return Weld
  523. end
  524. },
  525. Sound = {
  526. Create = function(id, par, vol, pit)
  527. coroutine.resume(coroutine.create(function()
  528. local S = Create("Sound")({
  529. Volume = vol,
  530. Pitch = pit or 1,
  531. SoundId = id,
  532. Parent = par or workspace
  533. })
  534. wait()
  535. S:play()
  536. game:GetService("Debris"):AddItem(S, 6)
  537. end))
  538. end
  539. },
  540. ParticleEmitter = {
  541. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  542. local fp = Create("ParticleEmitter")({
  543. Parent = Parent,
  544. Color = ColorSequence.new(Color1, Color2),
  545. LightEmission = LightEmission,
  546. Size = Size,
  547. Texture = Texture,
  548. Transparency = Transparency,
  549. ZOffset = ZOffset,
  550. Acceleration = Accel,
  551. Drag = Drag,
  552. LockedToPart = LockedToPart,
  553. VelocityInheritance = VelocityInheritance,
  554. EmissionDirection = EmissionDirection,
  555. Enabled = Enabled,
  556. Lifetime = LifeTime,
  557. Rate = Rate,
  558. Rotation = Rotation,
  559. RotSpeed = RotSpeed,
  560. Speed = Speed,
  561. VelocitySpread = VelocitySpread
  562. })
  563. return fp
  564. end
  565. }
  566. }
  567. function RemoveOutlines(part)
  568. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  569. end
  570. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  571. local Part = Create("Part")({
  572. formFactor = FormFactor,
  573. Parent = Parent,
  574. Reflectance = Reflectance,
  575. Transparency = Transparency,
  576. CanCollide = false,
  577. Locked = true,
  578. BrickColor = BrickColor.new(tostring(BColor)),
  579. Name = Name,
  580. Size = Size,
  581. Material = Material
  582. })
  583. RemoveOutlines(Part)
  584. return Part
  585. end
  586. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  587. local Msh = Create(Mesh)({
  588. Parent = Part,
  589. Offset = OffSet,
  590. Scale = Scale
  591. })
  592. if Mesh == "SpecialMesh" then
  593. Msh.MeshType = MeshType
  594. Msh.MeshId = MeshId
  595. end
  596. return Msh
  597. end
  598. function CreateWeld(Parent, Part0, Part1, C0, C1)
  599. local Weld = Create("Weld")({
  600. Parent = Parent,
  601. Part0 = Part0,
  602. Part1 = Part1,
  603. C0 = C0,
  604. C1 = C1
  605. })
  606. return Weld
  607. end
  608.  
  609.  
  610. -------------------------------------------------------
  611. --Start Effect Function--
  612. -------------------------------------------------------
  613. EffectModel = Instance.new("Model", char)
  614. Effects = {
  615. Block = {
  616. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  617. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  618. prt.Anchored = true
  619. prt.CFrame = cframe
  620. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  621. game:GetService("Debris"):AddItem(prt, 10)
  622. if Type == 1 or Type == nil then
  623. table.insert(Effects, {
  624. prt,
  625. "Block1",
  626. delay,
  627. x3,
  628. y3,
  629. z3,
  630. msh
  631. })
  632. elseif Type == 2 then
  633. table.insert(Effects, {
  634. prt,
  635. "Block2",
  636. delay,
  637. x3,
  638. y3,
  639. z3,
  640. msh
  641. })
  642. else
  643. table.insert(Effects, {
  644. prt,
  645. "Block3",
  646. delay,
  647. x3,
  648. y3,
  649. z3,
  650. msh
  651. })
  652. end
  653. end
  654. },
  655. Sphere = {
  656. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  657. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  658. prt.Anchored = true
  659. prt.CFrame = cframe
  660. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  661. game:GetService("Debris"):AddItem(prt, 10)
  662. table.insert(Effects, {
  663. prt,
  664. "Cylinder",
  665. delay,
  666. x3,
  667. y3,
  668. z3,
  669. msh
  670. })
  671. end
  672. },
  673. Cylinder = {
  674. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  675. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  676. prt.Anchored = true
  677. prt.CFrame = cframe
  678. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  679. game:GetService("Debris"):AddItem(prt, 10)
  680. table.insert(Effects, {
  681. prt,
  682. "Cylinder",
  683. delay,
  684. x3,
  685. y3,
  686. z3,
  687. msh
  688. })
  689. end
  690. },
  691. Wave = {
  692. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  693. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  694. prt.Anchored = true
  695. prt.CFrame = cframe
  696. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  697. game:GetService("Debris"):AddItem(prt, 10)
  698. table.insert(Effects, {
  699. prt,
  700. "Cylinder",
  701. delay,
  702. x3 / 60,
  703. y3 / 60,
  704. z3 / 60,
  705. msh
  706. })
  707. end
  708. },
  709. Ring = {
  710. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  711. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  712. prt.Anchored = true
  713. prt.CFrame = cframe
  714. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  715. game:GetService("Debris"):AddItem(prt, 10)
  716. table.insert(Effects, {
  717. prt,
  718. "Cylinder",
  719. delay,
  720. x3,
  721. y3,
  722. z3,
  723. msh
  724. })
  725. end
  726. },
  727. Break = {
  728. Create = function(brickcolor, cframe, x1, y1, z1)
  729. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  730. prt.Anchored = true
  731. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  732. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  733. local num = math.random(10, 50) / 1000
  734. game:GetService("Debris"):AddItem(prt, 10)
  735. table.insert(Effects, {
  736. prt,
  737. "Shatter",
  738. num,
  739. prt.CFrame,
  740. math.random() - math.random(),
  741. 0,
  742. math.random(50, 100) / 100
  743. })
  744. end
  745. },
  746. Spiral = {
  747. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  748. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  749. prt.Anchored = true
  750. prt.CFrame = cframe
  751. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  752. game:GetService("Debris"):AddItem(prt, 10)
  753. table.insert(Effects, {
  754. prt,
  755. "Cylinder",
  756. delay,
  757. x3,
  758. y3,
  759. z3,
  760. msh
  761. })
  762. end
  763. },
  764. Push = {
  765. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  766. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  767. prt.Anchored = true
  768. prt.CFrame = cframe
  769. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  770. game:GetService("Debris"):AddItem(prt, 10)
  771. table.insert(Effects, {
  772. prt,
  773. "Cylinder",
  774. delay,
  775. x3,
  776. y3,
  777. z3,
  778. msh
  779. })
  780. end
  781. }
  782. }
  783. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  784. local fp = IT("Part")
  785. fp.formFactor = formfactor
  786. fp.Parent = parent
  787. fp.Reflectance = reflectance
  788. fp.Transparency = transparency
  789. fp.CanCollide = false
  790. fp.Locked = true
  791. fp.BrickColor = brickcolor
  792. fp.Name = name
  793. fp.Size = size
  794. fp.Position = tors.Position
  795. RemoveOutlines(fp)
  796. fp.Material = "SmoothPlastic"
  797. fp:BreakJoints()
  798. return fp
  799. end
  800.  
  801. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  802. local mesh = IT(Mesh)
  803. mesh.Parent = part
  804. if Mesh == "SpecialMesh" then
  805. mesh.MeshType = meshtype
  806. if meshid ~= "nil" then
  807. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  808. end
  809. end
  810. mesh.Offset = offset
  811. mesh.Scale = scale
  812. return mesh
  813. end
  814.  
  815. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  816. local type = type
  817. local rng = Instance.new("Part", char)
  818. rng.Anchored = true
  819. rng.BrickColor = color
  820. rng.CanCollide = false
  821. rng.FormFactor = 3
  822. rng.Name = "Ring"
  823. rng.Material = "Neon"
  824. rng.Size = Vector3.new(1, 1, 1)
  825. rng.Transparency = 0
  826. rng.TopSurface = 0
  827. rng.BottomSurface = 0
  828. rng.CFrame = pos
  829. local rngm = Instance.new("SpecialMesh", rng)
  830. rngm.MeshType = MType
  831. rngm.Scale = scale
  832. local scaler2 = 1
  833. if type == "Add" then
  834. scaler2 = 1 * value
  835. elseif type == "Divide" then
  836. scaler2 = 1 / value
  837. end
  838. coroutine.resume(coroutine.create(function()
  839. for i = 0, 10 / bonuspeed, 0.1 do
  840. swait()
  841. if type == "Add" then
  842. scaler2 = scaler2 - 0.01 * value / bonuspeed
  843. elseif type == "Divide" then
  844. scaler2 = scaler2 - 0.01 / value * bonuspeed
  845. end
  846. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  847. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  848. end
  849. rng:Destroy()
  850. end))
  851. end
  852.  
  853. function Eviscerate(dude)
  854. if dude.Name ~= char then
  855. local bgf = IT("BodyGyro", dude.Head)
  856. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  857. local val = IT("BoolValue", dude)
  858. val.Name = "IsHit"
  859. local ds = coroutine.wrap(function()
  860. dude:WaitForChild("Head"):BreakJoints()
  861. wait(0.5)
  862. target = nil
  863. coroutine.resume(coroutine.create(function()
  864. for i, v in pairs(dude:GetChildren()) do
  865. if v:IsA("Accessory") then
  866. v:Destroy()
  867. end
  868. if v:IsA("Humanoid") then
  869. v:Destroy()
  870. end
  871. if v:IsA("CharacterMesh") then
  872. v:Destroy()
  873. end
  874. if v:IsA("Model") then
  875. v:Destroy()
  876. end
  877. if v:IsA("Part") or v:IsA("MeshPart") then
  878. for x, o in pairs(v:GetChildren()) do
  879. if o:IsA("Decal") then
  880. o:Destroy()
  881. end
  882. end
  883. coroutine.resume(coroutine.create(function()
  884. v.Material = "Neon"
  885. v.CanCollide = false
  886. local PartEmmit1 = IT("ParticleEmitter", v)
  887. PartEmmit1.LightEmission = 1
  888. PartEmmit1.Texture = "rbxassetid://284205403"
  889. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  890. PartEmmit1.Rate = 150
  891. PartEmmit1.Lifetime = NumberRange.new(1)
  892. PartEmmit1.Size = NumberSequence.new({
  893. NumberSequenceKeypoint.new(0, 0.75, 0),
  894. NumberSequenceKeypoint.new(1, 0, 0)
  895. })
  896. PartEmmit1.Transparency = NumberSequence.new({
  897. NumberSequenceKeypoint.new(0, 0, 0),
  898. NumberSequenceKeypoint.new(1, 1, 0)
  899. })
  900. PartEmmit1.Speed = NumberRange.new(0, 0)
  901. PartEmmit1.VelocitySpread = 30000
  902. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  903. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  904. local BodPoss = IT("BodyPosition", v)
  905. BodPoss.P = 3000
  906. BodPoss.D = 1000
  907. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  908. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  909. v.Color = maincolor.Color
  910. coroutine.resume(coroutine.create(function()
  911. for i = 0, 49 do
  912. swait(1)
  913. v.Transparency = v.Transparency + 0.08
  914. end
  915. wait(0.5)
  916. PartEmmit1.Enabled = false
  917. wait(3)
  918. v:Destroy()
  919. dude:Destroy()
  920. end))
  921. end))
  922. end
  923. end
  924. end))
  925. end)
  926. ds()
  927. end
  928. end
  929.  
  930. function FindNearestHead(Position, Distance, SinglePlayer)
  931. if SinglePlayer then
  932. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  933. end
  934. local List = {}
  935. for i, v in pairs(workspace:GetChildren()) do
  936. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  937. table.insert(List, v)
  938. end
  939. end
  940. return List
  941. end
  942.  
  943. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  944. local type = type
  945. local rng = Instance.new("Part", char)
  946. rng.Anchored = true
  947. rng.BrickColor = color
  948. rng.CanCollide = false
  949. rng.FormFactor = 3
  950. rng.Name = "Ring"
  951. rng.Material = "Neon"
  952. rng.Size = Vector3.new(1, 1, 1)
  953. rng.Transparency = 0
  954. rng.TopSurface = 0
  955. rng.BottomSurface = 0
  956. rng.CFrame = pos
  957. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  958. local rngm = Instance.new("SpecialMesh", rng)
  959. rngm.MeshType = MType
  960. rngm.Scale = Vector3.new(x1, y1, z1)
  961. local scaler2 = 1
  962. local speeder = FastSpeed
  963. if type == "Add" then
  964. scaler2 = 1 * value
  965. elseif type == "Divide" then
  966. scaler2 = 1 / value
  967. end
  968. coroutine.resume(coroutine.create(function()
  969. for i = 0, 10 / bonuspeed, 0.1 do
  970. swait()
  971. if type == "Add" then
  972. scaler2 = scaler2 - 0.01 * value / bonuspeed
  973. elseif type == "Divide" then
  974. scaler2 = scaler2 - 0.01 / value * bonuspeed
  975. end
  976. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  977. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  978. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  979. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  980. end
  981. rng:Destroy()
  982. end))
  983. end
  984.  
  985. function SoulSteal(dude)
  986. if dude.Name ~= char then
  987. local bgf = IT("BodyGyro", dude.Head)
  988. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  989. local val = IT("BoolValue", dude)
  990. val.Name = "IsHit"
  991. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  992. local soulst = coroutine.wrap(function()
  993. local soul = Instance.new("Part",dude)
  994. soul.Size = Vector3.new(1,1,1)
  995. soul.CanCollide = false
  996. soul.Anchored = false
  997. soul.Position = torso.Position
  998. soul.Transparency = 1
  999. local PartEmmit1 = IT("ParticleEmitter", soul)
  1000. PartEmmit1.LightEmission = 1
  1001. PartEmmit1.Texture = "rbxassetid://569507414"
  1002. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1003. PartEmmit1.Rate = 250
  1004. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1005. PartEmmit1.Size = NumberSequence.new({
  1006. NumberSequenceKeypoint.new(0, 1, 0),
  1007. NumberSequenceKeypoint.new(1, 0, 0)
  1008. })
  1009. PartEmmit1.Transparency = NumberSequence.new({
  1010. NumberSequenceKeypoint.new(0, 0, 0),
  1011. NumberSequenceKeypoint.new(1, 1, 0)
  1012. })
  1013. PartEmmit1.Speed = NumberRange.new(0, 0)
  1014. PartEmmit1.VelocitySpread = 30000
  1015. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1016. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1017. local BodPoss = IT("BodyPosition", soul)
  1018. BodPoss.P = 3000
  1019. BodPoss.D = 1000
  1020. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1021. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1022. wait(1.6)
  1023. soul.Touched:connect(function(hit)
  1024. if hit.Parent == char then
  1025. soul:Destroy()
  1026. end
  1027. end)
  1028. wait(1.2)
  1029. while soul do
  1030. swait()
  1031. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1032. BodPoss.Position = tors.Position
  1033. end
  1034. end)
  1035. soulst()
  1036. end
  1037. end
  1038. function FaceMouse()
  1039. local Cam = workspace.CurrentCamera
  1040. return {
  1041. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1042. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1043. }
  1044. end
  1045. -------------------------------------------------------
  1046. --End Effect Function--
  1047. -------------------------------------------------------
  1048. function Cso(ID, PARENT, VOLUME, PITCH)
  1049. local NSound = nil
  1050. coroutine.resume(coroutine.create(function()
  1051. NSound = IT("Sound", PARENT)
  1052. NSound.Volume = VOLUME
  1053. NSound.Pitch = PITCH
  1054. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1055. swait()
  1056. NSound:play()
  1057. game:GetService("Debris"):AddItem(NSound, 10)
  1058. end))
  1059. return NSound
  1060. end
  1061. function CameraEnshaking(Length, Intensity)
  1062. coroutine.resume(coroutine.create(function()
  1063. local intensity = 1 * Intensity
  1064. local rotM = 0.01 * Intensity
  1065. for i = 0, Length, 0.1 do
  1066. swait()
  1067. intensity = intensity - 0.05 * Intensity / Length
  1068. rotM = rotM - 5.0E-4 * Intensity / Length
  1069. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1070. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1071. end
  1072. hum.CameraOffset = Vector3.new(0, 0, 0)
  1073. end))
  1074. end
  1075. -------------------------------------------------------
  1076. --End Important Functions--
  1077. -------------------------------------------------------
  1078.  
  1079.  
  1080. -------------------------------------------------------
  1081. --Start Customization--
  1082. -------------------------------------------------------
  1083. local Player_Size = 1
  1084. if Player_Size ~= 1 then
  1085. root.Size = root.Size * Player_Size
  1086. tors.Size = tors.Size * Player_Size
  1087. hed.Size = hed.Size * Player_Size
  1088. ra.Size = ra.Size * Player_Size
  1089. la.Size = la.Size * Player_Size
  1090. rl.Size = rl.Size * Player_Size
  1091. ll.Size = ll.Size * Player_Size
  1092. ----------------------------------------------------------------------------------
  1093. rootj.Parent = root
  1094. neck.Parent = tors
  1095. RW.Parent = tors
  1096. LW.Parent = tors
  1097. RH.Parent = tors
  1098. LH.Parent = tors
  1099. ----------------------------------------------------------------------------------
  1100. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1101. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1102. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1103. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1104. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1105. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1106. ----------------------------------------------------------------------------------
  1107. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1108. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1109. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1110. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1111. --hat.Parent = Character
  1112. end
  1113. ----------------------------------------------------------------------------------
  1114. local SONG = 936414685
  1115. local SONG2 = 0
  1116. local Music = Instance.new("Sound",tors)
  1117. Music.Volume = 2.5
  1118. Music.Looped = true
  1119. Music.Pitch = 1 --Pitcher
  1120. ----------------------------------------------------------------------------------
  1121. local equipped = false
  1122. local idle = 0
  1123. local change = 1
  1124. local val = 0
  1125. local toim = 0
  1126. local idleanim = 0.4
  1127. local sine = 0
  1128. local Sit = 1
  1129. ----------------------------------------------------------------------------------
  1130. hum.WalkSpeed = 8
  1131. hum.JumpPower = 57
  1132. hum.Animator.Parent = nil
  1133. ----------------------------------------------------------------------------------
  1134. local r = 255
  1135. local g = 0
  1136. local b = 0
  1137. coroutine.resume(coroutine.create(function()
  1138. while wait() do
  1139. for i = 0, 50.8 do
  1140. swait()
  1141. g = g + 5
  1142. end
  1143. for i = 0, 50.8 do
  1144. swait()
  1145. r = r - 5
  1146. end
  1147. for i = 0, 50.8 do
  1148. swait()
  1149. b = b + 5
  1150. end
  1151. for i = 0, 50.8 do
  1152. swait()
  1153. g = g - 5
  1154. end
  1155. for i = 0, 50.8 do
  1156. swait()
  1157. r = r + 5
  1158. end
  1159. for i = 0, 50.8 do
  1160. swait()
  1161. b = b - 5
  1162. end
  1163. end
  1164. end))
  1165. ----------------------------------------------------------------------------------
  1166. local naeeym2 = IT("BillboardGui",char)
  1167. naeeym2.AlwaysOnTop = true
  1168. naeeym2.Size = UDim2.new(5,35,2,15)
  1169. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1170. naeeym2.MaxDistance = 75
  1171. naeeym2.Adornee = hed
  1172. naeeym2.Name = "Name"
  1173. local tecks2 = IT("TextLabel",naeeym2)
  1174. tecks2.BackgroundTransparency = 1
  1175. tecks2.TextScaled = true
  1176. tecks2.BorderSizePixel = 0
  1177. tecks2.Text = "I Am The Color-Blind."
  1178. --tecks2.Font = "Cartoon"
  1179. tecks2.TextSize = 30
  1180. tecks2.TextStrokeTransparency = 0
  1181. tecks2.TextColor3 = Color3.new(1,1,1)
  1182. tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  1183. tecks2.Size = UDim2.new(1,0,0.5,0)
  1184. tecks2.Parent = naeeym2
  1185. hed.face.Texture = "rbxassetid://33752579"
  1186. ----------------------------------------------------------------------------------
  1187. Reaper = IT("Model")
  1188. Reaper.Parent = char
  1189. Reaper.Name = "Reaper"
  1190. RHe = IT("Part")
  1191. RHe.Parent = Reaper
  1192. RHe.BrickColor = BrickC("Really black")
  1193. RHe.Locked = true
  1194. RHe.CanCollide = false
  1195. RHe.Transparency = 0
  1196. PMesh = IT("SpecialMesh")
  1197. RHe.formFactor = "Symmetric"
  1198. PMesh.MeshType = "FileMesh"
  1199. PMesh.MeshId = "rbxassetid://1374148"
  1200. PMesh.TextureId = "rbxassetid://185703978"
  1201. PMesh.Scale = Vector3.new(1, 1, 1)
  1202. PMesh.Parent = RHe
  1203. local RWeld = IT("Weld")
  1204. RWeld.Parent = RHe
  1205. RWeld.Part0 = RHe
  1206. RWeld.Part1 = hed
  1207. RWeld.C0 = CF(0, -.7, 0) * angles(0, 0, 0)
  1208. -------------------------------------------------------
  1209. --End Customization--
  1210. -------------------------------------------------------
  1211.  
  1212.  
  1213. -------------------------------------------------------
  1214. --Start Attacks N Stuff--
  1215. -------------------------------------------------------
  1216.  
  1217. -------------------------------------------------------
  1218. --End Attacks N Stuff--
  1219. -------------------------------------------------------
  1220. mouse.KeyDown:connect(function(key)
  1221. if string.byte(key) == 48 then
  1222. Swing = 2
  1223. hum.WalkSpeed = 38.82
  1224. end
  1225. end)
  1226. mouse.KeyUp:connect(function(key)
  1227. if string.byte(key) == 48 then
  1228. Swing = 1
  1229. hum.WalkSpeed = 35
  1230. end
  1231. end)
  1232.  
  1233.  
  1234.  
  1235. -------------------------------------------------------
  1236. --Start Trails--
  1237. -------------------------------------------------------
  1238. local Player = game:GetService("Players").LocalPlayer
  1239. repeat
  1240. wait()
  1241. until Player.Character
  1242. local Character = Player.Character
  1243. TrailSettings = {
  1244. Lifetime = 2,
  1245. Texture = "http://www.roblox.com/asset/?id=632021011",
  1246. Color1 = ColorSequence.new(BrickColor.new("White").Color, BrickColor.new("White").Color),
  1247. Color2 = ColorSequence.new(BrickColor.new("White").Color, BrickColor.new("White").Color),
  1248. AllBody = true,
  1249. UpperBodyOnly = false,
  1250. LowerBodyOnly = false,
  1251. Accessories = false,
  1252. Extras = true,
  1253. R15 = false,
  1254. R15Parts = {"UpperTorso", "LowerTorso"}
  1255. }
  1256. local Trail
  1257. function UpperBody()
  1258. if TrailSettings.R15 == false then
  1259. A0 = Instance.new("Attachment", Character.Torso)
  1260. A1 = Instance.new("Attachment", Character.Head)
  1261. A2 = Instance.new("Attachment", Character["Right Arm"])
  1262. A3 = Instance.new("Attachment", Character["Left Arm"])
  1263. Trail = Instance.new("Trail", Character)
  1264. Trail.Attachment0 = A0
  1265. Trail.Attachment1 = A1
  1266. Trail.Texture = TrailSettings.Texture
  1267. Trail.Color = TrailSettings.Color1
  1268. Trail.Lifetime = TrailSettings.Lifetime
  1269. local Trail2 = Trail:Clone()
  1270. Trail2.Parent = Character
  1271. Trail2.Attachment1 = A2
  1272. local Trail3 = Trail:Clone()
  1273. Trail3.Parent = Character
  1274. Trail3.Attachment1 = A3
  1275. local Trail6 = Trail:Clone()
  1276. Trail6.Parent = Character
  1277. Trail6.Attachment0 = A1
  1278. Trail6.Attachment1 = A2
  1279. local Trail7 = Trail:Clone()
  1280. Trail7.Parent = Character
  1281. Trail7.Attachment0 = A1
  1282. Trail7.Attachment1 = A3
  1283. else
  1284. A0 = Instance.new("Attachment", Character[TrailSettings.R15Parts[1]])
  1285. A0R = Instance.new("Attachment", Character[TrailSettings.R15Parts[2]])
  1286. A1 = Instance.new("Attachment", Character.Head)
  1287. A2 = Instance.new("Attachment", Character.RightUpperArm)
  1288. A2R = Instance.new("Attachment", Character.RightLowerArm)
  1289. A3 = Instance.new("Attachment", Character.LeftUpperArm)
  1290. A3R = Instance.new("Attachment", Character.LeftLowerArm)
  1291. Trail = Instance.new("Trail", Character)
  1292. Trail.Attachment0 = A0
  1293. Trail.Attachment1 = A1
  1294. Trail.Texture = TrailSettings.Texture
  1295. Trail.Color = TrailSettings.Color1
  1296. Trail.Lifetime = TrailSettings.Lifetime
  1297. local Trail2 = Trail:Clone()
  1298. Trail2.Parent = Character
  1299. Trail2.Attachment1 = A2
  1300. local Trail3 = Trail:Clone()
  1301. Trail3.Parent = Character
  1302. Trail3.Attachment1 = A3
  1303. local Trail6 = Trail:Clone()
  1304. Trail6.Parent = Character
  1305. Trail6.Attachment0 = A1
  1306. Trail6.Attachment1 = A2
  1307. local Trail7 = Trail:Clone()
  1308. Trail7.Parent = Character
  1309. Trail7.Attachment0 = A1
  1310. Trail7.Attachment1 = A3
  1311. local Trail1R = Trail:Clone()
  1312. Trail1R.Parent = Character
  1313. Trail1R.Attachment1 = A2R
  1314. local Trail2R = Trail:Clone()
  1315. Trail2R.Parent = Character
  1316. Trail2R.Attachment1 = A3R
  1317. local Trail6R = Trail:Clone()
  1318. Trail6.Parent = Character
  1319. Trail6.Attachment0 = A1
  1320. Trail6.Attachment1 = A2R
  1321. local Trail7R = Trail:Clone()
  1322. Trail7.Parent = Character
  1323. Trail7.Attachment0 = A1
  1324. Trail7.Attachment1 = A3R
  1325. end
  1326. end
  1327. function LowerBody()
  1328. if TrailSettings.R15 == false then
  1329. A4 = Instance.new("Attachment", Character["Right Leg"])
  1330. A5 = Instance.new("Attachment", Character["Left Leg"])
  1331. local Trail4 = Trail:Clone()
  1332. Trail4.Parent = Character
  1333. Trail4.Attachment1 = A4
  1334. local Trail5 = Trail:Clone()
  1335. Trail5.Parent = Character
  1336. Trail5.Attachment1 = A5
  1337. local Trail8 = Trail:Clone()
  1338. Trail8.Parent = Character
  1339. Trail8.Attachment0 = A2
  1340. Trail8.Attachment1 = A4
  1341. Trail8.Color = TrailSettings.Color2
  1342. local Trail9 = Trail:Clone()
  1343. Trail9.Parent = Character
  1344. Trail9.Attachment0 = A3
  1345. Trail9.Attachment1 = A5
  1346. Trail9.Color = TrailSettings.Color2
  1347. local FT = Trail:Clone()
  1348. FT.Parent = Character
  1349. FT.Attachment0 = A4
  1350. FT.Attachment1 = A5
  1351. FT.Color = TrailSettings.Color2
  1352. else
  1353. A4 = Instance.new("Attachment", Character.RightLowerLeg)
  1354. A4R = Instance.new("Attachment", Character.RightUpperLeg)
  1355. A5 = Instance.new("Attachment", Character.LeftLowerLeg)
  1356. A5R = Instance.new("Attachment", Character.LeftUpperLeg)
  1357. local Trail4 = Trail:Clone()
  1358. Trail4.Parent = Character
  1359. Trail4.Attachment1 = A4
  1360. local Trail5 = Trail:Clone()
  1361. Trail5.Parent = Character
  1362. Trail5.Attachment1 = A5
  1363. local Trail8 = Trail:Clone()
  1364. Trail8.Parent = Character
  1365. Trail8.Attachment0 = A2
  1366. Trail8.Attachment1 = A4
  1367. Trail8.Color = TrailSettings.Color2
  1368. local Trail9 = Trail:Clone()
  1369. Trail9.Parent = Character
  1370. Trail9.Attachment0 = A3
  1371. Trail9.Attachment1 = A5
  1372. Trail9.Color = TrailSettings.Color2
  1373. local FT = Trail:Clone()
  1374. FT.Parent = Character
  1375. FT.Attachment0 = A4
  1376. FT.Attachment1 = A5
  1377. FT.Color = TrailSettings.Color2
  1378. local Trail3R = Trail:Clone()
  1379. Trail3R.Parent = Character
  1380. Trail3R.Attachment1 = A4R
  1381. local Trail4R = Trail:Clone()
  1382. Trail4R.Parent = Character
  1383. Trail4R.Attachment1 = A5R
  1384. local Trail8 = Trail:Clone()
  1385. Trail8.Parent = Character
  1386. Trail8.Attachment0 = A2R
  1387. Trail8.Attachment1 = A4R
  1388. Trail8.Color = TrailSettings.Color2
  1389. local Trail9 = Trail:Clone()
  1390. Trail9.Parent = Character
  1391. Trail9.Attachment0 = A3R
  1392. Trail9.Attachment1 = A5R
  1393. Trail9.Color = TrailSettings.Color2
  1394. local FT2R = Trail:Clone()
  1395. FT2R.Parent = Character
  1396. FT2R.Attachment0 = A4R
  1397. FT2R.Attachment1 = A5R
  1398. FT2R.Color = TrailSettings.Color2
  1399. end
  1400. end
  1401. function AllBody()
  1402. UpperBody()
  1403. LowerBody()
  1404. end
  1405. if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  1406. TrailSettings.UpperBodyOnly = false
  1407. TrailSettings.LowerBodyOnly = false
  1408. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
  1409. TrailSettings.UpperBodyOnly = false
  1410. TrailSettings.LowerBodyOnly = false
  1411. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
  1412. TrailSettings.UpperBodyOnly = false
  1413. TrailSettings.LowerBodyOnly = false
  1414. elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  1415. TrailSettings.AllBody = true
  1416. TrailSettings.UpperBodyOnly = false
  1417. TrailSettings.LowerBodyOnly = false
  1418. end
  1419. if TrailSettings.UpperBodyOnly == true then
  1420. UpperBody()
  1421. print("Called Upper Body Trail")
  1422. elseif TrailSettings.LowerBodyOnly == true then
  1423. LowerBody()
  1424. print("Called Lower Body Trail")
  1425. elseif TrailSettings.AllBody == true then
  1426. AllBody()
  1427. print("Called Full Body Trail")
  1428. end
  1429. if TrailSettings.Accessories == true then
  1430. for Index, Item in pairs(Character:GetChildren()) do
  1431. if Item:IsA("Accessory") then
  1432. local AA = Instance.new("Attachment", Item.Handle)
  1433. local ATrail = Trail:Clone()
  1434. ATrail.Parent = Character
  1435. ATrail.Attachment1 = AA
  1436. end
  1437. end
  1438. end
  1439. if TrailSettings.Extras == true then
  1440. spawn(function()
  1441. repeat
  1442. wait()
  1443. until Trail
  1444. local AB = Instance.new("Attachment", a)
  1445. local ABT = Trail:Clone()
  1446. ABT.Parent = Character
  1447. ABT.Attachment0 = A4
  1448. ABT.Attachment1 = AB
  1449. ABT.Color = TrailSettings.Color2
  1450. local ABT2 = Trail:Clone()
  1451. ABT2.Parent = Character
  1452. ABT2.Attachment0 = A5
  1453. ABT2.Attachment1 = AB
  1454. ABT2.Color = TrailSettings.Color2
  1455. end)
  1456. end
  1457.  
  1458.  
  1459.  
  1460. -------------------------------------------------------
  1461. --Start Particles--
  1462. -------------------------------------------------------
  1463.  
  1464. emitters={}
  1465. for i,v in pairs(char:GetChildren()) do
  1466. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  1467. local emitter = Instance.new("ParticleEmitter",v)
  1468. emitter.LightEmission = 1
  1469. emitter.Transparency = NumberSequence.new(0.95,1)
  1470. emitter.Size = NumberSequence.new(2,5)
  1471. emitter.SpreadAngle = Vector2.new(360,360)
  1472. emitter.Speed = NumberRange.new(1)
  1473. emitter.Lifetime = NumberRange.new(0.75)
  1474. emitter.Texture = "rbxassetid://632021011"
  1475. emitter.Rate = 20
  1476. emitter.Color = ColorSequence.new(Color3.new(3.15,0,0))
  1477. emitter.LockedToPart = true
  1478. table.insert(emitters,emitter)
  1479. end
  1480. end
  1481.  
  1482. -------------------------------------------------------
  1483. --Taunt--
  1484. -------------------------------------------------------
  1485. function Taunt()
  1486. ATTACK = true
  1487. local LAUGH = nil
  1488. coroutine.resume(coroutine.create(function()
  1489. repeat
  1490. Swait()
  1491. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1492. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1493. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1494. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1495. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1496. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1497. until LAUGH ~= nil
  1498. repeat
  1499. Swait()
  1500. LAUGH.Parent = Head
  1501. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1502. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/55)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1503. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/55), -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1504. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/55), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1505. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1506. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1507. until LAUGH.Playing == false
  1508. ATTACK = false
  1509. end))
  1510. wait(0.1)
  1511. sick:Stop()
  1512. LAUGH = CreateSound(846221985, Head, 10, 1, false)
  1513. sick:Resume()
  1514. end
  1515.  
  1516. function Stop()
  1517. ATTACK = false
  1518. wait(0.1)
  1519. sick:Stop()
  1520. sick:Resume()
  1521. LAUGH = CreateSound(846221985, Head, 10, 1, false)
  1522. LAUGH:Stop()
  1523. Rooted = false
  1524. ATTACK = false
  1525. end
  1526.  
  1527.  
  1528.  
  1529. -------------------------------------------------------
  1530. --Keys--
  1531. -------------------------------------------------------
  1532. if Key == "t" and ATTACK == false then
  1533. Taunt()
  1534. end
  1535.  
  1536. if Key == "p" and ATTACK == false then
  1537. Stop()
  1538. end
  1539.  
  1540. -------------------------------------------------------
  1541. --Start Animations--
  1542. -------------------------------------------------------
  1543. while true do
  1544. swait()
  1545. sine = sine + change
  1546. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1547. local velderp = root.Velocity.y
  1548. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1549. if equipped == true or equipped == false then
  1550. if attack == false then
  1551. idle = idle + 1
  1552. else
  1553. idle = 0
  1554. end
  1555. tecks2.TextStrokeColor3 = Color3.new(r / 255, g / 255, b / 255)
  1556. if 1 < root.Velocity.y and hitfloor == nil then
  1557. Anim = "Jump"
  1558. if attack == false then
  1559. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  1560. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1561. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1562. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1563. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1564. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1565. end
  1566. elseif -1 > root.Velocity.y and hitfloor == nil then
  1567. Anim = "Fall"
  1568. if attack == false then
  1569. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
  1570. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1571. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  1572. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  1573. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  1574. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  1575. end
  1576. elseif torvel < 1 and hitfloor ~= nil then
  1577. Anim = "Idle"
  1578. change = .5
  1579. if attack == false then
  1580. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.05 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1581. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-4.5 * Sin(sine / 3)), Rad(-4.5 * Sin(sine / 3)), Rad(0)), 0.3)
  1582. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 + 0.1 * Cos(sine / 3)* Player_Size, -.3* Player_Size) * angles(Rad(0), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-5)), 0.15)
  1583. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-87), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1584. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.05 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  1585. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 20* Player_Size), 0* Player_Size) * angles(Rad(-30 * Sin(sine / 10)), Rad(0), Rad(-5 - 4.5 * Sin(sine / 20))), 0.1)
  1586. end
  1587. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1588. Anim = "Walk"
  1589. change = .9
  1590. if attack == false then
  1591. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  1592. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1593. RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1594. LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1595. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(37) * Cos(sine / 7) , Rad(0), Rad(-.6) - ra.RotVelocity.Y / 75), 0.1)
  1596. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(-37) * Cos(sine / 7) , Rad(0) , Rad(.6) + la.RotVelocity.Y / 75), 0.1)
  1597. end
  1598. elseif torvel >= 25 and hitfloor ~= nil then
  1599. Anim = "Sprint"
  1600. change = 1.35
  1601. if attack == false then
  1602. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  1603. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1604. RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1605. LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1606. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  1607. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  1608. end
  1609. end
  1610. end
  1611. Music.SoundId = "rbxassetid://"..SONG
  1612. Music.Looped = true
  1613. Music.Pitch = 1
  1614. Music.Volume = 5
  1615. Music.Parent = tors
  1616. Music:Resume()
  1617. if 0 < #Effects then
  1618. for e = 1, #Effects do
  1619. if Effects[e] ~= nil then
  1620. local Thing = Effects[e]
  1621. if Thing ~= nil then
  1622. local Part = Thing[1]
  1623. local Mode = Thing[2]
  1624. local Delay = Thing[3]
  1625. local IncX = Thing[4]
  1626. local IncY = Thing[5]
  1627. local IncZ = Thing[6]
  1628. if 1 >= Thing[1].Transparency then
  1629. if Thing[2] == "Block1" then
  1630. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1631. local Mesh = Thing[1].Mesh
  1632. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1633. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1634. elseif Thing[2] == "Block2" then
  1635. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1636. local Mesh = Thing[7]
  1637. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1638. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1639. elseif Thing[2] == "Block3" then
  1640. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1641. local Mesh = Thing[7]
  1642. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1643. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1644. elseif Thing[2] == "Cylinder" then
  1645. local Mesh = Thing[1].Mesh
  1646. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1647. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1648. elseif Thing[2] == "Blood" then
  1649. local Mesh = Thing[7]
  1650. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1651. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1652. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1653. elseif Thing[2] == "Elec" then
  1654. local Mesh = Thing[1].Mesh
  1655. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1656. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1657. elseif Thing[2] == "Disappear" then
  1658. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1659. elseif Thing[2] == "Shatter" then
  1660. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1661. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1662. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1663. Thing[6] = Thing[6] + Thing[5]
  1664. end
  1665. else
  1666. Part.Parent = nil
  1667. table.remove(Effects, e)
  1668. end
  1669. end
  1670. end
  1671. end
  1672. end
  1673. end
  1674. -------------------------------------------------------
  1675. --End Animations And Script--
  1676. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement