Advertisement
sneakydodge123

t

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