Advertisement
sneakydodge123

all might FE

Jul 29th, 2018
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.31 KB | None | 0 0
  1. --[[
  2. ALL MIGHT
  3. By MonolithicDivinity
  4. This is likely to be kept updating as I find more bugs.
  5. [Commands]
  6. E to perform a SMASH, dealing a great amount of damage and flinging the opponent away
  7. Space to do a super jump, self explanitory.
  8. B to pause the theme song
  9. Do enjoy yourselves, and inform me of any bugs.
  10. --]]
  11. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  12. local Player,game,owner = owner,game
  13. local RealPlayer = Player
  14. do
  15. print("FE Compatibility code by Mokiros")
  16. local rp = RealPlayer
  17. script.Parent = rp.Character
  18.  
  19. --RemoteEvent for communicating
  20. local Event = Instance.new("RemoteEvent")
  21. Event.Name = "UserInput_Event"
  22.  
  23. --Fake event to make stuff like Mouse.KeyDown work
  24. local function fakeEvent()
  25. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  26. t.connect = t.Connect
  27. return t
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  32. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  33. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  34. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  35. end}
  36. --Merged 2 functions into one by checking amount of arguments
  37. CAS.UnbindAction = CAS.BindAction
  38.  
  39. --This function will trigger the events that have been :Connect()'ed
  40. local function te(self,ev,...)
  41. local t = m[ev]
  42. if t and t._fakeEvent then
  43. for _,f in pairs(t.Functions) do
  44. f(...)
  45. end
  46. end
  47. end
  48. m.TrigEvent = te
  49. UIS.TrigEvent = te
  50.  
  51. Event.OnServerEvent:Connect(function(plr,io)
  52. if plr~=rp then return end
  53. m.Target = io.Target
  54. m.Hit = io.Hit
  55. if not io.isMouse then
  56. local b = io.UserInputState == Enum.UserInputState.Begin
  57. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  58. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  59. end
  60. for _,t in pairs(CAS.Actions) do
  61. for _,k in pairs(t.Keys) do
  62. if k==io.KeyCode then
  63. t.Function(t.Name,io.UserInputState,io)
  64. end
  65. end
  66. end
  67. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  68. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  69. end
  70. end)
  71. Event.Parent = NLS([==[
  72. local Player = game:GetService("Players").LocalPlayer
  73. local Event = script:WaitForChild("UserInput_Event")
  74.  
  75. local Mouse = Player:GetMouse()
  76. local UIS = game:GetService("UserInputService")
  77. local input = function(io,a)
  78. if a then return end
  79. --Since InputObject is a client-side instance, we create and pass table instead
  80. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  81. end
  82. UIS.InputBegan:Connect(input)
  83. UIS.InputEnded:Connect(input)
  84.  
  85. local h,t
  86. --Give the server mouse data 30 times every second, but only if the values changed
  87. --If player is not moving their mouse, client won't fire events
  88. while wait(1/30) do
  89. if h~=Mouse.Hit or t~=Mouse.Target then
  90. h,t=Mouse.Hit,Mouse.Target
  91. Event:FireServer({isMouse=true,Target=t,Hit=h})
  92. end
  93. end]==],Player.Character)
  94.  
  95. ----Sandboxed game object that allows the usage of client-side methods and services
  96. --Real game object
  97. local _rg = game
  98.  
  99. --Metatable for fake service
  100. local fsmt = {
  101. __index = function(self,k)
  102. local s = rawget(self,"_RealService")
  103. if s then return s[k] end
  104. end,
  105. __newindex = function(self,k,v)
  106. local s = rawget(self,"_RealService")
  107. if s then s[k]=v end
  108. end,
  109. __call = function(self,...)
  110. local s = rawget(self,"_RealService")
  111. if s then return s(...) end
  112. end
  113. }
  114. local function FakeService(t,RealService)
  115. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  116. return setmetatable(t,fsmt)
  117. end
  118.  
  119. --Fake game object
  120. local g = {
  121. GetService = function(self,s)
  122. return self[s]
  123. end,
  124. Players = FakeService({
  125. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  126. },"Players"),
  127. UserInputService = FakeService(UIS,"UserInputService"),
  128. ContextActionService = FakeService(CAS,"ContextActionService"),
  129. }
  130. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  131. g.service = g.GetService
  132.  
  133. g.RunService = FakeService({
  134. RenderStepped = _rg:GetService("RunService").Heartbeat,
  135. BindToRenderStep = function(self,name,_,fun)
  136. self._btrs[name] = self.Heartbeat:Connect(fun)
  137. end,
  138. UnbindFromRenderStep = function(self,name)
  139. self._btrs[name]:Disconnect()
  140. end,
  141. },"RunService")
  142.  
  143. setmetatable(g,{
  144. __index=function(self,s)
  145. return _rg:GetService(s) or typeof(_rg[s])=="function"
  146. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  147. end,
  148. __newindex = fsmt.__newindex,
  149. __call = fsmt.__call
  150. })
  151. --Changing owner to fake player object to support owner:GetMouse()
  152. game,owner = g,g.Players.LocalPlayer
  153. end
  154. wait(.1)
  155. local p = game.Players.LocalPlayer
  156. local char = p.Character
  157. local mouse = p:GetMouse()
  158. local larm = char["Left Arm"]
  159. local rarm = char["Right Arm"]
  160. local lleg = char["Left Leg"]
  161. local rleg = char["Right Leg"]
  162. local hed = char.Head
  163. local torso = char.Torso
  164. local hum = char["Humanoid"]
  165. local cam = game.Workspace.CurrentCamera
  166. local root = char.HumanoidRootPart
  167. local deb = false
  168. local CanAttack = true
  169. local shot = 0
  170. local animpose = "Idle"
  171. local lastanimpose = "Idle"
  172. local stanceToggle = "Normal"
  173. local l = game:GetService("Lighting")
  174. local rs = game:GetService("RunService").RenderStepped
  175. local rp = char.HumanoidRootPart
  176. local bd = char:WaitForChild("Body Colors")
  177. math.randomseed(os.time())
  178. hum.WalkSpeed = 9
  179. char.Health:Destroy()
  180. hum.MaxHealth = 100
  181. wait(0.1)
  182. hum.Health = hum.MaxHealth
  183. SIDs = {1498946889}
  184. local eColors={'',''}
  185. -------------------------------
  186. Debounces = {CanAttack = true, NoIdl = false, Slashing = false, Slashed = false, RPunch = false, RPunched = false, LPunch = false, LPunched = false, Reaping = false, Reaped = false}
  187.  
  188. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  189. ------------------------------------------------------------------------------------------------------------
  190. --this was made for easy cosmetic editing
  191. --by koku
  192. lite = Instance.new("PointLight")
  193. lite.Parent = torso
  194. lite.Brightness = 10
  195. lite.Range = 8
  196. lite.Color = Color3.new(0,0,0)
  197.  
  198. --funcs
  199. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) --Creds to KingAbsalom
  200. local wld = Instance.new("Weld", wp1)
  201. wld.Part0 = wp0
  202. wld.Part1 = wp1
  203. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  204. end
  205.  
  206. for i,v in pairs(game.Players.LocalPlayer.Character.Head:children()) do
  207. if v:IsA("Sound") then
  208. v:Destroy()
  209. end
  210. end
  211. spawn(function()
  212. while wait() do
  213. for i,v in pairs(game.Players.LocalPlayer.Character:children()) do
  214. if v:IsA("Accessory") then
  215. v:Destroy()
  216. end
  217. end
  218. for i,v in pairs(game.Players.LocalPlayer.Character:children()) do
  219. if v:IsA("Hat") then
  220. v:Destroy()
  221. end
  222. end
  223. end end)
  224. spawn(function()
  225. game.Players.LocalPlayer.Character.Shirt:Destroy()
  226. game.Players.LocalPlayer.Character.Pants:Destroy()
  227. end)
  228. ypcall(function()
  229.  
  230. local shirt = Instance.new("Shirt", game.Players.LocalPlayer.Character)
  231. shirt.Name = "Shirt"
  232. local pants = Instance.new("Pants", game.Players.LocalPlayer.Character)
  233. pants.Name = "Pants"
  234. --clothing
  235. wait(.1)
  236. game.Players.LocalPlayer.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=368980206"
  237. game.Players.LocalPlayer.Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=368980663"
  238. game.Players.LocalPlayer.Character.Head.face:Remove()
  239. local face = Instance.new("Decal",hed)
  240. face.Texture="rbxassetid://2060629011"
  241. end)
  242. --skin
  243. bd.HeadColor = BrickColor.new("Pastel brown")
  244. bd.TorsoColor = BrickColor.new("Pastel brown")
  245. bd.LeftArmColor = BrickColor.new("Pastel brown")
  246. bd.RightArmColor = BrickColor.new("Pastel brown")
  247. bd.LeftLegColor = BrickColor.new("Pastel brown")
  248. bd.RightLegColor = BrickColor.new("Pastel brown")
  249. --betterhair by koku
  250.  
  251. larm.Size = larm.Size * 1.3
  252. rarm.Size = rarm.Size * 1.3
  253. lleg.Size = lleg.Size * 1.3
  254. rleg.Size = rleg.Size * 1.3
  255. torso.Size = torso.Size * 1.3
  256. hed.Size = hed.Size * 1.29
  257. root.Size = root.Size * 1.3
  258. newWeld(torso, larm, -.5, 0.5, 0)
  259. larm.Weld.C1 = CFrame.new(1, 0.5, 0)
  260. newWeld(torso, rarm, 1.5, 0.5, 0)
  261. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  262. newWeld(torso, hed, 0, 1.5, 0)
  263. newWeld(torso, lleg, -0.5, -1, 0)
  264. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  265. newWeld(torso, rleg, 0.5, -1, 0)
  266. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  267. newWeld(root, torso, 0, -1, 0)
  268. torso.Weld.C1 = CFrame.new(0, -1, 0)
  269. -------------
  270. hair = Instance.new("Part",game.Players.LocalPlayer.Character.Head)
  271. hair.BrickColor = BrickColor.new("Daisy orange")
  272. hair.Material = "Plastic"
  273. hair.Anchored = false
  274. hair.CanCollide = false
  275. hair.Archivable = false
  276. hair.Locked = true
  277. hair.Size = Vector3.new(1.5, 1.5, 1.5)
  278. hairm = Instance.new("SpecialMesh",hair)
  279. hairm.MeshType = "FileMesh"
  280. hairm.MeshId = "rbxassetid://1224124764"
  281. hairm.Scale = Vector3.new(0.07, .075, 0.073)
  282. newWeld(game.Players.LocalPlayer.Character.Head, hair, 0, 0, 0)
  283. hair.Weld.C1 = CFrame.new(-.6,.35,-.07) * CFrame.Angles(math.rad(180),math.rad(90),0)
  284. ----------------------------------------------------
  285. --------wait(.2)
  286. local p = game.Players.LocalPlayer
  287. local char = p.Character
  288. local mouse = p:GetMouse()
  289. local larm = char["Left Arm"]
  290. local rarm = char["Right Arm"]
  291. local lleg = char["Left Leg"]
  292. local rleg = char["Right Leg"]
  293. local hed = char.Head
  294. local torso = char.Torso
  295.  
  296. -------------------------------
  297.  
  298. --Converted with ttyyuu12345's model to script plugin v4
  299. function sandbox(var,func)
  300. local env = getfenv(func)
  301. local newenv = setmetatable({},{
  302. __index = function(self,k)
  303. if k=="script" then
  304. return var
  305. else
  306. return env[k]
  307. end
  308. end,
  309. })
  310. setfenv(func,newenv)
  311. return func
  312. end
  313. cors = {}
  314. mas = Instance.new("Model",game:GetService("Lighting"))
  315. ParticleEmitter0 = Instance.new("ParticleEmitter")
  316. ParticleEmitter0.Name = "ChargeAura"
  317. ParticleEmitter0.Parent = mas
  318. ParticleEmitter0.Speed = NumberRange.new(0.5, 1)
  319. ParticleEmitter0.Rotation = NumberRange.new(-180, 180)
  320. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.541176, 0.541176, 0.541176),Color3.new(1, 1, 1))
  321. ParticleEmitter0.Enabled = false
  322. ParticleEmitter0.LightEmission = 1
  323. ParticleEmitter0.Texture = "rbxassetid://1486899653"
  324. ParticleEmitter0.Transparency = NumberSequence.new(1,0.75,1)
  325. ParticleEmitter0.ZOffset = 0.5
  326. ParticleEmitter0.Size = NumberSequence.new(0.40000000596046,0.40000000596046)
  327. ParticleEmitter0.Lifetime = NumberRange.new(0.69999998807907, 0.69999998807907)
  328. ParticleEmitter0.LockedToPart = true
  329. ParticleEmitter0.Rate = 200
  330. ParticleEmitter0.RotSpeed = NumberRange.new(-50, 50)
  331. for i,v in pairs(mas:GetChildren()) do
  332. v.Parent = script
  333. pcall(function() v:MakeJoints() end)
  334. end
  335. mas:Destroy()
  336. for i,v in pairs(cors) do
  337. spawn(function()
  338. pcall(v)
  339. end)
  340. end
  341. glowey=ParticleEmitter0:Clone()
  342. glowey.Parent=torso
  343. glowey.Enabled=true
  344.  
  345. ------------------------------------------------------
  346. GroundWave = function()
  347.  
  348. local HandCF2 = CFrame.new(rp.Position - Vector3.new(0,3.3,0)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  349.  
  350. local asd = Instance.new("Part", rp)
  351.  
  352. asd.Anchored = true
  353. asd.CanCollide = false
  354. asd.Material = "Neon"
  355. asd.Locked = true
  356. asd.BrickColor=BrickColor.new("Institutional white")
  357. asd.Size = Vector3.new(1, 1, 1)
  358. asd.TopSurface = "Smooth"
  359. asd.BottomSurface = "Smooth"
  360. asd.Transparency = 0.35
  361. asd.CFrame = HandCF2
  362. wm = Instance.new("SpecialMesh", asd)
  363. wm.MeshId = "rbxassetid://20329976"
  364. coroutine.wrap(function()
  365. for i = 1, 14, 1 do
  366. wm.Scale = Vector3.new(1 + i*1.1, 1, 1 + i*1.1)
  367. asd.Size = wm.Scale
  368. asd.CFrame=CFrame.new(rp.Position - Vector3.new(0,3.3,0)) * CFrame.Angles(math.rad(0), math.rad(0)+i*math.random(-2,2), math.rad(0))
  369.  
  370. asd.Transparency = i/14
  371. wait()
  372. end
  373. wait()
  374.  
  375. asd:Destroy()
  376. end)()
  377.  
  378. end
  379. ----------------------------------
  380. spawn(function()
  381. while wait(.6) do
  382. if animpose~="Freefalling" then
  383. GroundWave()
  384. end
  385. end
  386. end)
  387. --------------------------------------------------
  388. --------------------------------------------------
  389.  
  390. mod = Instance.new("Model", char)
  391. function smash()
  392. part = Instance.new("Part", mod)
  393. part.Anchored = true
  394. part.CanCollide = false
  395. part.FormFactor = "Custom"
  396. part.Size = Vector3.new(0.2, 0.2, 0.2)
  397. part.CFrame = rarm.CFrame * CFrame.Angles(math.rad(0), 0, 0)
  398. part.Transparency = 0.7
  399. part.BrickColor = BrickColor.new("Institutional white")
  400. mesh = Instance.new("SpecialMesh", part)
  401. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  402. mesh.Scale = Vector3.new(4, 4, 4)
  403.  
  404. for i,v in pairs(FindNearestTorso(rarm.CFrame.p,5))do
  405. if v:FindFirstChild('Humanoid') then
  406. local Humanoid=v:FindFirstChild('Humanoid')
  407. Humanoid.Jump=true
  408. wait(.3)
  409.  
  410. Humanoid.Health=v.Humanoid.Health-(math.random(90,99))
  411. v:FindFirstChild("Head").Velocity = hed.CFrame.lookVector * 800
  412. spawn(function()
  413. wait(.4)
  414. v.Humanoid.PlatformStand=false
  415. end)
  416. end
  417. end
  418.  
  419. coroutine.resume(coroutine.create(function()
  420. for i = 0, 4, 0.2 do
  421. rs:wait()
  422. part.CFrame = rarm.CFrame
  423. part.Transparency = i
  424. mesh.Scale = mesh.Scale + Vector3.new(0.5, 1, 0.5)
  425. end
  426. part.Parent = nil
  427. end))
  428. end
  429. mod3 = Instance.new("Model", char)
  430. function FindNearestTorso(Position,Distance,SinglePlayer)
  431. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  432. local List = {}
  433. for i,v in pairs(workspace:GetChildren())do
  434. if v:IsA("Model")then
  435. if v:findFirstChild("Torso")then
  436. if v ~= char then
  437. if(v.Torso.Position -Position).magnitude <= Distance then
  438. table.insert(List,v)
  439. end
  440. end
  441. end
  442. end
  443. end
  444. return List
  445. end
  446.  
  447. mouse.KeyDown:connect(function(key)
  448. if key == "e" and Debounces.CanAttack == true then
  449. Debounces.CanAttack = false
  450. Debounces.NoIdl = true
  451. Debounces.ks = true
  452. Debounces.on = true
  453. for i = 1, 14 do
  454. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4, 0.9, 0.5) * CFrame.Angles(math.rad(0), math.rad(-40), math.rad(90)), 0.4)
  455. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.7, 0.9, -0.8) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(50)), 0.4)
  456. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(0), math.rad(60), 0), 0.4)
  457. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-60), 0), 0.4)
  458. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.15, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.4)
  459. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.15, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  460. if Debounces.on == false then
  461. break
  462. end
  463. rs:wait()
  464. end
  465. chrg = lleg.Touched:connect(function(ht)
  466. hit = ht.Parent
  467. if ht and hit:IsA("Model") then
  468. if hit:FindFirstChild("Humanoid") and hit.Name ~= p.Name then
  469. hit:FindFirstChild("Humanoid"):TakeDamage(2)
  470. hit:FindFirstChild("Humanoid").PlatformStand = true
  471. hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70
  472. end
  473. elseif ht and hit:IsA("Accessory") and hit.Parent.Name ~= p.Name and hit.Parent:FindFirstChild("Humanoid") then
  474. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2)
  475. hit:FindFirstChild("Humanoid").PlatformStand = true
  476. hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70
  477. end
  478. end)
  479. for i = 1, 8 do
  480. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2, 0.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 0.6)
  481. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6, 0.9, -0.8) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(50)), 0.6)
  482. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(0), math.rad(-90), 0), 0.6)
  483. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(90), 0), 0.6)
  484. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-15)), 0.5)
  485. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.8, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-15)), 0.5)
  486. if Debounces.on == false then
  487. break
  488. end
  489. rs:wait()
  490. end
  491. smash()
  492. z = Instance.new("Sound", char)
  493. z.SoundId = "rbxassetid://200632875"
  494. z.Volume = 1
  495. z.Pitch = 0.8
  496. z1 = Instance.new("Sound", char)
  497. z1.SoundId = "rbxassetid://200632875"
  498. z1.Volume = 1
  499. z1.Pitch = 0.9
  500. z:Play()
  501. z1:Play()
  502. wait(1)
  503. z:Destroy()
  504. z1:Destroy()
  505. chrg:disconnect()
  506. if Debounces.CanAttack == false then
  507. Debounces.CanAttack = true
  508. Debounces.on = false
  509. Debounces.NoIdl = false
  510. end
  511. end
  512. end)
  513. --------------------------------------------
  514.  
  515. --debounces start
  516. Debounces = {
  517. CanAttack = true;
  518. CanJoke = true;
  519. NoIdl = false;
  520. Slashing = false;
  521. Slashed = false;
  522. Slapping = false;
  523. Slapped = false;
  524. ks = false;
  525. Reaping = false;
  526. Reaped = false;
  527. }
  528. mode = "normal"
  529. --debounces end
  530.  
  531. fat = Instance.new("BindableEvent", script)--artificial heartbeat
  532. fat.Name = "Heartbeat"
  533. script:WaitForChild("Heartbeat")
  534. frame = 0.033333333333333
  535. tf = 0
  536. allowframeloss = false
  537. tossremainder = false
  538. lastframe = tick()
  539. script.Heartbeat:Fire()
  540. game:GetService("RunService").Heartbeat:connect(function(s, p)
  541.  
  542. tf = tf + s
  543. if frame <= tf then
  544. if allowframeloss then
  545. script.Heartbeat:Fire()
  546. lastframe = tick()
  547. else
  548. for i = 1, math.floor(tf / frame) do
  549. script.Heartbeat:Fire()
  550. end
  551. lastframe = tick()
  552. end
  553. if tossremainder then
  554. tf = 0
  555. else
  556. tf = tf - frame * math.floor(tf / frame)
  557. end
  558. end
  559. end
  560. )
  561. local Touche = {char.Name, }
  562. function swait(num)
  563. if num == 0 or num == nil then
  564. fat.Event:wait()
  565. else
  566. for i = 0, num do
  567. fat.Event:wait()
  568. end
  569. end
  570. end
  571.  
  572. ----------------------------------------------------
  573. function weld5(part0, part1, c0, c1)
  574. weeld=Instance.new("Weld", part0)
  575. weeld.Part0=part0
  576. weeld.Part1=part1
  577. weeld.C0=c0
  578. weeld.C1=c1
  579. return weeld
  580. end
  581. ----------------------------------------------------
  582. mod=Instance.new('Model',char)
  583.  
  584. ------
  585. mod4 = Instance.new("Model",char)
  586.  
  587.  
  588.  
  589. -------------------------------
  590. mouse.KeyDown:connect(function(key)
  591. if string.byte(key) == 52 then
  592. if Debounces.CanAttack == true then
  593. if stanceToggle ~= "Floating" then
  594. char["Humanoid"].WalkSpeed = 50
  595.  
  596. elseif Debounces.CanAttack == false then
  597. elseif stanceToggle == "Floating" then
  598. wait()
  599. end
  600. end
  601. end
  602. end)
  603. mouse.KeyUp:connect(function(key)
  604. if string.byte(key) == 52 then
  605.  
  606. char["Humanoid"].WalkSpeed = 9
  607. end
  608. end)
  609. --------------------------------
  610.  
  611. function lerp(a, b, t) -- Linear interpolation
  612. return a + (b - a)*t
  613. end
  614.  
  615. function slerp(a, b, t) --Spherical interpolation
  616. dot = a:Dot(b)
  617. if dot > 0.99999 or dot < -0.99999 then
  618. return t <= 0.5 and a or b
  619. else
  620. r = math.acos(dot)
  621. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  622. end
  623. end
  624. -----
  625. function matrixInterpolate(a, b, t)
  626. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  627. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  628. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  629. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  630. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  631. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  632. local t = v1:Dot(v2)
  633. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  634. return CFrame.new()
  635. end
  636. return CFrame.new(
  637. v0.x, v0.y, v0.z,
  638. v1.x, v1.y, v1.z,
  639. v2.x, v2.y, v2.z,
  640. v3.x, v3.y, v3.z)
  641. end
  642. ----------------------------------------------------
  643. function genWeld(a,b)
  644. local w = Instance.new("Weld",a)
  645. w.Part0 = a
  646. w.Part1 = b
  647. return w
  648. end
  649. function weld(a, b)
  650. local weld = Instance.new("Weld")
  651. weld.Name = "W"
  652. weld.Part0 = a
  653. weld.Part1 = b
  654. weld.C0 = a.CFrame:inverse() * b.CFrame
  655. weld.Parent = a
  656. return weld;
  657. end
  658. NewSound = function(parent, pitch, volume, id, looped)
  659.  
  660. local s = Instance.new("Sound", parent)
  661. s.Pitch = pitch
  662. s.Volume = volume
  663. s.SoundId = "rbxassetid://" .. id
  664. s.Looped = looped
  665. return s
  666. end
  667.  
  668. CBP = {0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1}
  669. ----------------------------------------------------
  670. function FindNearestTorso(Position,Distance,SinglePlayer)
  671. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  672. local List = {}
  673. for i,v in pairs(workspace:GetChildren())do
  674. if v:IsA("Model")then
  675. if v:findFirstChild("Torso")then
  676. if v ~= char then
  677. if(v.Torso.Position -Position).magnitude <= Distance then
  678. table.insert(List,v)
  679. end
  680. end
  681. end
  682. end
  683. end
  684. return List
  685. end
  686.  
  687. function Lerp(c1,c2,al)
  688. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  689. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  690. for i,v in pairs(com1) do
  691. com1[i] = v+(com2[i]-v)*al
  692. end
  693. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  694. end
  695.  
  696. ----------------------------------------------------
  697. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  698. local wld = Instance.new("Weld", wp1)
  699. wld.Part0 = wp0
  700. wld.Part1 = wp1
  701. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  702. end
  703. ---------------------
  704. mouse.KeyDown:connect(function(key)
  705. if key == "b" and mus.Playing == true then
  706. mus:Pause()
  707. elseif key == "b" and mus.Playing == false then
  708. mus.SoundId = "http://www.roblox.com/asset/?id="..SIDs[math.random(1,#SIDs)]
  709. mus:Play()
  710. end
  711. end)
  712.  
  713. ----------------------------------------------------
  714. spawn(function()
  715. hum.MaxHealth=1000
  716. wait()
  717. hum.Health=hum.MaxHealth
  718. end)
  719. ----------------------------------------------------
  720.  
  721. mouse.KeyDown:connect(function(key)
  722. if key == " " and Debounces.CanAttack == true then
  723. Debounces.CanAttack = false
  724. Debounces.on = true
  725. Debounces.NoIdl = true
  726. do
  727. wait(.1)
  728. local rng = Instance.new("Part", char)
  729. rng.Anchored = true
  730. rng.BrickColor = BrickColor.new("Institutional white")
  731. rng.CanCollide = false
  732. rng.FormFactor = 3
  733. rng.Name = "Ring"
  734. rng.Size = Vector3.new(1, 1, 1)
  735. rng.Transparency = 0.35
  736. rng.TopSurface = 0
  737. rng.BottomSurface = 0
  738. rng.Position = torso.Position - Vector3.new(0, 5, 0)
  739. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  740. local rngm = Instance.new("SpecialMesh", rng)
  741. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  742. rngm.Scale = Vector3.new(1, 1, 2)
  743. x = Instance.new("Sound", char)
  744. x.SoundId = "http://www.roblox.com/asset/?id=169445602"
  745. x.Looped = false
  746. x.Pitch = 0.7
  747. x.Volume = 1
  748. x:Play()
  749. coroutine.wrap(function()
  750. for i = 1, 60, 2 do
  751. rngm.Scale = Vector3.new(2 + i * 2, 2 + i * 2, 1)
  752. rng.Transparency = i / 60
  753. wait()
  754. end
  755. wait()
  756. rng:Destroy()
  757. end)()
  758. hum.WalkSpeed = 80
  759. BV = Instance.new("BodyVelocity", torso)
  760. BV.maxForce = Vector3.new(0, 10000, 0)
  761. BV.P = 270000
  762. BV.velocity = Vector3.new(0, 2500, 0)
  763. wait(2)
  764. BV:Destroy()
  765. Debounces.on = false
  766. Debounces.NoIdl = false
  767. local ry, ht, ps
  768. x:Destroy()
  769. z = Instance.new("Sound", hed)
  770. z.SoundId = "rbxassetid://142070127"
  771. z.Volume = 1
  772. wait(0.1)
  773. z:Play()
  774. -- Landing()
  775. hum.WalkSpeed = 9
  776. if Debounces.CanAttack == false then
  777. Debounces.CanAttack = true
  778. end
  779. end
  780. end
  781. end)
  782. ----------------------------------------------------
  783. local animpose = "Idle"
  784. local lastanimpose = "Idle"
  785. local grab = false
  786. local sine = 0
  787. local change = 1
  788. local val = 0
  789. local ffing = false
  790. -------------------------------
  791. jump = false
  792. rs:connect(function()
  793.  
  794. if char.Humanoid.Jump == true then
  795. jump = true
  796. else
  797. jump = false
  798. end
  799. char.Humanoid.FreeFalling:connect(function(f)
  800.  
  801. if f then
  802. ffing = true
  803. else
  804. ffing = false
  805. end
  806. end
  807. )
  808. sine = sine + change
  809. if jump == true then
  810. animpose = "Jumping"
  811. else
  812. if ffing == true then
  813. animpose = "Freefalling"
  814. else
  815. if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then
  816. animpose = "Idle"
  817. else
  818. if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 20 then
  819. animpose = "Walking"
  820. else
  821. if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude > 20 then
  822. animpose = "Running"
  823. end
  824. end
  825. end
  826. end
  827. end
  828. local RightLeg = CFrame.new(0.5, -1, 0)
  829. local LeftLeg = CFrame.new(-0.5, -1, 0)
  830. local lefth = (torso.CFrame*LeftLeg)
  831. local righth = (torso.CFrame*RightLeg)
  832.  
  833. local speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
  834.  
  835. local TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
  836.  
  837. local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
  838. local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
  839. if animpose ~= lastanimpose then
  840. sine = 0
  841. if Debounces.NoIdl == false then
  842. if stanceToggle == "Normal" then
  843. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3)
  844. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3)
  845. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2)
  846. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2)
  847. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2)
  848. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2)
  849. end
  850. wait()
  851. end
  852. end
  853. lastanimpose = animpose
  854. if Debounces.NoIdl == false then
  855. if animpose == "Idle" and stanceToggle == "Normal" then
  856. change = .5
  857. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3+0.005*math.cos(sine/10),0.6+0.01*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(15-0*math.cos(sine/10)),math.rad(-15-0*math.cos(sine/10)),math.rad(-10+0*math.cos(sine/10))), 0.8)
  858. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(-0.5, 0.5, .1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  859. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3-0.005*math.cos(sine/10),0.6+0.01*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(15-0*math.cos(sine/10)),math.rad(15+0*math.cos(sine/10)),math.rad(10-0*math.cos(sine/10))), 0.8)
  860. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(.5, 0.5, .1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  861. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1 + 0.05 * math.cos(sine / 10)) * CFrame.Angles(math.rad(0), math.rad(-0 + 0 * math.cos(sine / 10)), math.rad(0)), 0.45)
  862. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, -.5, 0) * CFrame.Angles(math.rad(-8 - 1 * math.sin(sine / 10)), math.rad(0), math.rad(0)), 0.45)
  863. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+4*math.cos(sine/10)), math.rad(0), 0), 0.1)
  864. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.0*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(0+0*math.cos(sine/10)), 0), 0.1)
  865. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1.6, -0.14+0.00*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
  866. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-0*math.cos(sine/10)), math.rad(5+0*math.cos(sine/10))), 0.1)
  867. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, -0.00) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
  868. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1.6, 0) * CFrame.Angles(math.rad(0), math.rad(10-0*math.cos(sine/10)), math.rad(-5+0*math.cos(sine/10))), 0.1)
  869. else
  870. if animpose == "Walking" and stanceToggle == "Normal" then
  871. change = .35
  872. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2, 0.5 - 0.05 * math.cos(sine / 2), math.sin(sine / 4) / 4) * CFrame.Angles(-math.sin(sine / 4) / 2.3, -math.sin(sine / 4) / 3, math.rad(10 + 7 * math.cos(sine / 2)) + root.RotVelocity.Y / 30), 0.4)
  873. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7)
  874. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, 0.5 + 0.05 * math.cos(sine / 2), -math.sin(sine / 4) / 4) * CFrame.Angles(math.sin(sine / 4) / 2.3, -math.sin(sine / 4) / 3, math.rad(-10 - 7 * math.cos(sine / 2)) + root.RotVelocity.Y / 30), 0.4)
  875. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7)
  876. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1 - 0.1 * math.cos(sine / 2)) * CFrame.Angles(math.rad(-10 - 4 * math.cos(sine / 2)), math.rad(0 - 8 * math.cos(sine / 4) / 2.3), math.rad(0)), 0.4)
  877. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, -.50, 0) * CFrame.Angles(math.rad(0), math.rad(0) - root.RotVelocity.Y / 10, math.rad(0)), 0.7)
  878. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -0.9 + 0.12 * math.cos(sine / 2), 0) * CFrame.Angles(math.rad(-4 + 2 * math.cos(sine / 2)), math.rad(0 + 14 * math.cos(sine / 4) / 2.3) + root.RotVelocity.Y / 30, math.rad(0) + root.RotVelocity.Y / 30), 0.4)
  879. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  880. lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.65, -1.5 - math.cos(sine / 4) * 0.3, 0 + math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3.4 * AngleThetaL.Z, AngleThetaL.X, math.sin(sine / 4) * 3 * -AngleThetaL.X - root.RotVelocity.Y / 20), 0.8)
  881. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  882. rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.65, -1.5 + math.cos(sine / 4) * 0.3, 0 - math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3.4 * -AngleThetaR.Z, AngleThetaR.X, math.sin(sine / 4) * 3 * AngleThetaR.X - root.RotVelocity.Y / 20), 0.8)
  883. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  884. else
  885. if animpose == "Running" and stanceToggle == "Normal" then
  886. change = .49
  887. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2)
  888. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(-.5, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  889. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24 + 0.6 * math.cos(sine / 4) / 1.4, 0.54, 0 - 0.8 * math.cos(sine / 4)) * CFrame.Angles(math.rad(6 + 140 * math.cos(sine / 4) / 1.2), math.rad(0), math.rad(20 + 70 * math.cos(sine / 4))), 0.2)
  890. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  891. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 2, -0.2) * CFrame.Angles(math.rad(-8 + 12 * math.cos(sine / 2) / 1.5), math.rad(0 + 12 * math.cos(sine / 4)), math.rad(0)), 0.2)
  892. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0) - root.RotVelocity.Y / 10, math.rad(0)), 0.5)
  893. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 + 0.2 * math.cos(sine / 2) / 1.7, 0) * CFrame.Angles(math.rad(-14 + 10 * math.cos(sine / 2) / 1.5), math.rad(0 - 12 * math.cos(sine / 4)) - root.RotVelocity.Y / 10, math.rad(0) + root.RotVelocity.Y / 20), 0.2)
  894. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  895. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.8 - 0.4 * math.cos(sine / 4) / 2, math.sin(sine / 4) / 2) * CFrame.Angles(math.rad(-10) + -math.sin(sine / 4) / 1.2, math.rad(0 + 12 * math.cos(sine / 4)) + root.RotVelocity.Y / 10, 0), 0.7)
  896. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(.1, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  897. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8 + 0.4 * math.cos(sine / 4) / 2, -math.sin(sine / 4) / 2) * CFrame.Angles(math.rad(-10) + math.sin(sine / 4) / 1.2, math.rad(0 + 12 * math.cos(sine / 4)) + root.RotVelocity.Y / 10, 0), 0.7)
  898. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(-.1, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  899. else
  900. if animpose == "Jumping" then
  901. change = .5
  902. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.2)
  903. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36)
  904. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.2)
  905. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  906. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.2)
  907. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  908. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  909. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  910. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  911. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  912. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  913. else
  914. if animpose == "Freefalling" then
  915. change = .5
  916. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(math.rad(-40), math.rad(20), math.rad(50)), 0.2)
  917. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36)
  918. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(110), math.rad(-20), math.rad(-30)), 0.2)
  919. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  920. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), 0), 0.2)
  921. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
  922. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  923. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, -0.5) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  924. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  925. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, 0, 0.5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
  926. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  927. end
  928. end
  929. end
  930. end
  931. end
  932. end
  933. end
  934.  
  935. )
  936.  
  937. local doe = 400
  938. coroutine.wrap(function()
  939. while 1 do
  940. swait()
  941. if doe <= 360 then
  942. doe = doe + 2
  943. else
  944. doe = 0
  945. end
  946. end
  947. end)()
  948. while true do
  949. swait()
  950. while true do
  951. swait()
  952. if rp:FindFirstChild("mus")==nil then
  953. mus = Instance.new("Sound",rp)
  954. mus.Name = "mus"
  955. mus.SoundId = "http://www.roblox.com/asset/?id="..SIDs[math.random(1,#SIDs)]
  956. mus.Looped = true
  957. mus.Volume = 6
  958. mus:Play()
  959. end
  960. end
  961. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement