Advertisement
HenloMyDude

oof'd thanos

Nov 23rd, 2019
538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.38 KB | None | 0 0
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  5.  
  6. local Player = game:GetService("Players").LocalPlayer
  7. PlayerGui = Player.PlayerGui
  8. Cam = workspace.CurrentCamera
  9. Backpack = Player.Backpack
  10. Character = Player.Character
  11. Humanoid = Character.Humanoid
  12. Mouse = Player:GetMouse()
  13. RootPart = Character["HumanoidRootPart"]
  14. Torso = Character["Torso"]
  15. Head = Character["Head"]
  16. RightArm = Character["Right Arm"]
  17. LeftArm = Character["Left Arm"]
  18. RightLeg = Character["Right Leg"]
  19. LeftLeg = Character["Left Leg"]
  20. RootJoint = RootPart["RootJoint"]
  21. Neck = Torso["Neck"]
  22. RightShoulder = Torso["Right Shoulder"]
  23. LeftShoulder = Torso["Left Shoulder"]
  24. RightHip = Torso["Right Hip"]
  25. LeftHip = Torso["Left Hip"]
  26. Debris = game:GetService("Debris")
  27. local sick = Instance.new("Sound",Torso)
  28. sick.SoundId = "rbxassetid://243832038"
  29. sick.Pitch = 1
  30. sick.Looped = true
  31. sick.Volume = 0
  32.  
  33. IT = Instance.new
  34. CF = CFrame.new
  35. VT = Vector3.new
  36. RAD = math.rad
  37. C3 = Color3.new
  38. UD2 = UDim2.new
  39. BRICKC = BrickColor.new
  40. ANGLES = CFrame.Angles
  41. EULER = CFrame.fromEulerAnglesXYZ
  42. COS = math.cos
  43. ACOS = math.acos
  44. SIN = math.sin
  45. ASIN = math.asin
  46. ABS = math.abs
  47. MRANDOM = math.random
  48. FLOOR = math.floor
  49.  
  50. Animation_Speed = 3
  51. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  52. local Speed = 45
  53. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  54. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  55. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  56. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  57. local DAMAGEMULTIPLIER = 1
  58. local ANIM = "Idle"
  59. local ATTACK = false
  60. local EQUIPPED = false
  61. local HOLD = false
  62. local COMBO = 1
  63. local Rooted = false
  64. local SINE = 0
  65. local KEYHOLD = false
  66. local CHANGE = 2 / Animation_Speed
  67. local WALKINGANIM = false
  68. local VALUE1 = false
  69. local VALUE2 = false
  70. local ROBLOXIDLEANIMATION = IT("Animation")
  71. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  72. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  73. --ROBLOXIDLEANIMATION.Parent = Humanoid
  74. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  75. WEAPONGUI.Name = "Weapon GUI"
  76. local Effects = IT("Folder", Character)
  77. Effects.Name = "Effects"
  78. local ANIMATOR = Humanoid.Animator
  79. local ANIMATE = Character.Animate
  80. local UNANCHOR = true
  81. local HITPOS = nil
  82. local HITFLOOR = nil
  83. local BODY = {}
  84.  
  85. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  86. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  87. end
  88.  
  89. function PositiveAngle(NUMBER)
  90. if NUMBER >= 0 then
  91. NUMBER = 0
  92. end
  93. return NUMBER
  94. end
  95.  
  96. function NegativeAngle(NUMBER)
  97. if NUMBER <= 0 then
  98. NUMBER = 0
  99. end
  100. return NUMBER
  101. end
  102.  
  103. function Swait(NUMBER)
  104. if NUMBER == 0 or NUMBER == nil then
  105. game:GetService("RunService").Stepped:wait()
  106. else
  107. for i = 1, NUMBER do
  108. game:GetService("RunService").Stepped:wait()
  109. end
  110. end
  111. end
  112.  
  113.  
  114. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  115. local NEWMESH = IT(MESH)
  116. if MESH == "SpecialMesh" then
  117. NEWMESH.MeshType = MESHTYPE
  118. if MESHID ~= "nil" and MESHID ~= "" then
  119. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  120. end
  121. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  122. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  123. end
  124. end
  125. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  126. NEWMESH.Scale = SCALE
  127. NEWMESH.Parent = PARENT
  128. return NEWMESH
  129. end
  130.  
  131. local function weldBetween(a, b)
  132. local weldd = Instance.new("ManualWeld")
  133. weldd.Part0 = a
  134. weldd.Part1 = b
  135. weldd.C0 = CFrame.new()
  136. weldd.C1 = b.CFrame:inverse() * a.CFrame
  137. weldd.Parent = a
  138. return weldd
  139. end
  140.  
  141. function Clerp(a, b, t)
  142. return a:lerp(b,t)
  143. end
  144.  
  145. ATTACK = false
  146. sped = 15
  147.  
  148. for _,v in pairs (Character:children()) do
  149. if v:IsA("Hat") or v:IsA("Accessory") then
  150. v:Destroy()
  151. end
  152. end
  153.  
  154. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  155. local NEWWELD = IT(TYPE)
  156. NEWWELD.Part0 = PART0
  157. NEWWELD.Part1 = PART1
  158. NEWWELD.C0 = C0
  159. NEWWELD.C1 = C1
  160. NEWWELD.Parent = PARENT
  161. return NEWWELD
  162. end
  163.  
  164. function NewInstance(instance,parent,properties)
  165. local inst = Instance.new(instance)
  166. inst.Parent = parent
  167. if(properties)then
  168. for i,v in next, properties do
  169. pcall(function() inst[i] = v end)
  170. end
  171. end
  172. return inst;
  173. end
  174.  
  175. function ezweld(P1,P2,CFRAME)
  176. local ezw = CreateWeldOrSnapOrMotor("Weld",P1,P1,P2,CFRAME,CF(0,0,0))
  177. return ezw
  178. end
  179.  
  180. function Snap(Part)
  181. local FeelGood = Instance.new("ParticleEmitter")
  182. FeelGood.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.new(0.0509804, 0.411765, 0.67451)), ColorSequenceKeypoint.new(1, Color3.new(0.0509804, 0.411765, 0.67451))})
  183. FeelGood.LightInfluence = 1
  184. FeelGood.Lifetime = NumberRange.new(1, 2)
  185. FeelGood.Speed = NumberRange.new(0, 0)
  186. FeelGood.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.15000000596046, 0), NumberSequenceKeypoint.new(0.80000001192093, 0.15000000596046, 0), NumberSequenceKeypoint.new(1, 0, 0)})
  187. FeelGood.Acceleration = Vector3.new(0, 1, 3)
  188. FeelGood.Rate = 100
  189. FeelGood.Rotation = NumberRange.new(-360, 360)
  190. FeelGood.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0), NumberSequenceKeypoint.new(1, 0.5, 0)})
  191. FeelGood.Name = "FeelGood"
  192. FeelGood.Texture = "rbxassetid://282305485"
  193. U = FeelGood
  194. U.Parent = Part
  195. U.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Part.Color), ColorSequenceKeypoint.new(1, Part.Color)})
  196. coroutine.resume(coroutine.create(function()
  197. local PT = (1 - Part.Transparency)/150
  198. for i = 1,150 do
  199. game:GetService("RunService").Stepped:wait()
  200. Part.Transparency = Part.Transparency + PT
  201. end
  202. U.Enabled = false
  203. for i = 1,100 do
  204. game:GetService("RunService").Stepped:wait()
  205. end
  206. Part:Destroy()
  207. end))
  208. end
  209.  
  210. function Goodbye(Model)
  211. local mesg = Instance.new("NumberValue",Model)
  212. mesg.Name = "goodbye"
  213. for _,v in pairs (Model:GetDescendants()) do
  214. if v:IsA("BasePart") or v:IsA("MeshPart") or v:IsA("WedgePart") or v:IsA("TrussPart") then
  215. Snap(v)
  216. end
  217. end
  218. end
  219.  
  220. local combo = 0
  221. local hat = Instance.new("Part",Character)
  222. hat.Size = Vector3.new(0.1, 0.1, 0.1)
  223. hat.CanCollide = false
  224. hat.BrickColor = BRICKC("Lilac")
  225. local mesh = CreateMesh("SpecialMesh", hat, "FileMesh", 1047997, "", Vector3.new(1, 1, 1), Vector3.new(0, 0, 0))
  226. local decal = IT("Decal",hat)
  227. decal.Texture = "rbxassetid://4450677083"
  228. local weld = ezweld(hat, Head, CF(0, -0.15, 0))
  229. local punchn = 0.75
  230. local song = Instance.new("Sound",Head)
  231. song.SoundId = "rbxassetid://3207144564"
  232. song.Volume = 10
  233. song.Pitch = 1.2
  234. song.Looped = true
  235. song:Play()
  236. local distort = Instance.new("FlangeSoundEffect",song)
  237. distort.Rate = 12
  238. distort.Enabled = true
  239. hidden = false
  240.  
  241. function punch1()
  242. ATTACK = true
  243. combo = 1
  244. local hitbox = RightArm.Touched:connect(function(hit)
  245. for i,c in pairs (hit.Parent:children()) do
  246. if c:IsA("Humanoid") and c.Parent ~= Character and not hit.Parent:FindFirstChild("debounce") then
  247. c.Health = c.Health - 35
  248. local debounce = Instance.new("NumberValue",hit.Parent)
  249. debounce.Name = "debounce"
  250. Debris:AddItem(debounce, 0.45)
  251. end
  252. end
  253. end)
  254. for i = 1,11 do
  255. Swait()
  256. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(-45)), punchn / Animation_Speed)
  257. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
  258. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 * SIN(SINE / 12)), RAD(0)) * RIGHTSHOULDERC0, punchn / Animation_Speed)
  259. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 5 * SIN(SINE / 12))) * LEFTSHOULDERC0, punchn / Animation_Speed)
  260. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
  261. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
  262. end
  263. for i = 1,14 do
  264. Swait()
  265. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(45)), punchn / Animation_Speed)
  266. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
  267. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 * SIN(SINE / 12)), RAD(0)) * RIGHTSHOULDERC0, punchn / Animation_Speed)
  268. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  269. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
  270. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
  271. end
  272. hitbox:disconnect()
  273. ATTACK = false
  274. end
  275.  
  276. function punch2()
  277. ATTACK = true
  278. combo = 2
  279. local hitbox = RightArm.Touched:connect(function(hit)
  280. for i,c in pairs (hit.Parent:children()) do
  281. if c:IsA("Humanoid") and c.Parent ~= Character and not hit.Parent:FindFirstChild("debounce") then
  282. c.Health = c.Health - 35
  283. local debounce = Instance.new("NumberValue",hit.Parent)
  284. debounce.Name = "debounce"
  285. Debris:AddItem(debounce, 0.45)
  286. end
  287. end
  288. end)
  289. for i = 1,11 do
  290. Swait()
  291. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(45)), punchn / Animation_Speed)
  292. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
  293. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 * SIN(SINE / 12)), RAD(10 - 5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, punchn / Animation_Speed)
  294. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 - 0 * SIN(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, punchn / Animation_Speed)
  295. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
  296. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
  297. end
  298. for i = 1,14 do
  299. Swait()
  300. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(-45)), punchn / Animation_Speed)
  301. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
  302. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 * SIN(SINE / 12)), RAD(10 - 5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, punchn / Animation_Speed)
  303. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 - 0 * SIN(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, punchn / Animation_Speed)
  304. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
  305. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
  306. end
  307. hitbox:disconnect()
  308. ATTACK = false
  309. end
  310.  
  311. function snap()
  312. local target = Mouse.Target
  313. if target.Parent ~= workspace then
  314. ATTACK = true
  315. Goodbye(target.Parent)
  316. for i = 1,8 do
  317. Swait()
  318. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed)
  319. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed)
  320. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(180), RAD(0 * SIN(SINE / 12)), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  321. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  322. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  323. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  324. end
  325. ATTACK = false
  326. end
  327. end
  328.  
  329. function Visible(Model)
  330. for i,v in pairs (Model:GetChildren()) do
  331. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" or v:IsA("MeshPart") and v.Name ~= "HumanoidRootPart" then
  332. v.Transparency = 0
  333. end
  334. end
  335. end
  336.  
  337. function Invisible(Model)
  338. for i,v in pairs (Model:GetChildren()) do
  339. if v:IsA("Part") or v:IsA("MeshPart") then
  340. v.Transparency = 1
  341. end
  342. end
  343. end
  344.  
  345. Head.face:remove()
  346. local OofB = Instance.new("Part",Effects)
  347. OofB.Size = Vector3.new(1.25, 1.25, 1.25)
  348. OofB.CanCollide = false
  349. OofB.Anchored = false
  350. OofB.Transparency = 1
  351. OofB.BrickColor = BrickColor.new("New Yeller")
  352. local Mesh = Instance.new("SpecialMesh",OofB)
  353. Mesh.MeshType = "Head"
  354. local Decal = Instance.new("Decal",nil)
  355. Decal.Name = "Face"
  356. Decal.Face = "Front"
  357. Decal.Texture = "rbxassetid://3154087082"
  358. local Weld = ezweld(OofB, RootPart, CFrame.new(0, 2.5, 0))
  359.  
  360. function hide()
  361. if hidden then
  362. hidden = false
  363. Visible(Character)
  364. OofB.Transparency = 1
  365. Decal.Parent = nil
  366. decal.Parent = hat
  367. song.Playing = true
  368. ATTACK = false
  369. else
  370. hidden = true
  371. Decal.Parent = OofB
  372. decal.Parent = nil
  373. song.Playing = false
  374. ATTACK = true
  375. RootPart.Anchored = false
  376. for i = 1,8 do
  377. Swait()
  378. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -10) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.75 / Animation_Speed)
  379. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed)
  380. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 8 * COS(SINE/6)), RAD(0 * SIN(SINE / 12)), RAD(170 + 6 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  381. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  382. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  383. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  384. end
  385. RootPart.Anchored = false
  386. Invisible(Character)
  387. OofB.Transparency = 0
  388. for i = 1,8 do
  389. Swait()
  390. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.75 / Animation_Speed)
  391. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed)
  392. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 8 * COS(SINE/6)), RAD(0 * SIN(SINE / 12)), RAD(170 + 6 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  393. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  394. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  395. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  396. end
  397. end
  398. end
  399.  
  400. anim = Humanoid.Animator
  401.  
  402. Mouse.Button1Down:connect(function()
  403. if ATTACK == false then
  404. if combo == 0 or combo == 2 then
  405. punch1()
  406. elseif combo == 1 then
  407. punch2()
  408. end
  409. end
  410. end)
  411.  
  412. Mouse.KeyDown:connect(function(key)
  413. if key == "c" then
  414. snap()
  415. end
  416. if key == "u" then
  417. hide()
  418. end
  419. end)
  420.  
  421. while true do
  422. Swait()
  423. if not Character:FindFirstChildOfClass("ForceField") then
  424. local u = Instance.new("ForceField",Character)
  425. u.Visible = false
  426. end
  427. anim.Parent = nil
  428. Humanoid.BreakJointsOnDeath = false
  429. Humanoid.PlatformStand = false
  430. SINE = SINE + CHANGE
  431. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  432. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  433. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  434. if(not Character:FindFirstChildOfClass'Shirt')then
  435. NewInstance("Shirt",Character,{ShirtTemplate='rbxassetid://593515265'})
  436. else
  437. Character:FindFirstChildOfClass'Shirt'.ShirtTemplate='rbxassetid://593515265'
  438. end
  439. if(not Character:FindFirstChildOfClass'Pants')then
  440. NewInstance("Pants",Character,{PantsTemplate='rbxassetid://1881920856'})
  441. else
  442. Character:FindFirstChildOfClass'Pants'.PantsTemplate='rbxassetid://1881920856'
  443. end
  444. for i,c in pairs (Character:GetChildren()) do
  445. if c:IsA("Part") then
  446. c.BrickColor = BRICKC("Lilac")
  447. c.Anchored = false
  448. c.Material = "Plastic"
  449. end
  450. end
  451. if ATTACK == false then
  452. if TORSOVELOCITY < 1 then
  453. MOVEMENT = "Stand"
  454. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed)
  455. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed)
  456. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 8 * COS(SINE/6)), RAD(0 * SIN(SINE / 12)), RAD(170 + 6 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  457. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  458. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  459. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  460. elseif TORSOVELOCITY > 1 then
  461. MOVEMENT = "Walking"
  462. if Humanoid.WalkSpeed < 25 then
  463. sped = 11
  464. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE /(sped/4))) * ANGLES(RAD(5 + 0 * SIN(SINE / sped)), RAD(0), RAD(0)), 1 / Animation_Speed)
  465. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(5 + 0 * SIN(SINE / sped)), RAD(0), RAD(0 - 0 * SIN(SINE / 12))), 1 / Animation_Speed)
  466. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45+ 0 * COS(SINE / 3), 0) * ANGLES(RAD(30 * SIN(SINE / (sped/2))), RAD(4 - 0 * SIN(SINE / 12)), RAD(5 + 0 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  467. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 3), 0) * ANGLES(RAD(-30 * SIN(SINE / (sped/2))), RAD(-4 + 0 * SIN(SINE / 12)), RAD(-5 - 0 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  468. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.2 * COS(SINE / (sped/2)), 0.2 * COS(SINE / (sped/2))) * ANGLES(RAD(-30 * SIN(SINE / (sped/2))), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  469. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.2 * COS(SINE / (sped/2)), -.2 * COS(SINE / (sped/2))) * ANGLES(RAD(30 * SIN(SINE / (sped/2))), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  470. end
  471. if Humanoid.WalkSpeed > 24 then
  472. sped = 8 / (Humanoid.WalkSpeed / 18)
  473. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE /(sped/4))) * ANGLES(RAD(15 + 0 * SIN(SINE / sped)), RAD(0), RAD(0)), 1 / Animation_Speed)
  474. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(-15 + 0 * SIN(SINE / sped)), RAD(0), RAD(0 - 0 * SIN(SINE / 12))), 1 / Animation_Speed)
  475. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45+ 0 * COS(SINE / 3), 0) * ANGLES(RAD(50 * SIN(SINE / (sped/2))), RAD(4 - 0 * SIN(SINE / 12)), RAD(5 + 0 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  476. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 3), 0) * ANGLES(RAD(-50 * SIN(SINE / (sped/2))), RAD(-4 + 0 * SIN(SINE / 12)), RAD(-5 - 0 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  477. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.25 * COS(SINE / (sped/2)), 0.25 * COS(SINE / (sped/2))) * ANGLES(RAD(-50 * SIN(SINE / (sped/2))), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  478. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.25 * COS(SINE / (sped/2)), -.25 * COS(SINE / (sped/2))) * ANGLES(RAD(50 * SIN(SINE / (sped/2))), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  479. end
  480. end
  481. end
  482. Humanoid.Health = Humanoid.MaxHealth
  483. script.Parent = WEAPONGUI
  484. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement