Advertisement
ZaGodlyNoob

All Might (FE COMPATIBLE, A GOD MODE EDIT)

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