Advertisement
lafur

Untitled

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