Advertisement
lafur

Untitled

Nov 11th, 2018
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. 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 wait(0.1)
  6.  
  7. local p = game.Players.LocalPlayer
  8. local ma = p.Character
  9. local p = game.Players.LocalPlayer
  10. local char = p.Character
  11. local mouse = p:GetMouse()
  12. local larm = char["Left Arm"]
  13. local rarm = char["Right Arm"]
  14. local lleg = char["Left Leg"]
  15. idk = false
  16. local CFAngles = CFrame.Angles
  17. rock = false
  18. local RbxUtility = LoadLibrary("RbxUtility")
  19. local vt = Vector3.new
  20. euler = CFrame.fromEulerAnglesXYZ
  21. local Create = RbxUtility.Create
  22. local Character = char
  23. sizem = 1.5
  24.  
  25. local yellow = false
  26. local red = false
  27. NoAnims = false
  28. local green = false
  29.  
  30. local distance = 0
  31. local rleg = char["Right Leg"]
  32. local hed = char.Head
  33. local torso = char.Torso
  34. local hum = char.Humanoid
  35. local cam = game.Workspace.CurrentCamera
  36. local root = char.HumanoidRootPart
  37. local deb = false
  38. local shot = 0
  39. local debris=game:service"Debris"
  40. local l = game:GetService("Lighting")
  41. local rs = game:GetService("RunService").RenderStepped
  42. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  43. math.randomseed(os.time())
  44. for i,v in pairs (hed:GetChildren()) do
  45. if v:IsA("Sound") then
  46. v:Destroy()
  47. end
  48. end
  49.  
  50.  
  51. local acos = math.acos
  52. local sqrt = math.sqrt
  53. local Vec3 = Vector3.new
  54. local fromAxisAngle = CFrame.fromAxisAngle
  55.  
  56. local function toAxisAngle(CFr)
  57. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  58. local Angle = math.acos((R00+R11+R22-1)/2)
  59. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  60. A = A == 0 and 0.00001 or A
  61. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  62. B = B == 0 and 0.00001 or B
  63. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  64. C = C == 0 and 0.00001 or C
  65. local x = (R21-R12)/sqrt(A)
  66. local y = (R02-R20)/sqrt(B)
  67. local z = (R10-R01)/sqrt(C)
  68. return Vec3(x,y,z),Angle
  69. end
  70.  
  71.  
  72. char["Body Colors"].HeadColor = BrickColor.new("Really black")
  73. char["Body Colors"].TorsoColor = BrickColor.new("Really black")
  74. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  75. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  76. char["Body Colors"].LeftLegColor = BrickColor.new("Really black")
  77. char["Body Colors"].RightLegColor = BrickColor.new("Really black")
  78.  
  79. function Lerp(c1,c2,al)
  80. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  81. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  82. for i,v in pairs(com1) do
  83. com1[i] = v+(com2[i]-v)*al
  84. end
  85. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  86. end
  87.  
  88. rayModel = Instance.new("Model",char)
  89.  
  90. ids = {463804032,282572614}
  91.  
  92. pcall(function()
  93. torso.Sound:Destroy()
  94. end)
  95.  
  96. local s = Instance.new("Sound",torso)
  97. s.SoundId = "rbxassetid://282572614"
  98. s.Volume = .8
  99. s.Pitch = 1
  100. s.Looped = true
  101. s:Play()
  102.  
  103. hum.MaxHealth = 650
  104. hum.Health = hum.MaxHealth
  105. hum.Health = math.huge
  106.  
  107. Debounces = {
  108. CanAttack = true;
  109. NoIdl = false;
  110. Slashing = false;
  111. Slashed = false;
  112. RPunch = false;
  113. RPunched = false;
  114. LPunch = false;
  115. LPunched = false;
  116. attackNumber = 0;
  117. NoAnims = false;
  118. MaxEnergy = 285;
  119. FPS=0;
  120. Energy = 285;
  121. }
  122.  
  123. function FindNearestTorso(Position,Distance,SinglePlayer)
  124. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  125. local List = {}
  126. for i,v in pairs(workspace:GetChildren())do
  127. if v:IsA("Model")then
  128. if v:findFirstChild("Torso")then
  129. if v ~= char then
  130. if(v.Torso.Position -Position).magnitude <= Distance then
  131. table.insert(List,v)
  132. end
  133. end
  134. end
  135. end
  136. end
  137. return List
  138. end
  139.  
  140. it=Instance.new
  141.  
  142. function weldkek(prt,obj,cframe1,cframe2,cframe3,angles1,angles2,angles3)
  143. coroutine.resume(coroutine.create(function()
  144. for i=1, math.huge, 4 do
  145. rs:wait()
  146. if angles1 or angles2 or angles3 == nil then angles1 = 0,0,0 end
  147. if cframe1 or cframe2 or cframe3 == nil then cframe1 = 0,0,0 end
  148. if prt == nil then print("Error:Code 1;Not found first part") end
  149. if obj == nil then print("Error:Code 2;Not found second part") end
  150. prt.CFrame = obj.CFrame*CFrame.new(cframe1,cframe2,cframe3) * CFrame.Angles(angles1,angles2,angles3)
  151. end
  152. end))
  153. end
  154.  
  155. function weld2(prt,obj,cframe1,cframe2,cframe3,angles1,angles2,angles3)
  156. local w = Instance.new("Weld",obj)
  157. w.Part0 = prt
  158. w.Part1 = obj
  159. w.Parent = obj
  160. w.C0 = CFrame.new(cframe1,cframe2,cframe3) * CFrame.Angles(angles1,angles2,angles3)
  161. end
  162.  
  163. local AddNew = Instance.new
  164.  
  165. function rainbowgui2(kek)
  166. coroutine.wrap(function()
  167. while true do
  168. for i = 0,2,0.01 do
  169. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/26, 255/255, 225/255), i / 100)
  170. wait()
  171. end
  172. for i = 0,2,0.01 do
  173. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(30/255, 41/ 255, 255/255), i / 100)
  174. wait()
  175. end
  176. for i = 1,2,0.01 do
  177. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 170/255, 255/255), i / 100)
  178. wait()
  179. end
  180. for i = 1,2,0.01 do
  181. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 255/255, 50/255), i / 100)
  182. wait()
  183. end
  184. for i = 1,2,0.01 do
  185. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(245/255, 255/255, 46/255), i / 100)
  186. wait()
  187. end
  188. for i = 1,2,0.01 do
  189. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 0/255, 0/255), i / 100)
  190. wait()
  191. end
  192. wait()
  193. end
  194. end)()
  195. end
  196.  
  197.  
  198.  
  199. function rainbowgui(kek)
  200. coroutine.wrap(function()
  201. while true do
  202. for i = 0,2,0.01 do
  203. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 26/255, 225/255), i / 100)
  204. wait()
  205. end
  206. for i = 0,2,0.01 do
  207. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(30/255, 41/ 255, 255/255), i / 100)
  208. wait()
  209. end
  210. for i = 1,2,0.01 do
  211. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 170/255, 255/255), i / 100)
  212. wait()
  213. end
  214. for i = 1,2,0.01 do
  215. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 255/255, 50/255), i / 100)
  216. wait()
  217. end
  218. for i = 1,2,0.01 do
  219. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(245/255, 255/255, 46/255), i / 100)
  220. wait()
  221. end
  222. for i = 1,2,0.01 do
  223. kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 0/255, 0/255), i / 100)
  224. wait()
  225. end
  226. wait()
  227. end
  228. end)()
  229. end
  230.  
  231.  
  232.  
  233. function LerpCFrame(CFrame1,CFrame2,Num)
  234. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  235. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  236. end
  237.  
  238. function genWeld(a,b)
  239. local w = Instance.new("Weld",a)
  240. w.Part0 = a
  241. w.Part1 = b
  242. return w
  243. end
  244. function weld(a, b)
  245. local weld = Instance.new("Weld")
  246. weld.Name = "W"
  247. weld.Part0 = a
  248. weld.Part1 = b
  249. weld.C0 = a.CFrame:inverse() * b.CFrame
  250. weld.Parent = a
  251. return weld;
  252. end
  253. ----------------------------------------------------
  254. ypcall(function()
  255. hed.face.Texture = "rbxassetid://49585816"
  256. char.Shirt:Destroy()
  257. char.Pants:Destroy()
  258. shirt = Instance.new("Shirt", char)
  259. shirt.Name = "Shirt"
  260. pants = Instance.new("Pants", char)
  261. pants.Name = "Pants"
  262. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=236410507"
  263. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261"
  264. end)
  265.  
  266. ----------------------------------------------------
  267. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  268. local wld = Instance.new("Weld", wp1)
  269. wld.Part0 = wp0
  270. wld.Part1 = wp1
  271. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  272. end
  273. ----------------------------------------------------
  274. function weld5(part0, part1, c0, c1)
  275. weeld=Instance.new("Weld", part0)
  276. weeld.Part0=part0
  277. weeld.Part1=part1
  278. weeld.C0=c0
  279. weeld.C1=c1
  280. return weeld
  281. end
  282. ----------------------------------------------------
  283. larm.Size = larm.Size * sizem
  284. rarm.Size = rarm.Size * sizem
  285. lleg.Size = lleg.Size * sizem
  286. rleg.Size = rleg.Size * sizem
  287. torso.Size = torso.Size * sizem
  288. hed.Size = hed.Size * sizem
  289. root.Size = root.Size *sizem
  290.  
  291. hum.JumpPower = hum.JumpPower * sizem
  292. hum.WalkSpeed = hum.WalkSpeed * sizem
  293. hum.HipHeight = hum.HipHeight * sizem
  294.  
  295.  
  296.  
  297. function NoOutline(Part)
  298. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  299. end
  300. function swait(num)
  301. if num == 0 or num == nil then
  302. game:service'RunService'.Heartbeat:wait(0)
  303. else
  304. for i = 0, num do
  305. game:service'RunService'.Heartbeat:wait(0)
  306. end
  307. end
  308. end
  309.  
  310. function nooutline(part)
  311. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  312. end
  313.  
  314. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  315. local fp = Create("Part"){
  316. formFactor = formfactor,
  317. Parent = parent,
  318. Reflectance = reflectance,
  319. Transparency = transparency,
  320. CanCollide = false,
  321. Locked = true,
  322. BrickColor = BrickColor.new(tostring(brickcolor)),
  323. Name = name,
  324. Size = size,
  325. Position = Character.Torso.Position,
  326. Material = material,
  327. }
  328. nooutline(fp)
  329. return fp
  330. end
  331.  
  332. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  333. local Msh = Create(Mesh){
  334. Parent = part,
  335. Offset = offset,
  336. Scale = scale,
  337. }
  338. if Mesh == "SpecialMesh" then
  339. Msh.MeshType = meshtype
  340. Msh.MeshId = meshid
  341. end
  342. return Msh
  343. end
  344.  
  345.  
  346. function so(id, par, vol, pit)
  347. coroutine.resume(coroutine.create(function()
  348. local sou = Instance.new("Sound", par or workspace)
  349. sou.Volume = vol
  350. sou.Pitch = pit or 1
  351. sou.SoundId = Sounds[id].Id or id
  352. swait()
  353. sou:play()
  354. swait(6)
  355. sou:Remove()
  356. end))
  357. end
  358.  
  359. function weld(parent, part0, part1, c0, c1)
  360. local Weld = Create("Weld"){
  361. Parent = parent,
  362. Part0 = part0,
  363. Part1 = part1,
  364. C0 = c0,
  365. C1 = c1,
  366. }
  367. return Weld
  368. end
  369.  
  370. ----------------------------------------------------
  371. ----------------------------------------------------
  372.  
  373. local m = Instance.new("Model")
  374. m.Name = "Hat"
  375. p1 = Instance.new("Part", m)
  376. p1.BrickColor = BrickColor.new("Really black")
  377. p1.FormFactor = Enum.FormFactor.Symmetric
  378. p1.Size = Vector3.new(1*sizem, 1*sizem, 1*sizem)
  379. p1.CFrame = CFrame.new(-2.49043155, 8.24595642, -3.40113306, -5.48362732e-006, -0.978699088, 0.205299795, 3.27825546e-007, -0.205299854, -0.978699148, 1, -5.28991222e-006, 1.48639083e-006)
  380. p1.CanCollide = false
  381. p1.Locked = true
  382. p1.Name = "Head"
  383. p1.BottomSurface = Enum.SurfaceType.Smooth
  384. p1.TopSurface = Enum.SurfaceType.Smooth
  385. b1 = Instance.new("SpecialMesh", p1)
  386. b1.MeshId = "http://www.roblox.com/asset/?id=83499032"
  387. b1.TextureId = ""
  388. b1.MeshType = Enum.MeshType.FileMesh
  389. b1.Name = "Mesh"
  390. b1.VertexColor = Vector3.new(0, 0, 0)
  391. b1.Scale = Vector3.new(1*sizem, 1*sizem, 1*sizem)
  392. m.Parent = char
  393. m:BreakJoints()
  394. m:MakeJoints()
  395. local cor = Instance.new("Part", char.Hat)
  396. cor.Name = "Link"
  397. cor.Locked = true
  398. cor.BottomSurface = 0
  399. cor.CanCollide = false
  400. cor.Size = Vector3.new(1, 9, 1)
  401. cor.Transparency = 1
  402. cor.TopSurface = 0
  403. corw = Instance.new("Weld", cor)
  404. corw.Part0 = hed
  405. corw.Part1 = cor
  406. corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  407. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  408. weld1 = Instance.new("Weld", char.Hat)
  409. weld1.Part0 = cor
  410. weld1.Part1 = char.Hat.Head
  411. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  412.  
  413.  
  414. ----------------------------------------------------
  415. newWeld(torso, larm, -1.5, 0.5, 0)
  416. larm.Weld.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0,0,0)
  417. newWeld(torso, rarm, 1.5, 0.5, 0)
  418. rarm.Weld.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0,0,0)
  419. newWeld(torso, hed, 0, 1.5, 0)
  420. newWeld(torso, lleg, -0.5, -1, 0)
  421. lleg.Weld.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0)
  422. newWeld(torso, rleg, 0.5, -1, 0)
  423. rleg.Weld.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0)
  424. newWeld(root, torso, 0, -1, 0)
  425. torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(0,0,0)
  426. local Touche = {char.Name, }
  427. ----------------------------------------------------
  428. attack = false
  429. attackhit = false
  430.  
  431. attacknumber = 0
  432.  
  433. coroutine.wrap(function()
  434. while true do
  435. rs:wait()
  436. if attacknumber >= 2 then
  437. attacknumber = 0
  438. end
  439. end
  440. end)()
  441.  
  442.  
  443. throw = false
  444.  
  445.  
  446. mouse.KeyDown:connect(function(k)
  447. if k == "q" then
  448. if attack == false then attack = true
  449. attackhit = true
  450. attacknumber = attacknumber + 1
  451. NoAnims = true
  452. local sine = 1
  453.  
  454. char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
  455. char["Body Colors"].RightArmColor = BrickColor.new("Really red")
  456.  
  457. lleg.Touched:connect(function(ht)
  458. hit = ht.Parent
  459. if attackhit == true then
  460. if ht and hit:IsA("Model") then
  461. if hit:FindFirstChild("Humanoid") then
  462. if hit.Name ~= p.Name then
  463. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(45,70))
  464. z = Instance.new("Sound",hed)
  465. z.SoundId = "rbxassetid://294188918"
  466. z.Volume = 1
  467. z:Play()
  468. attackhit = false
  469. end
  470. end
  471. elseif ht and hit:IsA("Hat") then
  472. if hit.Parent.Name ~= p.Name then
  473. if hit.Parent:FindFirstChild("Humanoid") then
  474. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(70,177))
  475. hit.Parent.Humanoid.PlatformStand = true
  476. z = Instance.new("Sound",hed)
  477. z.SoundId = "rbxassetid://294188918"
  478. z.Volume = 1
  479. z:Play()
  480. attackhit = false
  481. end
  482. end
  483. end
  484. end
  485. end)
  486.  
  487. for i = 1, 10 do
  488. rleg.Weld.C0 = Lerp(rleg.Weld.C0,CFrame.new(.5 * sizem,-1 * sizem,0 * sizem)*CFrame.Angles(0,0,0),0.2)
  489. lleg.Weld.C0 = Lerp(lleg.Weld.C0,CFrame.new(-.5* sizem,-1.25 * sizem,-.5 * sizem)*CFrame.Angles(-30,0,0),0.4) -- attacking leg
  490. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,0.5 * sizem,0 * sizem)*CFrame.Angles(10.3,0,0),0.3)
  491. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(10.3,0,0),0.3)
  492. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0,-3.5 * sizem,0)*CFrame.Angles(math.rad(70),0,0),0.2)
  493. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  494.  
  495. rs:wait()
  496. end
  497. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  498. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  499. wait(.5)
  500. attackhit = false
  501. attack = false
  502. NoAnims = false
  503. end
  504. end
  505. end)
  506.  
  507. mouse.KeyDown:connect(function(k)
  508. if k == "f" then
  509. if attack == false then
  510. attack = true
  511. attacknumber = attacknumber + 1
  512. attackhit = true
  513. NoAnims = true
  514. local sine = 1
  515.  
  516. char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
  517. char["Body Colors"].RightArmColor = BrickColor.new("Really red")
  518.  
  519. for i = 1, 10 do
  520.  
  521. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(-90),5,-15+ -math.sin(sine/7)/9), 0.2)
  522.  
  523. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 *sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(90),5,-15+ -math.sin(sine/7)/9), 0.2)
  524.  
  525. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  526.  
  527. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, .5 * sizem, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  528.  
  529. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(0), 0, 0), .4)
  530.  
  531. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -.5 * sizem, -.5 * sizem) * CFrame.Angles(math.rad(0), -1, 0), .4)
  532.  
  533. rs:wait()
  534. end
  535.  
  536. wait(.5)
  537.  
  538. for i = 1, 10 do
  539.  
  540. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(-90),5,-15+ -math.sin(sine/7)/9), 0.2)
  541.  
  542. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(90),5,-15+ -math.sin(sine/7)/9), 0.2)
  543.  
  544. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  545.  
  546. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0),0, math.rad(0)), 0.2)
  547.  
  548. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(0), 0, 0), .4)
  549.  
  550. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.5 * sizem) * CFrame.Angles(math.rad(0), -1, 0), .4)
  551.  
  552. rs:wait()
  553. end
  554.  
  555. local s1 = AddNew("Sound",hed)
  556. s1.SoundId = "rbxassetid://231917744"
  557. s1.Name = "sm000sh"
  558. s1.Volume = 0.5
  559. s1.Pitch = 1
  560. s1:Play()
  561.  
  562. for i,v in pairs(FindNearestTorso(rleg.CFrame.p,15 * sizem))do
  563. if v:FindFirstChild('Humanoid') then
  564. v.Humanoid:TakeDamage(math.random(26 * 5 * sizem,59 * 5 * sizem))
  565. v.Humanoid.PlatformStand = true
  566. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 60 * sizem
  567. end
  568. end
  569.  
  570. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  571. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  572.  
  573. NoAnims = false
  574. attackhit = false
  575. attack = false
  576.  
  577. end
  578. end
  579. end)
  580.  
  581. mouse.KeyDown:connect(function(k)
  582. if k == "r" then
  583. if attack == false then
  584. attack = true
  585. attacknumber = attacknumber + 1
  586. attackhit = true
  587. NoAnims = true
  588. local sine = 1
  589.  
  590. char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
  591. char["Body Colors"].RightArmColor = BrickColor.new("Really red")
  592.  
  593. for i = 1, 3 do
  594.  
  595.  
  596. larm.Touched:connect(function(ht)
  597. hit = ht.Parent
  598. if attackhit == true then
  599. if ht and hit:IsA("Model") then
  600. if hit:FindFirstChild("Humanoid") then
  601. if hit.Name ~= p.Name then
  602. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(15 * sizem,27 * sizem))
  603. z = Instance.new("Sound",hed)
  604. z.SoundId = "rbxassetid://294188918"
  605. z.Volume = 1
  606. z:Play()
  607. end
  608. end
  609. elseif ht and hit:IsA("Hat") then
  610. if hit.Parent.Name ~= p.Name then
  611. if hit.Parent:FindFirstChild("Humanoid") then
  612. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(15 * sizem,45 * sizem))
  613. z = Instance.new("Sound",hed)
  614. z.SoundId = "rbxassetid://294188918"
  615. z.Volume = 1
  616. z:Play()
  617. end
  618. end
  619. end
  620. end
  621. end)
  622.  
  623. rarm.Touched:connect(function(ht)
  624. hit = ht.Parent
  625. if attackhit == true then
  626. if ht and hit:IsA("Model") then
  627. if hit:FindFirstChild("Humanoid") then
  628. if hit.Name ~= p.Name then
  629. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(15* sizem,27* sizem))
  630. z = Instance.new("Sound",hed)
  631. z.SoundId = "rbxassetid://294188918"
  632. z.Volume = 1
  633. z:Play()
  634. end
  635. end
  636. elseif ht and hit:IsA("Hat") then
  637. if hit.Parent.Name ~= p.Name then
  638. if hit.Parent:FindFirstChild("Humanoid") then
  639. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(15* sizem,45* sizem))
  640. z = Instance.new("Sound",hed)
  641. z.SoundId = "rbxassetid://294188918"
  642. z.Volume = 1
  643. z:Play()
  644. end
  645. end
  646. end
  647. end
  648. end)
  649.  
  650. for i = 1, 5 do
  651.  
  652. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
  653.  
  654. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5* sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
  655.  
  656. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(-80,-0,-0),0.4) -- punching arm
  657. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  658. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  659. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
  660. rs:wait()
  661. end
  662.  
  663.  
  664. for i = 1, 5 do
  665. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
  666.  
  667. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5* sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
  668.  
  669. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(0.5 * sizem,0.5 * sizem,-.8 * sizem)*CFrame.Angles(-80,0,-20),0.4) -- punching arm
  670. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  671. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  672. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
  673. rs:wait()
  674. end
  675.  
  676. for i = 1, 5 do
  677.  
  678. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
  679.  
  680. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5* sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
  681.  
  682. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(80,-0,-0),0.4) -- punching arm
  683. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  684. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  685. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
  686. rs:wait()
  687. end
  688.  
  689.  
  690.  
  691. for i = 1, 5 do
  692. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
  693.  
  694. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
  695.  
  696. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-0.5 * sizem,0.5 * sizem,-.8 * sizem)*CFrame.Angles(160,0,20),0.4) -- punching arm
  697. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  698. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  699. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
  700. rs:wait()
  701. end
  702. rs:wait()
  703. end
  704. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  705. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  706. NoAnims = false
  707. attackhit = false
  708. attack = false
  709. end
  710. end
  711. end)
  712.  
  713. mouse.KeyDown:connect(function(k)
  714. if k == "t" then
  715. if attack == false then
  716. attack = true
  717. attacknumber = attacknumber + 1
  718. attackhit = true
  719. NoAnims = true
  720. local sine = 1
  721.  
  722. char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
  723. char["Body Colors"].RightArmColor = BrickColor.new("Really red")
  724.  
  725. for i = 1, 20 do
  726. rleg.Weld.C0 = Lerp(rleg.Weld.C0,CFrame.new(.5 * sizem,-1 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  727. lleg.Weld.C0 = Lerp(lleg.Weld.C0,CFrame.new(-.5 * sizem,-1.25 * sizem,-.5 * sizem)*CFrame.Angles(-30,0,0),0.4) -- attacking leg
  728. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(-25.6,0,0),0.3)
  729. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(-25.6,0,0),0.3)
  730. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0,-1 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
  731. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  732. rs:wait()
  733. end
  734.  
  735. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  736. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  737.  
  738. lleg.Touched:connect(function(ht)
  739. hit = ht.Parent
  740. if attackhit == true then
  741. if ht and hit:IsA("Model") then
  742. if hit:FindFirstChild("Humanoid") then
  743. if hit.Name ~= p.Name then
  744. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(45* sizem,70* sizem))
  745. z = Instance.new("Sound",hed)
  746. z.SoundId = "rbxassetid://294188918"
  747. z.Volume = 1
  748. z:Play()
  749. attackhit = false
  750. end
  751. end
  752. elseif ht and hit:IsA("Hat") then
  753. if hit.Parent.Name ~= p.Name then
  754. if hit.Parent:FindFirstChild("Humanoid") then
  755. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(70* sizem,177* sizem))
  756. hit.Parent.Humanoid.PlatformStand = true
  757. z = Instance.new("Sound",hed)
  758. z.SoundId = "rbxassetid://294188918"
  759. z.Volume = 1
  760. z:Play()
  761. attackhit = false
  762. end
  763. end
  764. end
  765. end
  766. end)
  767.  
  768. wait()
  769.  
  770. attack = false
  771. atackhit = false
  772. NoAnims = false
  773. end
  774. end
  775. end)
  776.  
  777. mouse.KeyDown:connect(function(k)
  778. if k == "e" then
  779. if attack == false then
  780. attack = true
  781. attackhit = true
  782. NoAnims = true
  783. local sine = 1
  784.  
  785. char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
  786. char["Body Colors"].RightArmColor = BrickColor.new("Really red")
  787.  
  788. attacknumber = attacknumber + 1
  789.  
  790. if attacknumber == 1 then
  791.  
  792. rarm.Touched:connect(function(ht)
  793. hit = ht.Parent
  794. if attackhit == true then
  795. if ht and hit:IsA("Model") then
  796. if hit:FindFirstChild("Humanoid") then
  797. if hit.Name ~= p.Name then
  798. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(19* sizem,27* sizem))
  799. z = Instance.new("Sound",hed)
  800. z.SoundId = "rbxassetid://294188918"
  801. z.Volume = 1
  802. z:Play()
  803. attackhit = false
  804. end
  805. end
  806. elseif ht and hit:IsA("Hat") then
  807. if hit.Parent.Name ~= p.Name then
  808. if hit.Parent:FindFirstChild("Humanoid") then
  809. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(19* sizem,27* sizem))
  810. z = Instance.new("Sound",hed)
  811. z.SoundId = "rbxassetid://294188918"
  812. z.Volume = 1
  813. z:Play()
  814. attackhit = false
  815. end
  816. end
  817. end
  818. end
  819. end)
  820.  
  821. for i = 1, 10 do
  822.  
  823. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
  824.  
  825. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
  826.  
  827. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1- math.sin(sine/7)/20), .4)
  828.  
  829. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1+ math.sin(sine/7)/20), .4)
  830.  
  831. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5,0.5,-0.5)*CFrame.Angles(math.rad(0),-0.5,-33.5), 0.2)
  832. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),0,-15+ -math.sin(sine/7)/9), 0.2)
  833.  
  834. rs:wait()
  835. end
  836. attackhit = false
  837. end
  838.  
  839. if attacknumber == 2 then
  840. rarm.Touched:connect(function(ht)
  841. hit = ht.Parent
  842. if attackhit == true then
  843. if ht and hit:IsA("Model") then
  844. if hit:FindFirstChild("Humanoid") then
  845. if hit.Name ~= p.Name then
  846. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(15* sizem,27* sizem))
  847. z = Instance.new("Sound",hed)
  848. z.SoundId = "rbxassetid://294188918"
  849. z.Volume = 1
  850. z:Play()
  851. attackhit = false
  852. end
  853. end
  854. elseif ht and hit:IsA("Hat") then
  855. if hit.Parent.Name ~= p.Name then
  856. if hit.Parent:FindFirstChild("Humanoid") then
  857. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(15* sizem,45* sizem))
  858. z = Instance.new("Sound",hed)
  859. z.SoundId = "rbxassetid://294188918"
  860. z.Volume = 1
  861. z:Play()
  862. attackhit = false
  863. end
  864. end
  865. end
  866. end
  867. end)
  868. for i = 1, 5 do
  869.  
  870. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
  871.  
  872. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
  873.  
  874. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(-80,-0,-0),0.4) -- punching arm
  875. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  876. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  877. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
  878. rs:wait()
  879. end
  880.  
  881.  
  882.  
  883. for i = 1, 5 do
  884. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
  885.  
  886. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
  887.  
  888. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(0.5 * sizem,0.5 * sizem,-.8 * sizem)*CFrame.Angles(-80,0,-20),0.4) -- punching arm
  889. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  890. hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
  891. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
  892. rs:wait()
  893. end
  894. attackhit = false
  895. end
  896. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  897. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  898. wait(.3)
  899. attackhit = false
  900.  
  901. attack = false
  902. NoAnims = false
  903. end
  904. end
  905. end)
  906.  
  907. ----------------------------------------------------
  908. mouse.KeyDown:connect(function(key)
  909. if string.byte(key) == 52 then
  910. char.Humanoid.WalkSpeed = 60 * sizem
  911. end
  912. end)
  913. mouse.KeyUp:connect(function(key)
  914. if string.byte(key) == 52 then
  915. char.Humanoid.WalkSpeed = 8
  916. end
  917. end)
  918. -------------------------------
  919. local animpose = "Idle"
  920. local lastanimpose = "Idle"
  921. local sine = 0
  922. local change = 1
  923. local val = 0
  924. local ffing = false
  925. local jump = false
  926. -------------------------------
  927. game:GetService("RunService").RenderStepped:connect(function()
  928. --[[if char.Humanoid.Jump == true then
  929. jump = true
  930. else
  931. jump = false
  932. end]]
  933. char.Humanoid.FreeFalling:connect(function(f)
  934. if f then
  935. ffing = true
  936. else
  937. ffing = false
  938. end
  939. end)
  940. sine = sine + change
  941. if jump == true then
  942. animpose = "Jumping"
  943. elseif ffing == true then
  944. animpose = "Freefalling"
  945. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  946. animpose = "Idle"
  947. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  948. animpose = "Walking"
  949. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 * sizem then
  950. animpose = "Running"
  951. end
  952. if animpose ~= lastanimpose then
  953. sine = 0
  954. if Debounces.NoIdl == false then
  955. if animpose == "Idle" then
  956. for i = 1, 0.5 do
  957.  
  958. if NoAnims == false then
  959.  
  960. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(0),-0.5,-33.5+ -math.sin(sine/7)/9), 0.2)
  961.  
  962. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),5,-15+ -math.sin(sine/7)/9), 0.2)
  963.  
  964. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
  965.  
  966. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
  967.  
  968. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1- math.sin(sine/7)/20), .4)
  969.  
  970. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1+ math.sin(sine/7)/20), .4)
  971.  
  972.  
  973. wait()
  974. end
  975. end
  976. elseif animpose == "Jumping" then
  977. for i = 1, 0.5 do
  978.  
  979. if NoAnims == false then
  980.  
  981. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  982.  
  983. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  984.  
  985. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4)
  986.  
  987. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(30.5), math.rad(0)), 0.4)
  988.  
  989. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0,0, math.rad(0)), 0.4)
  990.  
  991. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.5) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  992.  
  993. rs:wait()
  994. end
  995. end
  996. elseif animpose == "Walking" then
  997. for i = 1, 1.5 do
  998. if NoAnims == false then
  999.  
  1000. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(0),-0.5,-33.5+ -math.sin(sine/7)/9), 0.2)
  1001.  
  1002. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),5,-15+ -math.sin(sine/7)/9), 0.2)
  1003.  
  1004. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
  1005.  
  1006. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
  1007.  
  1008. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem-0.3*math.cos(sine/7)/2, -1 * sizem-0.3*math.cos(sine/7)/2, -.05 * sizem + math.sin(sine/7)/5) * CFrame.Angles(math.rad(0), -18 + math.sin(sine/7)/2.3, 0+ math.sin(sine/7)/2.3), .4)
  1009.  
  1010. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem+0.3*math.cos(sine/7)/2, -1 * sizem+0.3*math.cos(sine/7)/2, -.05 * sizem + -math.sin(sine/7)/5) * CFrame.Angles(math.rad(0), -18 + math.sin(sine/7)/2.3, 0+ -math.sin(sine/7)/2.3), .4)
  1011.  
  1012. wait()
  1013. end
  1014. end
  1015. elseif animpose == "Running" then
  1016. for i = 1, 1 do
  1017. if NoAnims == false then
  1018.  
  1019. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0), 0.2)
  1020.  
  1021. larm.Weld.C0 =Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1022.  
  1023. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
  1024.  
  1025. torso.Weld.C0 =Lerp(torso.Weld.C0, CFrame.new(0,1,0)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1026.  
  1027. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5 * sizem - .2,-1 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1028.  
  1029. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5 * sizem,-1 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1030.  
  1031. rs:wait()
  1032. end
  1033. end
  1034. end
  1035. else
  1036. end
  1037. end
  1038. lastanimpose = animpose
  1039. if Debounces.NoIdl == false then
  1040. if animpose == "Idle" then
  1041. change = 0.5
  1042. if NoAnims == false then
  1043.  
  1044. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(0),-0.5,-33.5+ -math.sin(sine/7)/9), 0.2)
  1045.  
  1046. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),5,-15+ -math.sin(sine/7)/9), 0.2)
  1047.  
  1048. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
  1049.  
  1050. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
  1051.  
  1052. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem , -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1- math.sin(sine/7)/20), .4)
  1053.  
  1054. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem , -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1+ math.sin(sine/7)/20), .4)
  1055.  
  1056.  
  1057.  
  1058. end
  1059.  
  1060.  
  1061. elseif animpose == "Jumping" then
  1062. change = 1
  1063. if NoAnims == false then
  1064.  
  1065. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  1066.  
  1067. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  1068.  
  1069. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4)
  1070.  
  1071. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(30.5), math.rad(0)), 0.4)
  1072.  
  1073. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0,0, math.rad(0)), 0.4)
  1074.  
  1075. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.5) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
  1076.  
  1077. rs:wait()
  1078. end
  1079.  
  1080. elseif animpose == "Walking" then
  1081. change = 1
  1082.  
  1083. if NoAnims == false then
  1084.  
  1085. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(0),-0.5,-33.5+ -math.sin(sine/7)/9), 0.2)
  1086.  
  1087. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),5,-15+ -math.sin(sine/7)/9), 0.2)
  1088.  
  1089. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
  1090.  
  1091. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
  1092.  
  1093. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem - 0.3*math.cos(sine/7)/2, -1 * sizem - 0.3*math.cos(sine/7)/2, -.05 * sizem + math.sin(sine/7)/5) * CFrame.Angles(math.rad(0), -18 + math.sin(sine/7)/2.3, 0+ math.sin(sine/7)/2.3), .4)
  1094.  
  1095. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem + 0.3*math.cos(sine/7)/2, -1 * sizem+ 0.3*math.cos(sine/7)/2, -.05 * sizem + -math.sin(sine/7)/5) * CFrame.Angles(math.rad(0), -18 + math.sin(sine/7)/2.3, 0+ -math.sin(sine/7)/2.3), .4)
  1096.  
  1097. end
  1098.  
  1099. elseif animpose == "Running" then
  1100. change = 1
  1101. if NoAnims == false then
  1102.  
  1103. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0), 0.2)
  1104.  
  1105. larm.Weld.C0 =Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1106.  
  1107. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
  1108.  
  1109. torso.Weld.C0 =Lerp(torso.Weld.C0, CFrame.new(0,1,0)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1110.  
  1111. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5 * sizem - .2,-1 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1112.  
  1113. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5 * sizem,-1 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
  1114.  
  1115.  
  1116.  
  1117. end
  1118. end
  1119. end
  1120. end)
  1121.  
  1122. --------calcs------
  1123. -- +2*math.cos(sine/14)
  1124. -----------------------------
  1125.  
  1126. wait(1)
  1127. hum.Health = math.huge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement