Advertisement
Ban43_GodOfEdits

test allmight

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