Advertisement
Cute_Sylveon

Thanos with his own theme

May 23rd, 2018
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.18 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5. --
  6. m = game.Players.LocalPlayer
  7. char = m.Character
  8. local txt = Instance.new("BillboardGui", char)
  9. txt.Adornee = char .Head
  10. txt.Name = "_status"
  11. txt.Size = UDim2.new(2, 0, 1.2, 0)
  12. txt.StudsOffset = Vector3.new(-9, 8, 0)
  13. local text = Instance.new("TextLabel", txt)
  14. text.Size = UDim2.new(10, 0, 7, 0)
  15. text.FontSize = "Size14"
  16. text.TextScaled = true
  17. text.TextTransparency = 0
  18. text.BackgroundTransparency = 1
  19. text.TextTransparency = 0
  20. text.TextStrokeTransparency = 0
  21. text.Font = "Cartoon"
  22. text.TextStrokeColor3 = Color3.new(0,0,0)
  23.  
  24. v=Instance.new("Part")
  25. v.Name = "ColorBrick"
  26. v.Parent=m.Character
  27. v.FormFactor="Symmetric"
  28. v.Anchored=true
  29. v.CanCollide=false
  30. v.BottomSurface="Smooth"
  31. v.TopSurface="Smooth"
  32. v.Size=Vector3.new(10,5,3)
  33. v.Transparency=1
  34. v.CFrame=char.Torso.CFrame
  35. v.BrickColor=BrickColor.new("Really black")
  36. v.Transparency=1
  37. text.TextColor3 = Color3.new(255,0,255)
  38. v.Shape="Block"
  39. text.Text = "Stronk Thanos"
  40.  
  41. spawn(function()
  42. TweenService = game:GetService("TweenService")
  43. Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(0, 255, 0),Color3.fromRGB(0,0,255)}
  44. Int = 0
  45. while wait(0.7) do
  46. if Int == #Colours then Int = 0 end
  47. Int = Int+1
  48. TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
  49. end
  50. end)
  51. --
  52. p = game.Players.LocalPlayer
  53. char = p.Character
  54. torso = char.Torso
  55. hed = char.Head
  56. neck = char.Torso.Neck
  57. hum = char.Humanoid
  58. hum.MaxHealth = math.huge
  59. local msg = game:GetService("Chat")
  60. torso.BrickColor = BrickColor.new("Bright purple")
  61. hed.BrickColor = BrickColor.new("Bright purple")
  62. char["Right Arm"].BrickColor = BrickColor.new("Bright purple")
  63. char["Left Arm"].BrickColor = BrickColor.new("Bright purple")
  64. char["Left Leg"].BrickColor = BrickColor.new("Bright purple")
  65. char["Right Leg"].BrickColor = BrickColor.new("Bright purple")
  66. ypcall(function()
  67. shirt = Instance.new("Shirt", char)
  68. shirt.Name = "Shirt"
  69. pants = Instance.new("Pants", char)
  70. pants.Name = "Pants"
  71. char.Shirt.ShirtTemplate = "rbxassetid://1539852026"
  72. char.Pants.PantsTemplate = "rbxassetid://1539857183"
  73. end)
  74. hed.face.Texture = "http://www.roblox.com/asset/?id=405704563"
  75. --
  76. local Player = game:GetService('Players').LocalPlayer
  77. repeat wait() until Player.Character
  78. local Character = Player.Character
  79.  
  80. --All The Settings for Trails in this Script
  81. TrailSettings = {
  82. Lifetime = 0.1,
  83. Texture = 'rbxassetid://31270182',
  84. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  85. Color1 = ColorSequence.new(BrickColor.new('Bright purple').Color,BrickColor.new('Bright purple').Color),
  86. Color2 = ColorSequence.new(BrickColor.new('Bright purple').Color,BrickColor.new('Bright purple').Color),
  87. AllBody = true,
  88. UpperBodyOnly = false,
  89. LowerBodyOnly = false,
  90. Accessories = false,
  91. Extras = true,
  92. R15 = false, --Change to true if you're using R15
  93. R15Parts = {
  94. 'UpperTorso',
  95. 'LowerTorso',
  96. }
  97. }
  98.  
  99. local Trail; --Making other Trails uses this in this Script
  100.  
  101. --UpperBody Function
  102. UpperBody = function()
  103. if TrailSettings.R15 == false then
  104. A0 = Instance.new('Attachment',Character.Torso)
  105. A1 = Instance.new('Attachment',Character.Head)
  106. A2 = Instance.new('Attachment',Character['Right Arm'])
  107. A3 = Instance.new('Attachment',Character['Left Arm'])
  108. Trail = Instance.new('Trail',Character)
  109. Trail.Attachment0 = A0
  110. Trail.Attachment1 = A1
  111. Trail.Texture = TrailSettings.Texture
  112. Trail.Color = TrailSettings.Color1
  113. Trail.Lifetime = TrailSettings.Lifetime
  114. local Trail2 = Trail:Clone()
  115. Trail2.Parent = Character
  116. Trail2.Attachment1 = A2
  117. local Trail3 = Trail:Clone()
  118. Trail3.Parent = Character
  119. Trail3.Attachment1 = A3
  120. local Trail6 = Trail:Clone()
  121. Trail6.Parent = Character
  122. Trail6.Attachment0 = A1
  123. Trail6.Attachment1 = A2
  124. local Trail7 = Trail:Clone()
  125. Trail7.Parent = Character
  126. Trail7.Attachment0 = A1
  127. Trail7.Attachment1 = A3
  128. else
  129. A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]])
  130. A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]])
  131. A1 = Instance.new('Attachment',Character.Head)
  132. A2 = Instance.new('Attachment',Character['RightUpperArm'])
  133. A2R = Instance.new('Attachment',Character['RightLowerArm'])
  134. A3 = Instance.new('Attachment',Character['LeftUpperArm'])
  135. A3R = Instance.new('Attachment',Character['LeftLowerArm'])
  136. Trail = Instance.new('Trail',Character)
  137. Trail.Attachment0 = A0
  138. Trail.Attachment1 = A1
  139. Trail.Texture = TrailSettings.Texture
  140. Trail.Color = TrailSettings.Color1
  141. Trail.Lifetime = TrailSettings.Lifetime
  142. local Trail2 = Trail:Clone()
  143. Trail2.Parent = Character
  144. Trail2.Attachment1 = A2
  145. local Trail3 = Trail:Clone()
  146. Trail3.Parent = Character
  147. Trail3.Attachment1 = A3
  148. local Trail6 = Trail:Clone()
  149. Trail6.Parent = Character
  150. Trail6.Attachment0 = A1
  151. Trail6.Attachment1 = A2
  152. local Trail7 = Trail:Clone()
  153. Trail7.Parent = Character
  154. Trail7.Attachment0 = A1
  155. Trail7.Attachment1 = A3
  156. --R15 Trails
  157. local Trail1R = Trail:Clone()
  158. Trail1R.Parent = Character
  159. Trail1R.Attachment1 = A2R
  160. local Trail2R = Trail:Clone()
  161. Trail2R.Parent = Character
  162. Trail2R.Attachment1 = A3R
  163. local Trail6R = Trail:Clone()
  164. Trail6.Parent = Character
  165. Trail6.Attachment0 = A1
  166. Trail6.Attachment1 = A2R
  167. local Trail7R = Trail:Clone()
  168. Trail7.Parent = Character
  169. Trail7.Attachment0 = A1
  170. Trail7.Attachment1 = A3R
  171. end
  172. end
  173.  
  174. --Lower Body Function
  175. LowerBody = function()
  176. if TrailSettings.R15 == false then
  177. A4 = Instance.new('Attachment',Character['Right Leg'])
  178. A5 = Instance.new('Attachment',Character['Left Leg'])
  179. local Trail4 = Trail:Clone()
  180. Trail4.Parent = Character
  181. Trail4.Attachment1 = A4
  182. local Trail5 = Trail:Clone()
  183. Trail5.Parent = Character
  184. Trail5.Attachment1 = A5
  185. local Trail8 = Trail:Clone()
  186. Trail8.Parent = Character
  187. Trail8.Attachment0 = A2
  188. Trail8.Attachment1 = A4
  189. Trail8.Color = TrailSettings.Color2
  190. local Trail9 = Trail:Clone()
  191. Trail9.Parent = Character
  192. Trail9.Attachment0 = A3
  193. Trail9.Attachment1 = A5
  194. Trail9.Color = TrailSettings.Color2
  195. local FT = Trail:Clone()
  196. FT.Parent = Character
  197. FT.Attachment0 = A4
  198. FT.Attachment1 = A5
  199. FT.Color = TrailSettings.Color2
  200. else
  201. A4 = Instance.new('Attachment',Character['RightLowerLeg'])
  202. A4R = Instance.new('Attachment',Character['RightUpperLeg'])
  203. A5 = Instance.new('Attachment',Character['LeftLowerLeg'])
  204. A5R = Instance.new('Attachment',Character['LeftUpperLeg'])
  205. local Trail4 = Trail:Clone()
  206. Trail4.Parent = Character
  207. Trail4.Attachment1 = A4
  208. local Trail5 = Trail:Clone()
  209. Trail5.Parent = Character
  210. Trail5.Attachment1 = A5
  211. local Trail8 = Trail:Clone()
  212. Trail8.Parent = Character
  213. Trail8.Attachment0 = A2
  214. Trail8.Attachment1 = A4
  215. Trail8.Color = TrailSettings.Color2
  216. local Trail9 = Trail:Clone()
  217. Trail9.Parent = Character
  218. Trail9.Attachment0 = A3
  219. Trail9.Attachment1 = A5
  220. Trail9.Color = TrailSettings.Color2
  221. local FT = Trail:Clone()
  222. FT.Parent = Character
  223. FT.Attachment0 = A4
  224. FT.Attachment1 = A5
  225. FT.Color = TrailSettings.Color2
  226. --R15 Trails
  227. local Trail3R = Trail:Clone()
  228. Trail3R.Parent = Character
  229. Trail3R.Attachment1 = A4R
  230. local Trail4R = Trail:Clone()
  231. Trail4R.Parent = Character
  232. Trail4R.Attachment1 = A5R
  233. local Trail8 = Trail:Clone()
  234. Trail8.Parent = Character
  235. Trail8.Attachment0 = A2R
  236. Trail8.Attachment1 = A4R
  237. Trail8.Color = TrailSettings.Color2
  238. local Trail9 = Trail:Clone()
  239. Trail9.Parent = Character
  240. Trail9.Attachment0 = A3R
  241. Trail9.Attachment1 = A5R
  242. Trail9.Color = TrailSettings.Color2
  243. local FT2R = Trail:Clone()
  244. FT2R.Parent = Character
  245. FT2R.Attachment0 = A4R
  246. FT2R.Attachment1 = A5R
  247. FT2R.Color = TrailSettings.Color2
  248. end
  249. end
  250.  
  251. --All Body Function calling Both Functions
  252. AllBody = function()
  253. UpperBody()
  254. LowerBody()
  255. end
  256.  
  257. --Checking to make sure that Only some Variables are Selected else do All Body
  258. if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  259. TrailSettings.UpperBodyOnly = false
  260. TrailSettings.LowerBodyOnly = false
  261. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
  262. TrailSettings.UpperBodyOnly = false
  263. TrailSettings.LowerBodyOnly = false
  264. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
  265. TrailSettings.UpperBodyOnly = false
  266. TrailSettings.LowerBodyOnly = false
  267. elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  268. TrailSettings.AllBody = true
  269. TrailSettings.UpperBodyOnly = false
  270. TrailSettings.LowerBodyOnly = false
  271. end
  272.  
  273. --Call Trail Functions
  274. if TrailSettings.UpperBodyOnly == true then
  275. UpperBody()
  276. print('Called Upper Body Trail')
  277. elseif TrailSettings.LowerBodyOnly == true then
  278. LowerBody()
  279. print('Called Lower Body Trail')
  280. elseif TrailSettings.AllBody == true then
  281. AllBody()
  282. print('Called Full Body Trail')
  283. end
  284.  
  285. --Trails for Accessories
  286. if TrailSettings.Accessories == true then
  287. for Index,Item in pairs(Character:GetChildren()) do
  288. if Item:IsA'Accessory' then
  289. local AA = Instance.new('Attachment',Item.Handle)
  290. local ATrail = Trail:Clone()
  291. ATrail.Parent = Character
  292. ATrail.Attachment1 = AA
  293. end
  294. end
  295. end
  296.  
  297. --Extras
  298. if TrailSettings.Extras == true then
  299. --Making an Invisible Platform Part
  300. local a = Instance.new('Part',Character)
  301. a.CanCollide = false
  302. a.Size = Vector3.new(2,.2,2)
  303. a.Transparency = 1
  304.  
  305. --Constantly putting it under your feet
  306. if TrailSettings.R15 == false then
  307. spawn(function()
  308. game:GetService('RunService').RenderStepped:connect(function()
  309. a.CFrame = Character.Torso.CFrame * CFrame.new(0,-3,0)
  310. end)
  311. end)
  312. else
  313. spawn(function()
  314. game:GetService('RunService').RenderStepped:connect(function()
  315. a.CFrame = Character[TrailSettings.R15Parts[2]].CFrame * CFrame.new(0,-2,0)
  316. end)
  317. end)
  318. end
  319.  
  320. --Make a Trail from both feet to the Platform
  321. spawn(function()
  322. repeat wait() until Trail
  323. local AB = Instance.new('Attachment',a)
  324. local ABT = Trail:Clone()
  325. ABT.Parent = Character
  326. ABT.Attachment0 = A4
  327. ABT.Attachment1 = AB
  328. ABT.Color = TrailSettings.Color2
  329. local ABT2 = Trail:Clone()
  330. ABT2.Parent = Character
  331. ABT2.Attachment0 = A5
  332. ABT2.Attachment1 = AB
  333. ABT2.Color = TrailSettings.Color2
  334. end)
  335. end
  336. --
  337.  
  338. wait(0.2)
  339.  
  340. Player = game:GetService("Players").LocalPlayer
  341. PlayerGui = Player.PlayerGui
  342. Cam = workspace.CurrentCamera
  343. Backpack = Player.Backpack
  344. Character = Player.Character
  345. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  346. Mouse = Player:GetMouse()
  347. RootPart = Character["HumanoidRootPart"]
  348. Torso = Character["Torso"]
  349. Head = Character["Head"]
  350. RightArm = Character["Right Arm"]
  351. LeftArm = Character["Left Arm"]
  352. RightLeg = Character["Right Leg"]
  353. LeftLeg = Character["Left Leg"]
  354. RootJoint = RootPart["RootJoint"]
  355. Neck = Torso["Neck"]
  356. RightShoulder = Torso["Right Shoulder"]
  357. LeftShoulder = Torso["Left Shoulder"]
  358. RightHip = Torso["Right Hip"]
  359. LeftHip = Torso["Left Hip"]
  360. local sick = Instance.new("Sound",Character)
  361.  
  362. IT = Instance.new
  363. CF = CFrame.new
  364. VT = Vector3.new
  365. RAD = math.rad
  366. C3 = Color3.new
  367. UD2 = UDim2.new
  368. BRICKC = BrickColor.new
  369. ANGLES = CFrame.Angles
  370. EULER = CFrame.fromEulerAnglesXYZ
  371. COS = math.cos
  372. ACOS = math.acos
  373. SIN = math.sin
  374. ASIN = math.asin
  375. ABS = math.abs
  376. MRANDOM = math.random
  377. FLOOR = math.floor
  378.  
  379. --//=================================\\
  380. --|| USEFUL VALUES
  381. --\\=================================//
  382.  
  383. Animation_Speed = 3
  384. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  385. local Speed = 45
  386. local SIZE = 1.3
  387. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  388. local NECKC0 = CF(0, 1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  389. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  390. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  391. local ANIM = "Idle"
  392. local ATTACK = false
  393. local COMBO = 1
  394. local Rooted = false
  395. local SINE = 0
  396. local CHANGE = 2 / Animation_Speed
  397. local ROBLOXIDLEANIMATION = IT("Animation")
  398. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  399. WEAPONGUI.Name = "Big Boie Squad"
  400. local ANIMATOR = Humanoid.Animator
  401. local ANIMATE = Character.Animate
  402. local UNANCHOR = true
  403. local KILLCOUNT = 0
  404.  
  405. --//=================================\\
  406. --\\=================================//
  407.  
  408.  
  409. --//=================================\\
  410. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  411. --\\=================================//
  412.  
  413. ArtificialHB = Instance.new("BindableEvent", script)
  414. ArtificialHB.Name = "ArtificialHB"
  415.  
  416. script:WaitForChild("ArtificialHB")
  417.  
  418. frame = Frame_Speed
  419. tf = 0
  420. allowframeloss = false
  421. tossremainder = false
  422. lastframe = tick()
  423. script.ArtificialHB:Fire()
  424.  
  425. game:GetService("RunService").Heartbeat:connect(function(s, p)
  426. tf = tf + s
  427. if tf >= frame then
  428. if allowframeloss then
  429. script.ArtificialHB:Fire()
  430. lastframe = tick()
  431. else
  432. for i = 1, math.floor(tf / frame) do
  433. script.ArtificialHB:Fire()
  434. end
  435. lastframe = tick()
  436. end
  437. if tossremainder then
  438. tf = 0
  439. else
  440. tf = tf - frame * math.floor(tf / frame)
  441. end
  442. end
  443. end)
  444.  
  445. --//=================================\\
  446. --\\=================================//
  447.  
  448. --//=================================\\
  449. --|| SOME FUNCTIONS
  450. --\\=================================//
  451.  
  452. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  453. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  454. end
  455.  
  456. function PositiveAngle(NUMBER)
  457. if NUMBER >= 0 then
  458. NUMBER = 0
  459. end
  460. return NUMBER
  461. end
  462.  
  463. function NegativeAngle(NUMBER)
  464. if NUMBER <= 0 then
  465. NUMBER = 0
  466. end
  467. return NUMBER
  468. end
  469.  
  470. function Swait(NUMBER)
  471. if NUMBER == 0 or NUMBER == nil then
  472. ArtificialHB.Event:wait()
  473. else
  474. for i = 1, NUMBER do
  475. ArtificialHB.Event:wait()
  476. end
  477. end
  478. end
  479.  
  480. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  481. local NEWMESH = IT(MESH)
  482. if MESH == "SpecialMesh" then
  483. NEWMESH.MeshType = MESHTYPE
  484. if MESHID ~= "nil" and MESHID ~= "" then
  485. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  486. end
  487. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  488. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  489. end
  490. end
  491. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  492. NEWMESH.Scale = SCALE
  493. NEWMESH.Parent = PARENT
  494. return NEWMESH
  495. end
  496.  
  497. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  498. local NEWPART = IT("Part")
  499. NEWPART.formFactor = FORMFACTOR
  500. NEWPART.Reflectance = REFLECTANCE
  501. NEWPART.Transparency = TRANSPARENCY
  502. NEWPART.CanCollide = false
  503. NEWPART.Locked = true
  504. NEWPART.Anchored = true
  505. if ANCHOR == false then
  506. NEWPART.Anchored = false
  507. end
  508. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  509. NEWPART.Name = NAME
  510. NEWPART.Size = SIZE
  511. NEWPART.Position = Torso.Position
  512. NEWPART.Material = MATERIAL
  513. NEWPART:BreakJoints()
  514. NEWPART.Parent = PARENT
  515. return NEWPART
  516. end
  517.  
  518. local function weldBetween(a, b)
  519. local weldd = Instance.new("ManualWeld")
  520. weldd.Part0 = a
  521. weldd.Part1 = b
  522. weldd.C0 = CFrame.new()
  523. weldd.C1 = b.CFrame:inverse() * a.CFrame
  524. weldd.Parent = a
  525. return weldd
  526. end
  527.  
  528.  
  529. function QuaternionFromCFrame(cf)
  530. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  531. local trace = m00 + m11 + m22
  532. if trace > 0 then
  533. local s = math.sqrt(1 + trace)
  534. local recip = 0.5 / s
  535. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  536. else
  537. local i = 0
  538. if m11 > m00 then
  539. i = 1
  540. end
  541. if m22 > (i == 0 and m00 or m11) then
  542. i = 2
  543. end
  544. if i == 0 then
  545. local s = math.sqrt(m00 - m11 - m22 + 1)
  546. local recip = 0.5 / s
  547. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  548. elseif i == 1 then
  549. local s = math.sqrt(m11 - m22 - m00 + 1)
  550. local recip = 0.5 / s
  551. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  552. elseif i == 2 then
  553. local s = math.sqrt(m22 - m00 - m11 + 1)
  554. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  555. end
  556. end
  557. end
  558.  
  559. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  560. local xs, ys, zs = x + x, y + y, z + z
  561. local wx, wy, wz = w * xs, w * ys, w * zs
  562. local xx = x * xs
  563. local xy = x * ys
  564. local xz = x * zs
  565. local yy = y * ys
  566. local yz = y * zs
  567. local zz = z * zs
  568. 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))
  569. end
  570.  
  571. function QuaternionSlerp(a, b, t)
  572. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  573. local startInterp, finishInterp;
  574. if cosTheta >= 0.0001 then
  575. if (1 - cosTheta) > 0.0001 then
  576. local theta = ACOS(cosTheta)
  577. local invSinTheta = 1 / SIN(theta)
  578. startInterp = SIN((1 - t) * theta) * invSinTheta
  579. finishInterp = SIN(t * theta) * invSinTheta
  580. else
  581. startInterp = 1 - t
  582. finishInterp = t
  583. end
  584. else
  585. if (1 + cosTheta) > 0.0001 then
  586. local theta = ACOS(-cosTheta)
  587. local invSinTheta = 1 / SIN(theta)
  588. startInterp = SIN((t - 1) * theta) * invSinTheta
  589. finishInterp = SIN(t * theta) * invSinTheta
  590. else
  591. startInterp = t - 1
  592. finishInterp = t
  593. end
  594. end
  595. 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
  596. end
  597.  
  598. function Clerp(a, b, t)
  599. local qa = {QuaternionFromCFrame(a)}
  600. local qb = {QuaternionFromCFrame(b)}
  601. local ax, ay, az = a.x, a.y, a.z
  602. local bx, by, bz = b.x, b.y, b.z
  603. local _t = 1 - t
  604. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  605. end
  606.  
  607. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  608. local frame = IT("Frame")
  609. frame.BackgroundTransparency = TRANSPARENCY
  610. frame.BorderSizePixel = BORDERSIZEPIXEL
  611. frame.Position = POSITION
  612. frame.Size = SIZE
  613. frame.BackgroundColor3 = COLOR
  614. frame.BorderColor3 = BORDERCOLOR
  615. frame.Name = NAME
  616. frame.Parent = PARENT
  617. return frame
  618. end
  619.  
  620. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  621. local label = IT("TextLabel")
  622. label.BackgroundTransparency = 1
  623. label.Size = UD2(1, 0, 1, 0)
  624. label.Position = UD2(0, 0, 0, 0)
  625. label.TextColor3 = TEXTCOLOR
  626. label.TextStrokeTransparency = STROKETRANSPARENCY
  627. label.TextTransparency = TRANSPARENCY
  628. label.FontSize = TEXTFONTSIZE
  629. label.Font = TEXTFONT
  630. label.BorderSizePixel = BORDERSIZEPIXEL
  631. label.TextScaled = false
  632. label.Text = TEXT
  633. label.Name = NAME
  634. label.Parent = PARENT
  635. return label
  636. end
  637.  
  638. function NoOutlines(PART)
  639. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  640. end
  641.  
  642. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  643. local NEWWELD = IT(TYPE)
  644. NEWWELD.Part0 = PART0
  645. NEWWELD.Part1 = PART1
  646. NEWWELD.C0 = C0
  647. NEWWELD.C1 = C1
  648. NEWWELD.Parent = PARENT
  649. return NEWWELD
  650. end
  651.  
  652. local S = IT("Sound")
  653. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  654. local NEWSOUND = nil
  655. coroutine.resume(coroutine.create(function()
  656. NEWSOUND = S:Clone()
  657. NEWSOUND.Parent = PARENT
  658. NEWSOUND.Volume = VOLUME
  659. NEWSOUND.Pitch = PITCH
  660. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  661. NEWSOUND:play()
  662. if DOESLOOP == true then
  663. NEWSOUND.Looped = true
  664. else
  665. repeat wait(1) until NEWSOUND.Playing == false
  666. NEWSOUND:remove()
  667. end
  668. end))
  669. return NEWSOUND
  670. end
  671.  
  672. function CFrameFromTopBack(at, top, back)
  673. local right = top:Cross(back)
  674. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  675. end
  676.  
  677. function MakeForm(PART,TYPE)
  678. if TYPE == "Cyl" then
  679. local MSH = IT("CylinderMesh",PART)
  680. elseif TYPE == "Ball" then
  681. local MSH = IT("SpecialMesh",PART)
  682. MSH.MeshType = "Sphere"
  683. elseif TYPE == "Wedge" then
  684. local MSH = IT("SpecialMesh",PART)
  685. MSH.MeshType = "Wedge"
  686. end
  687. end
  688.  
  689. Debris = game:GetService("Debris")
  690.  
  691. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  692. local DIRECTION = CF(StartPos,EndPos).lookVector
  693. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  694. end
  695.  
  696. --//=================================\\
  697. --|| WEAPON CREATION
  698. --\\=================================//
  699.  
  700. Humanoid.Parent = nil
  701. RootPart.Size = RootPart.Size*SIZE
  702. Torso.Size = Torso.Size*SIZE
  703. RightArm.Size = RightArm.Size*SIZE
  704. RightLeg.Size = RightLeg.Size*SIZE
  705. LeftArm.Size = LeftArm.Size*SIZE
  706. LeftLeg.Size = LeftLeg.Size*SIZE
  707. RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  708. RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  709. Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  710. Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
  711. RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  712. LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  713. RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  714. LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  715. RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  716. LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  717. Head.Size = Head.Size*SIZE
  718. RootJoint.Parent = RootPart
  719. Neck.Parent = Torso
  720. RightShoulder.Parent = Torso
  721. LeftShoulder.Parent = Torso
  722. RightHip.Parent = Torso
  723. LeftHip.Parent = Torso
  724.  
  725. Humanoid.Parent = Character
  726.  
  727. Humanoid.Died:connect(function()
  728. ATTACK = true
  729. end)
  730.  
  731. local TRACKFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Yeet")
  732.  
  733. local TEXT = CreateLabel(TRACKFRAME, KILLCOUNT, C3(1,0,0), 8, "SourceSans", 0, 2, 1, "Text")
  734.  
  735. --//=================================\\
  736. --|| DAMAGING
  737. --\\=================================//
  738.  
  739. local EXPLOSION = IT("Explosion",nil)
  740. EXPLOSION.BlastPressure = 0
  741. function PUNCH(Fist)
  742. TOUCH = Fist.Touched:Connect(function(hit)
  743. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  744. local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
  745. local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  746. if TORSO and HUM.Health > 0 then
  747. CreateSound(296102734,Fist,6,1,false)
  748. CreateSound(12222242,TORSO,7,MRANDOM(8,14)/10,false)
  749. TORSO.Parent:BreakJoints()
  750. for _, c in pairs(TORSO.Parent:GetChildren()) do
  751. if c:IsA("BasePart") then
  752. local bv = Instance.new("BodyVelocity",c)
  753. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  754. bv.velocity = CF(TORSO.Position,c.Position+VT(0,0.1,0)).lookVector*MRANDOM(70,100)
  755. Debris:AddItem(bv,0.05)
  756. end
  757. end
  758. local BOOM = EXPLOSION:Clone()
  759. BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p
  760. BOOM.Parent = Character
  761. TOUCH:Disconnect()
  762. KILLCOUNT = KILLCOUNT + 1
  763. end
  764. elseif hit.Material == Enum.Material.Glass or hit.Transparency > 0.2 then
  765. hit:remove()
  766. CreateSound(296102734,Fist,6,1,false)
  767. local BOOM = EXPLOSION:Clone()
  768. BOOM.BlastPressure = 15
  769. BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p
  770. BOOM.Parent = Character
  771. elseif hit.Anchored == false then
  772. CreateSound(296102734,Fist,6,1,false)
  773. local BOOM = EXPLOSION:Clone()
  774. BOOM.BlastPressure = 70
  775. BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p
  776. BOOM.Parent = Character
  777. TOUCH:Disconnect()
  778. end
  779. end)
  780. return TOUCH
  781. end
  782.  
  783. --//=================================\\
  784. --|| ATTACK FUNCTIONS AND STUFF
  785. --\\=================================//
  786.  
  787. function Yeet()
  788. ATTACK = true
  789. Rooted = false
  790. if COMBO == 1 then
  791. COMBO = 2
  792. for i=0, 0.1, 0.1 / Animation_Speed do
  793. Swait()
  794. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(15)), 1 / Animation_Speed)
  795. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 1 / Animation_Speed)
  796. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  797. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  798. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  799. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  800. end
  801. local FIST = PUNCH(LeftArm)
  802. for i=0, 0.15, 0.1 / Animation_Speed do
  803. Swait()
  804. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(35), RAD(0), RAD(-45)), 1 / Animation_Speed)
  805. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(45)), 1 / Animation_Speed)
  806. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  807. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1*SIZE, 0.45*SIZE, -1*SIZE) * ANGLES(RAD(110), RAD(0), RAD(25)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  808. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  809. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  810. end
  811. FIST:Disconnect()
  812. else
  813. COMBO = 1
  814. for i=0, 0.1, 0.1 / Animation_Speed do
  815. Swait()
  816. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed)
  817. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  818. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  819. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  820. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  821. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  822. end
  823. local FIST = PUNCH(RightArm)
  824. for i=0, 0.15, 0.1 / Animation_Speed do
  825. Swait()
  826. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(35), RAD(0), RAD(45)), 1 / Animation_Speed)
  827. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  828. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1*SIZE, 0.45*SIZE, -1*SIZE) * ANGLES(RAD(110), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  829. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  830. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  831. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  832. end
  833. FIST:Disconnect()
  834. end
  835. ATTACK = false
  836. Rooted = false
  837. end
  838.  
  839. function YesPlease()
  840. ATTACK = true
  841. Rooted = true
  842. CreateSound(291394633,Head,6,1,false)
  843. for i=0, 2, 0.1 / Animation_Speed do
  844. Swait()
  845. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.3*SIZE) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  846. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  847. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2+(MRANDOM(-5,5)/100)*SIZE, (0.45+(MRANDOM(-5,5)/100))*SIZE, -0.5*SIZE) * ANGLES(RAD(75), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  848. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-2+(MRANDOM(-5,5)/100)*SIZE, (0.65+(MRANDOM(-5,5)/100))*SIZE, -0.5*SIZE) * ANGLES(RAD(65), RAD(0), RAD(65)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  849. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.85*SIZE, -0.6*SIZE) * ANGLES(RAD(25), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  850. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.85*SIZE, -0.6*SIZE) * ANGLES(RAD(25), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  851. end
  852. ATTACK = false
  853. Rooted = false
  854. end
  855.  
  856. --//=================================\\
  857. --|| ASSIGN THINGS TO KEYS
  858. --\\=================================//
  859.  
  860. Mouse.Button1Down:connect(function(NEWKEY)
  861. if ATTACK == false then
  862. Yeet()
  863. end
  864. end)
  865. Mouse.KeyDown:connect(function(NEWKEY)
  866. if NEWKEY == "t" and ATTACK == false then
  867. YesPlease()
  868. end
  869. end)
  870.  
  871. --//=================================\\
  872. --\\=================================//
  873.  
  874. function unanchor()
  875. if UNANCHOR == true then
  876. g = Character:GetChildren()
  877. for i = 1, #g do
  878. if g[i].ClassName == "Part" then
  879. g[i].Anchored = false
  880. end
  881. end
  882. end
  883. end
  884.  
  885. --//=================================\\
  886. --|| WRAP THE WHOLE SCRIPT UP
  887. --\\=================================//
  888.  
  889. Humanoid.Changed:connect(function(Jump)
  890. if Jump == "Jump" and (Disable_Jump == true) then
  891. Humanoid.Jump = false
  892. end
  893. end)
  894.  
  895. local FF = IT("ForceField",Character)
  896. FF.Visible = false
  897.  
  898. while true do
  899. Swait()
  900. script.Parent = WEAPONGUI
  901. ANIMATE.Parent = nil
  902. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  903. v:Stop();
  904. end
  905. SINE = SINE + CHANGE
  906. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  907. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  908. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  909. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  910. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  911. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 / Animation_Speed)
  912. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  913. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.5- 0.5 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  914. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.5+ 0.5 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  915. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  916. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  917. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  918. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  919. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  920. end
  921. if HITFLOOR == nil then
  922. ANIM = "Midair"
  923. if ATTACK == false then
  924. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  925. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  926. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(145), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  927. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.45*SIZE, 0.3*SIZE) * ANGLES(RAD(35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  928. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.2*SIZE, -0.7*SIZE) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  929. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed)
  930. end
  931. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  932. ANIM = "Idle"
  933. if ATTACK == false then
  934. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  935. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  936. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(15), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  937. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(15), RAD(0), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  938. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  939. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  940. end
  941. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  942. ANIM = "Walk"
  943. if ATTACK == false then
  944. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  945. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1/ Animation_Speed)
  946. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, (0.35+0.15 * COS(SINE / WALKSPEEDVALUE))*SIZE, 0*SIZE) * ANGLES(RAD(25+70 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  947. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, (0.35-0.15 * COS(SINE / WALKSPEEDVALUE))*SIZE, 0*SIZE) * ANGLES(RAD(25-70 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  948. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  949. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  950. end
  951. end
  952. unanchor()
  953. Humanoid.MaxHealth = 5e7
  954. Humanoid.Health = 5e7
  955. Humanoid.Name = "BigBoie"
  956. if Rooted == false then
  957. Disable_Jump = false
  958. Humanoid.WalkSpeed = Speed
  959. elseif Rooted == true then
  960. Disable_Jump = true
  961. Humanoid.WalkSpeed = 0
  962. end
  963. for _, c in pairs(Character:GetChildren()) do
  964. if c.ClassName == "Part" then
  965. c.Material = "SmoothPlastic"
  966. if c:FindFirstChildOfClass("ParticleEmitter") then
  967. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  968. end
  969. if c == Torso or c.Name == "Muscle" then
  970. c.BrickColor = BRICKC"Bright purple"
  971. elseif c == RightLeg or c == LeftLeg then
  972. c.BrickColor = BRICKC"Bright purple"
  973. else
  974. c.BrickColor = BRICKC"Bright purple"
  975. end
  976. if c == Head then
  977. if c:FindFirstChild("face") then
  978. c.face.Texture = "http://www.roblox.com/asset/?id=405704563"
  979. end
  980. end
  981. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  982. c:remove()
  983. end
  984. end
  985. sick.SoundId = "rbxassetid://208421282"
  986. sick.Looped = true
  987. sick.Pitch = 1
  988. sick.Volume = 1
  989. sick:Resume()
  990. sick.Parent = Torso
  991. Humanoid.JumpPower = 150
  992. TEXT.Text = KILLCOUNT
  993. end
  994.  
  995. --//=================================\\
  996. --\\=================================//
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002. --//====================================================\\--
  1003. --|| END OF SCRIPT
  1004. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement