Advertisement
EdgyHedgehog

All might great

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