TrashCan


SUBMITTED BY: Pamlau

DATE: March 8, 2017, 10:44 a.m.

FORMAT: Lua

SIZE: 41.1 kB

HITS: 592

  1. do
  2. function GetDiscoColor(hue)
  3. hue=hue/4
  4. local section = hue % 1 * 3
  5. local secondary = 0.5 * math.pi * (section % 1)
  6. local thing
  7. if section < 1 then
  8. thing=Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  9. elseif section < 2 then
  10. thing=Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  11. else
  12. thing=Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  13. end
  14. return thing
  15. end
  16. function VertexRainbow()
  17. return Vector3.new(math.random(),math.random(),math.random())
  18. end
  19. local plr = game.Players.LocalPlayer
  20. local chr = plr.Character
  21. local maus = plr:GetMouse()
  22. local PGui=plr.PlayerGui
  23. local lleg = chr["Left Leg"]
  24. local rleg = chr["Right Leg"]
  25. local larm = chr["Left Arm"]
  26. local rarm = chr["Right Arm"]
  27. local hed = chr.Head
  28. local rutprt = chr.HumanoidRootPart
  29. local torso = chr.Torso
  30. local otheranims=false
  31. local swimming=false
  32. chr.Animate.Disabled=true
  33. local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
  34. local RunSpeed=80
  35. local WlkSpeed=16
  36. local SwimSpeed=14
  37. local SwimDashSpeed=1000
  38. local anim = "Idling"
  39. local lastanim = "Idling"
  40. local flying=false
  41. local val = 0
  42. local syne = 0
  43. local num = 0
  44. local runtime = 0
  45. local TackleCD=false
  46. local currentdecalid=1
  47. local crouching=false
  48. local bboxout=false
  49. local ltout=false
  50. local standing=false
  51. local throwcd=false
  52. local displaying=false
  53. local imageType="Custom"
  54. local pseudohead=hed:Clone()
  55. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  56. pseudohead.Name='PseudoHead'
  57. pseudohead.Parent=chr.Head
  58. local pseudoweld=Instance.new('Weld',torso)
  59. pseudoweld.Part0=hed
  60. pseudoweld.Name='PseudoHeadWeld'
  61. pseudoweld.Part1=pseudohead
  62. hed.Transparency=1
  63. for i,x in pairs(chr:GetChildren()) do
  64. if x:IsA'Hat' then x:destroy'' end end
  65. for i,x in pairs(chr:GetChildren()) do
  66. for a,v in pairs(x:GetChildren()) do
  67. if v:IsA'CharacterMesh' then v:destroy''
  68. end
  69. end
  70. end
  71. local alldecals={"387418012","339886198","339302474","339302316","339303212","339302607","339302826","339303065","339303400","150037981","167241003","235558077","265452635","260161937","242814125","230417107","252230874","231949998","229222676","181607551","231953209","123431503","184905165","172755711","161494218","292791711","205912841","68953525","180163702","123385234","138847283","159127645","172511645","210175195","206539362","192486406","96613287","131764585","168427244","128595009","96687581","171590601","172329151","72116648","221557708","214883980"}
  72. local decals={"387418012","235558078","339302317","339303401","265452690","339303066","339302827","242814126","181607552"}
  73. local musics={"142594142","202020876"}
  74. local currentsound=1
  75. local GarbageTypes={{"Grapes","16940906","16940893",Vector3.new(.8,.8,.8),"284627310"},{"Lightbulb","1376459","1376456",Vector3.new(1,1,1),"235040768"},{"Turkey","13073626","13073598",Vector3.new(2,2,2),"284627310"},{"JuiceBottle","57219451","57219520",Vector3.new(1.75,1.75,1.75),"235040768"},{"Can","10470609","10470600",Vector3.new(1,1,1),"284627310"},{"dunno lol","55304507","55304460",Vector3.new(1,1,1),"235040768"},{"Burger","16646125","16432575",Vector3.new(1.1,1.1,1.1),"284627310"},{"Candy","38160912","38161977",Vector3.new(1.15,1.15,1.15),"154162195"},{"Sandwich","12510164","12509672",Vector3.new(2.5,2.5,2.5),"284627310"}}
  76. coroutine.wrap(function()
  77. for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
  78. function Lerp(a, b, i)
  79. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  80. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  81. local calx = com1[1] + (com2[1] - com1[1]) * i
  82. local caly = com1[2] + (com2[2] - com1[2]) * i
  83. local calz = com1[3] + (com2[3] - com1[3]) * i
  84. local cala = com1[4] + (com2[4] - com1[4]) * i
  85. local calb = com1[5] + (com2[5] - com1[5]) * i
  86. local calc = com1[6] + (com2[6] - com1[6]) * i
  87. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  88. end
  89. function TwnSingleNumber(s,f,m)
  90. local wot=s+(f-s)*m
  91. return wot
  92. end
  93. function TwnVector3(q,w,e)
  94. local begin={q.x,q.y,q.z}
  95. local ending={w.x,w.y,w.z}
  96. local bgx=begin[1]+(ending[1]-begin[1])*e
  97. local bgy=begin[2]+(ending[2]-begin[2])*e
  98. local bgz=begin[3]+(ending[3]-begin[3])*e
  99. return Vector3.new(bgx,bgy,bgz)
  100. end
  101. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  102. wld = Instance.new("Weld", wp1)
  103. wld.Part0 = wp0
  104. wld.Part1 = wp1
  105. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  106. end
  107. newWeld(law, torso, larm, -1.5, 0.5, 0)
  108. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  109. newWeld(llw, torso, lleg, -.5, -2, 0)
  110. newWeld(rlw, torso, rleg, .5, -2, 0)
  111. newWeld(hw, torso, hed, 0, 1.5, 0)
  112. local rutwald=Instance.new('Weld',rutprt)
  113. rutwald.Part0=rutprt
  114. rutwald.Part1=torso
  115. rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
  116. larm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  117. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  118. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  119. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  120. local bvelo=Instance.new('BodyVelocity',rutprt)
  121. bvelo.maxForce=Vector3.new(0,0,0)
  122. local kan=Instance.new('Model',chr)
  123. kan.Name="true can"
  124. local cen=Instance.new('Model',kan)
  125. cen.Name='no'
  126. local can=Instance.new('Model',cen)
  127. can.Name="i cri"
  128. local base=Instance.new('Part',can)
  129. base.formFactor=3
  130. base.TopSurface=10
  131. base.BottomSurface=10
  132. base.LeftSurface=10
  133. base.RightSurface=10
  134. base.FrontSurface=10
  135. base.BackSurface=10
  136. base.Locked=true
  137. base.CanCollide=true
  138. base.Anchored=false
  139. base.BrickColor=BrickColor.new('Fossil')
  140. base.Name='Can'
  141. base.Size=Vector3.new(3,3.5,3)
  142. base.Material='Metal'
  143. local canm=Instance.new("CylinderMesh",base)
  144. local base2=Instance.new('Part',can)
  145. base2.formFactor=3
  146. base2.TopSurface=10
  147. base2.BottomSurface=10
  148. base2.LeftSurface=10
  149. base2.RightSurface=10
  150. base2.FrontSurface=10
  151. base2.BackSurface=10
  152. base2.Locked=true
  153. base2.CanCollide=false
  154. base2.Anchored=false
  155. base2.BrickColor=BrickColor.new('Really black')
  156. base2.Name='InnerCan'
  157. base2.Size=Vector3.new(2.8,.2,2.8)
  158. base2.Material='SmoothPlastic'
  159. local lid=Instance.new('Part',can)
  160. local canm2=Instance.new("CylinderMesh",base2)
  161. lid.Name='Lid'
  162. lid.formFactor=3
  163. lid.TopSurface=10
  164. lid.BottomSurface=10
  165. lid.LeftSurface=10
  166. lid.RightSurface=10
  167. lid.BackSurface=10
  168. lid.FrontSurface=10
  169. lid.CanCollide=true
  170. lid.Anchored=false
  171. lid.Locked=true
  172. lid.Size=Vector3.new(3,3,.2)
  173. local heli1=Instance.new('Part',can)
  174. heli1.formFactor=3
  175. heli1.TopSurface=10
  176. heli1.BottomSurface=10
  177. heli1.LeftSurface=10
  178. heli1.RightSurface=10
  179. heli1.FrontSurface=10
  180. heli1.BackSurface=10
  181. heli1.Locked=true
  182. heli1.CanCollide=true
  183. heli1.Anchored=false
  184. heli1.BrickColor=BrickColor.new('Dark stone grey')
  185. heli1.Name='Can'
  186. heli1.Size=Vector3.new(.1,3,.1)
  187. heli1.Material='Metal'
  188. local helim1=Instance.new("CylinderMesh",heli1)
  189. helim1.Scale=Vector3.new(.5,1,.5)
  190. local heli2=Instance.new('Part',can)
  191. heli2.formFactor=3
  192. heli2.TopSurface=10
  193. heli2.BottomSurface=10
  194. heli2.LeftSurface=10
  195. heli2.RightSurface=10
  196. heli2.FrontSurface=10
  197. heli2.BackSurface=10
  198. heli2.Locked=true
  199. heli2.CanCollide=true
  200. heli2.Anchored=false
  201. heli2.BrickColor=BrickColor.new('Dark stone grey')
  202. heli2.Name='Can'
  203. heli2.Size=Vector3.new(.1,.1,2.9)
  204. heli2.Material='Metal'
  205. local helim2=Instance.new("BlockMesh",heli2)
  206. helim2.Scale=Vector3.new(.5,.1,1)
  207. local heli3=Instance.new('Part',can)
  208. heli3.formFactor=3
  209. heli3.TopSurface=10
  210. heli3.BottomSurface=10
  211. heli3.LeftSurface=10
  212. heli3.RightSurface=10
  213. heli3.FrontSurface=10
  214. heli3.BackSurface=10
  215. heli3.Locked=true
  216. heli3.CanCollide=true
  217. heli3.Anchored=false
  218. heli3.BrickColor=BrickColor.new('Dark stone grey')
  219. heli3.Name='Can'
  220. heli3.Size=Vector3.new(.1,.1,2.9)
  221. heli3.Material='Metal'
  222. local helim3=Instance.new("BlockMesh",heli3)
  223. helim3.Scale=Vector3.new(.5,.1,1)
  224. local hits=Instance.new('Sound',lid)
  225. hits.Name='hit'
  226. hits.SoundId="http://www.roblox.com/asset?id=138259748"
  227. hits.Volume=.3
  228. hits.Pitch=.9
  229. local opens=Instance.new('Sound',lid)
  230. opens.Name='Open'
  231. opens.Volume=.225
  232. opens.Pitch=.9
  233. opens.SoundId="http://www.roblox.com/asset?id=144467622"
  234. local lidm=Instance.new('SpecialMesh',lid)
  235. lidm.Scale=Vector3.new(1.8,1.8,3)
  236. lidm.TextureId="http://www.roblox.com/asset/?id=75521030"
  237. lidm.MeshId="http://www.roblox.com/asset/?id=75521015"
  238. coroutine.resume(coroutine.create(function()
  239. while wait() do
  240. lidm.VertexColor=VertexRainbow()
  241. end
  242. end))
  243. local waifu=Instance.new('Part',can)
  244. waifu.Name='cri cri'
  245. waifu.formFactor=3
  246. waifu.TopSurface=10
  247. waifu.BottomSurface=10
  248. waifu.LeftSurface=10
  249. waifu.RightSurface=10
  250. waifu.BackSurface=10
  251. waifu.FrontSurface=10
  252. waifu.CanCollide=false
  253. waifu.Anchored=false
  254. waifu.Transparency=1
  255. waifu.Locked=true
  256. waifu.Size=Vector3.new(2,.2,2)
  257. local img=Instance.new('Decal',waifu)
  258. img.Texture="http://www.roblox.com/asset?id="..alldecals[math.random(1,#alldecals)]
  259. img.Face='Top'
  260. local bbox=Instance.new('Part',can)
  261. bbox.Name='boombox'
  262. bbox.formFactor=3
  263. bbox.TopSurface=10
  264. bbox.BottomSurface=10
  265. bbox.LeftSurface=10
  266. bbox.RightSurface=10
  267. bbox.BackSurface=10
  268. bbox.FrontSurface=10
  269. bbox.CanCollide=false
  270. bbox.Anchored=false
  271. bbox.Transparency=0
  272. bbox.Locked=true
  273. bbox.Size=Vector3.new(2,2,1)
  274. local bbms=Instance.new('SpecialMesh',bbox)
  275. bbms.MeshId="http://www.roblox.com/asset?id=319536754"
  276. bbms.TextureId="http://www.roblox.com/asset?id=319536704"
  277. local bulb=Instance.new('Part',can)
  278. bulb.Name='lightbulb'
  279. bulb.formFactor=3
  280. bulb.TopSurface=10
  281. bulb.BottomSurface=10
  282. bulb.LeftSurface=10
  283. bulb.RightSurface=10
  284. bulb.BackSurface=10
  285. bulb.FrontSurface=10
  286. bulb.CanCollide=false
  287. bulb.Anchored=false
  288. bulb.Transparency=.4
  289. bulb.Locked=true
  290. bulb.Size=Vector3.new(.8,1,.8)
  291. local lt=Instance.new('PointLight',bulb)
  292. lt.Range=16
  293. lt.Color=BrickColor.new('New Yeller').Color
  294. lt.Enabled=false
  295. lt.Shadows=true
  296. local blbms=Instance.new('SpecialMesh',bulb)
  297. blbms.MeshId="http://www.roblox.com/asset?id=1376459"
  298. blbms.TextureId="http://www.roblox.com/asset?id=1376456"
  299. local canWeld=Instance.new('Weld',torso)
  300. canWeld.Part0=torso
  301. canWeld.Part1=base
  302. canWeld.C1=CFrame.new(0,-.5,0)
  303. canWeld.C0=CFrame.new(0,0,0)
  304. local canWeld2=Instance.new('Weld',base2)
  305. canWeld2.Part0=base
  306. canWeld2.Part1=base2
  307. canWeld2.C1=CFrame.new(0,-1.66,0)
  308. canWeld2.C0=CFrame.new(0,0,0)
  309. local lidWeld=Instance.new('Weld',base)
  310. lidWeld.Part0=base
  311. lidWeld.Part1=lid
  312. lidWeld.C1=CFrame.new(0,0,-1.8)*CFrame.Angles(math.rad(90),math.rad(90),0)
  313. local girlWeld=Instance.new('Weld',base)
  314. girlWeld.Part0=base
  315. girlWeld.Part1=waifu
  316. girlWeld.C1=CFrame.new(0,-.65,-.5)*CFrame.Angles(math.rad(90),0,0)
  317. local bbweld=Instance.new('Weld',base)
  318. bbweld.Part0=base
  319. bbweld.Part1=bbox
  320. bbweld.C1=CFrame.new(0,-.5,0)
  321. local blbweld=Instance.new('Weld',base)
  322. blbweld.Part0=base
  323. blbweld.Part1=bulb
  324. blbweld.C1=CFrame.new(0,-.5,0)
  325. local heliweld1=Instance.new('Weld',base)
  326. heliweld1.Part0=base
  327. heliweld1.Part1=heli1
  328. heliweld1.C1=CFrame.new(0,0,0)
  329. local heliweld2=Instance.new('Weld',heli1)
  330. heliweld2.Part0=heli1
  331. heliweld2.Part1=heli2
  332. heliweld2.C1=CFrame.new(0,-1.475,0)
  333. local heliweld3=Instance.new('Weld',heli1)
  334. heliweld3.Part0=heli1
  335. heliweld3.Part1=heli3
  336. heliweld3.C1=CFrame.new(0,-1.475,0)*CFrame.Angles(0,math.pi/2,0)
  337. local helilt=Instance.new('PointLight',heli1)
  338. helilt.Enabled=false
  339. helilt.Brightness=1
  340. helilt.Range=16
  341. helilt.Color=BrickColor.new("Dark green").Color
  342. local music=Instance.new('Sound',bbox)
  343. music.Name='ok music'
  344. music.Volume=.025
  345. music.Pitch=1
  346. music.SoundId="http://www.roblox.com/asset?id="..musics[math.random(1,#musics)]
  347. music.Looped=true
  348. local helisn=Instance.new('Sound',heli1)
  349. helisn.SoundId="http://www.roblox.com/asset?id=131503030"
  350. helisn.Volume=.1
  351. helisn.Pitch=2
  352. helisn.Looped=true
  353. local gui=Instance.new('ScreenGui',plr.PlayerGui)
  354. gui.Name='you make me cri'
  355. local topFrame=Instance.new('Frame',gui)
  356. topFrame.Name='TopFrame'
  357. topFrame.Size=UDim2.new(1,0,1,0)
  358. topFrame.BorderSizePixel=0
  359. topFrame.BackgroundTransparency=1
  360. local choiceFrame=Instance.new('Frame',topFrame)
  361. choiceFrame.Size=UDim2.new(.4,0,.05,0)
  362. choiceFrame.Draggable=true
  363. choiceFrame.BackgroundTransparency=.7
  364. choiceFrame.Position=UDim2.new(.3,0,.775,0)
  365. choiceFrame.BackgroundColor3=Color3.new(.2,.2,.2)
  366. choiceFrame.BorderColor3=Color3.new(0,0,0)
  367. local innerFrame=Instance.new('Frame',choiceFrame)
  368. innerFrame.Size=UDim2.new(.5,0,1,0)
  369. innerFrame.Draggable=true
  370. innerFrame.BackgroundTransparency=.9
  371. innerFrame.Position=UDim2.new(0,0,0,0)
  372. innerFrame.BackgroundColor3=Color3.new(.2,.2,.2)
  373. innerFrame.BorderColor3=Color3.new(0,0,0)
  374. local innerFrame2=Instance.new('Frame',choiceFrame)
  375. innerFrame2.Visible=true
  376. innerFrame2.Size=UDim2.new(.5,0,1,0)
  377. innerFrame2.Draggable=false
  378. innerFrame2.BackgroundTransparency=.5
  379. innerFrame2.Position=UDim2.new(0,0,1,1)
  380. innerFrame2.BackgroundColor3=Color3.new(.2,.2,.2)
  381. innerFrame2.BorderColor3=Color3.new(0,0,0)
  382. local imageID=Instance.new('TextBox',innerFrame2)
  383. imageID.Size=UDim2.new(.8,0,.7,0)
  384. imageID.Position=UDim2.new(.1,0,.15,0)
  385. imageID.BackgroundTransparency=.7
  386. imageID.Visible=true
  387. imageID.Text="Image ID"
  388. imageID.TextScaled=true
  389. imageID.TextStrokeTransparency=0
  390. imageID.TextStrokeColor3=Color3.new(.1,.1,.1)
  391. imageID.TextColor3=Color3.new(.7,.7,.7)
  392. imageID.BackgroundColor3=Color3.new(.2,.2,.2)
  393. imageID.BorderColor3=Color3.new(0,0,0)
  394. imageID.FocusLost:connect(function(ent)
  395. if ent then
  396. img.Texture="http://www.roblox.com/asset?id="..imageID.Text-1
  397. end
  398. end)
  399. local bt1=Instance.new('TextButton',innerFrame)
  400. bt1.Draggable=false
  401. bt1.BackgroundTransparency=.9
  402. bt1.BackgroundColor3=Color3.new(.2,.2,.2)
  403. bt1.Size=UDim2.new(.5,0,1,0)
  404. bt1.Text="Custom"
  405. bt1.TextStrokeTransparency=0
  406. bt1.TextColor3=Color3.new(.7,.7,.7)
  407. bt1.TextScaled=true
  408. bt1.TextStrokeColor3=Color3.new(.1,.1,.1)
  409. bt1.Font="SourceSans"
  410. bt1.MouseButton1Click:connect(function()
  411. if imageType=='Table' then
  412. imageType="Custom"
  413. innerFrame2.Visible=true
  414. imageID.Visible=true
  415. end
  416. end)
  417. local bt2=Instance.new('TextButton',innerFrame)
  418. bt2.Draggable=false
  419. bt2.BackgroundTransparency=.9
  420. bt2.BackgroundColor3=Color3.new(.1,.1,.1)
  421. bt2.Size=UDim2.new(.5,0,1,0)
  422. bt2.Position=UDim2.new(.5,0,0,0)
  423. bt2.Text="Table"
  424. bt2.TextStrokeTransparency=0
  425. bt2.TextColor3=Color3.new(.7,.7,.7)
  426. bt2.TextScaled=true
  427. bt2.TextStrokeColor3=Color3.new(.1,.1,.1)
  428. bt2.Font="SourceSans"
  429. bt2.MouseButton1Click:connect(function()
  430. if imageType~='Table' then
  431. imageType="Table"
  432. imageID.Visible=false
  433. innerFrame2.Visible=false
  434. img.Texture="http://www.roblox.com/asset?id="..decals[currentdecalid]-1
  435. end
  436. end)
  437. local innerFrame3=Instance.new('Frame',choiceFrame)
  438. innerFrame3.Size=UDim2.new(.5,0,1,0)
  439. innerFrame3.Position=UDim2.new(.5,0,0,0)
  440. innerFrame3.Draggable=true
  441. innerFrame3.BackgroundTransparency=.9
  442. innerFrame3.BackgroundColor3=Color3.new(.2,.2,.2)
  443. innerFrame3.BorderColor3=Color3.new(0,0,0)
  444. local innerFrame4=Instance.new('Frame',choiceFrame)
  445. innerFrame4.Size=UDim2.new(.5,0,1,0)
  446. innerFrame4.Draggable=false
  447. innerFrame4.BackgroundTransparency=.5
  448. innerFrame4.Position=UDim2.new(.5,0,1,1)
  449. innerFrame4.BackgroundColor3=Color3.new(.2,.2,.2)
  450. innerFrame4.BorderColor3=Color3.new(0,0,0)
  451. local musicID=Instance.new('TextBox',innerFrame4)
  452. musicID.Size=UDim2.new(.8,0,.7,0)
  453. musicID.Position=UDim2.new(.1,0,.15,0)
  454. musicID.BackgroundTransparency=.7
  455. musicID.Visible=true
  456. musicID.Text="Music ID"
  457. musicID.TextScaled=true
  458. musicID.TextStrokeTransparency=0
  459. musicID.TextStrokeColor3=Color3.new(.1,.1,.1)
  460. musicID.TextColor3=Color3.new(.7,.7,.7)
  461. musicID.BackgroundColor3=Color3.new(.2,.2,.2)
  462. musicID.BorderColor3=Color3.new(0,0,0)
  463. musicID.FocusLost:connect(function(ent)
  464. if ent then
  465. music.SoundId="http://www.roblox.com/asset?id="..musicID.Text
  466. end
  467. end)
  468. local bt3=Instance.new('TextButton',innerFrame3)
  469. bt3.Draggable=false
  470. bt3.BackgroundTransparency=.9
  471. bt3.BackgroundColor3=Color3.new(.2,.2,.2)
  472. bt3.Size=UDim2.new(.5,0,1,0)
  473. bt3.Text="Play"
  474. bt3.TextStrokeTransparency=0
  475. bt3.TextColor3=Color3.new(.7,.7,.7)
  476. bt3.TextScaled=true
  477. bt3.TextStrokeColor3=Color3.new(.1,.1,.1)
  478. bt3.Font="SourceSans"
  479. bt3.MouseButton1Click:connect(function()
  480. if not music.IsPlaying then
  481. musicID.Visible=false
  482. music:play''
  483. innerFrame4.Visible=false
  484. end
  485. end)
  486. local bt4=Instance.new('TextButton',innerFrame3)
  487. bt4.Draggable=false
  488. bt4.BackgroundTransparency=.9
  489. bt4.BackgroundColor3=Color3.new(.1,.1,.1)
  490. bt4.Size=UDim2.new(.5,0,1,0)
  491. bt4.Position=UDim2.new(.5,0,0,0)
  492. bt4.Text="Stop"
  493. bt4.TextStrokeTransparency=0
  494. bt4.TextColor3=Color3.new(.7,.7,.7)
  495. bt4.TextScaled=true
  496. bt4.TextStrokeColor3=Color3.new(.1,.1,.1)
  497. bt4.Font="SourceSans"
  498. bt4.MouseButton1Click:connect(function()
  499. if music.IsPlaying then
  500. music:stop''
  501. musicID.Visible=true
  502. innerFrame4.Visible=true
  503. end
  504. end)
  505. maus.KeyDown:connect(function(kei)
  506. if string.byte(kei)==48 and not otheranims then
  507. runnin=true
  508. end
  509. if kei=='x' and crouching and not opencd and not displaying then
  510. opens:play''
  511. opencd=true
  512. bboxout=true
  513. end
  514. if kei=='w' then fldb.w=true end
  515. if kei=='a' then fldb.a=true end
  516. if kei=='s' then fldb.s=true end
  517. if kei=='d' then fldb.d=true end
  518. if string.byte(kei)==50 then
  519. if otheranims and crouching then crouching=false otheranims=false if opencd then opencd=false bboxout=false ltout=false end
  520. elseif not otheranims and not crouching then
  521. otheranims=true
  522. crouching=true
  523. chr.Humanoid.WalkSpeed=WlkSpeed*.75
  524. end
  525. end
  526. if kei=='r' and not displaying then
  527. if not heli and not opencd and not displaying and crouching then
  528. opencd=true
  529. heli=true
  530. crouching=false
  531. flying=true
  532. helisn:play''
  533. helilt.Enabled=true
  534. helim2.Scale=Vector3.new(.5,.15,2)
  535. helim3.Scale=Vector3.new(.5,.15,2)
  536. chr.Humanoid.WalkSpeed=WlkSpeed
  537. bvelo.maxForce=Vector3.new(0,1/0,0)
  538. bvelo.velocity=Vector3.new(0,0,0)
  539. elseif heli and opencd then
  540. heli=false
  541. helilt.Enabled=false
  542. opencd=false
  543. flying=false
  544. helim2.Scale=Vector3.new(.5,.1,1)
  545. helim3.Scale=Vector3.new(.5,.1,1)
  546. helisn:stop''
  547. chr.Humanoid.WalkSpeed=WlkSpeed*.75
  548. crouching=true
  549. bvelo.maxForce=Vector3.new(0,0,0)
  550. end
  551. end
  552. if kei=='q' then
  553. bvelo.velocity=Vector3.new(0,-25,0)
  554. end
  555. if kei=='e' then
  556. bvelo.velocity=Vector3.new(0,20,0)
  557. end
  558. if kei=='z' and not opencd then
  559. displaying=true
  560. end
  561. if kei=='k' and not opencd and crouching and not displaying then
  562. opencd=true
  563. opens:play''
  564. chr.Humanoid.WalkSpeed=0
  565. local grbg=Instance.new('Part',workspace)
  566. grbg.Name="bomb"
  567. grbg.formFactor=3
  568. grbg.CFrame=base.CFrame*CFrame.new(0,5,0)
  569. grbg.TopSurface=10
  570. grbg.BottomSurface=10
  571. grbg.LeftSurface=10
  572. grbg.RightSurface=10
  573. grbg.BackSurface=10
  574. grbg.FrontSurface=10
  575. grbg.CanCollide=false
  576. grbg.Anchored=false
  577. grbg.Anchored=false
  578. grbg.Transparency=0
  579. grbg.Shape='Ball'
  580. grbg.BrickColor=BrickColor.new('Really black')
  581. grbg.Locked=true
  582. grbg.Size=Vector3.new(.8,.8,.8)
  583. grbg.Velocity=Vector3.new(0,100,0)
  584. grbg.Touched:connect(function(tch)
  585. if tch and tch.Parent then
  586. local expl=Instance.new('Explosion',workspace)
  587. expl.Position=grbg.Position
  588. expl.BlastPressure=1111111
  589. expl.BlastRadius=22
  590. grbg:destroy''
  591. end
  592. end)
  593. wait'1'
  594. opencd=false
  595. chr.Humanoid.WalkSpeed=WlkSpeed*.75
  596. end
  597. game:service'Debris':AddItem(grbg,5)
  598. if kei=='c' and not opencd and crouching and not displaying then
  599. opens:play''
  600. opencd=true
  601. lt.Enabled=true
  602. ltout=true
  603. end
  604. end)
  605. maus.KeyUp:connect(function(kei)
  606. if string.byte(kei)==48 and not otheranims then
  607. runnin=false
  608. end
  609. if kei=='w' then fldb.w=false end
  610. if kei=='a' then fldb.a=false end
  611. if kei=='s' then fldb.s=false end
  612. if kei=='d' then fldb.d=false end
  613. if kei=='x' and bboxout and opencd then
  614. bboxout=false
  615. opencd=false
  616. end
  617. if kei=='q' then
  618. bvelo.velocity=Vector3.new(0,0,0)
  619. end
  620. if kei=='e' then
  621. bvelo.velocity=Vector3.new(0,0,0)
  622. end
  623. if kei=='z' then
  624. displaying=false
  625. if imageType=="Table" then
  626. currentdecalid=currentdecalid+1
  627. if currentdecalid>#decals then currentdecalid=1 end
  628. img.Texture="http://www.roblox.com/asset?id="..decals[currentdecalid]-1
  629. end
  630. end
  631. if kei=='j' and crouching and otheranims and not displaying and not opencd and anim=='Crouching' then
  632. crouching=false
  633. anim='SuperJump'
  634. local bv=Instance.new('BodyVelocity',rutprt)
  635. bv.maxForce=Vector3.new(0,1/0,0)
  636. bv.velocity=Vector3.new(0,300,0)
  637. game:service'Debris':AddItem(bv,.5)
  638. wait'1'
  639. chr.Humanoid.Jump=true
  640. if anim=='SuperJump' then
  641. otheranims=false
  642. end
  643. end
  644. if kei=='v' and crouching and otheranims and not displaying then
  645. if not opencd then
  646. local rei=Ray.new(lid.CFrame.p,(lid.CFrame.p-(lid.CFrame*CFrame.new(0,0,-1)).p).unit*2)
  647. local hit,hitpos=workspace:FindPartOnRay(rei,chr)
  648. if hit and hit.Parent then
  649. opencd=true
  650. if hit.Parent:IsA'Model' then
  651. for i,x in pairs(hit.Parent:GetChildren()) do if x:IsA'Humanoid' then x.Sit=true x.Health=x.Health-(15*(x.MaxHealth/100)) hits:play'' end end
  652. if hit.Parent:findFirstChild('Torso') then
  653. local asd=Instance.new('BodyVelocity',hit.Parent.Torso)
  654. asd.velocity=((rutprt.CFrame*CFrame.new(0,4,1).p-rutprt.CFrame.p).unit*222)
  655. game:service'Debris':AddItem(asd,.4)
  656. end
  657. end
  658. wait'.5'
  659. opencd=false
  660. end
  661. end
  662. end
  663. if kei=='c' and opencd and ltout then
  664. opencd=false
  665. ltout=false
  666. lt.Enabled=false
  667. end
  668. end)
  669. local nskn = NumberSequenceKeypoint.new
  670. maus.Button1Down:connect(function()
  671. if runnin and not otheranims and (rutprt.Velocity*Vector3.new(1,0,1)).magnitude>RunSpeed-5 and not TackleCD then
  672. otheranims=true
  673. TackleCD=true
  674. anim="Tackle"
  675. chr.Humanoid.WalkSpeed=0
  676. local bv=Instance.new('BodyVelocity',base)
  677. bv.Name='git gud'
  678. bv.maxForce=Vector3.new(1/0,0,1/0)
  679. bv.velocity=((rutprt.CFrame*CFrame.new(0,0,-3)).p-rutprt.CFrame.p).unit*(RunSpeed+(22*(RunSpeed/100)))
  680. wait'1'
  681. bv:destroy''
  682. otheranims=false
  683. wait'2'
  684. TackleCD=false
  685. end
  686. if not throwcd and crouching and otheranims and not opencd and not displaying then
  687. opencd=true
  688. throwcd=true
  689. opens:play''
  690. local grb=GarbageTypes[math.random(1,#GarbageTypes)]
  691. local grbg=Instance.new('Part',workspace)
  692. grbg.Name=grb[1]
  693. grbg.formFactor=3
  694. grbg.CFrame=base.CFrame*CFrame.new(0,4.5,-2)*CFrame.Angles(math.rad(math.random(1,180)),math.rad(math.random(1,180)),math.rad(math.random(1,180)))
  695. grbg.TopSurface=10
  696. grbg.BottomSurface=10
  697. grbg.LeftSurface=10
  698. grbg.RightSurface=10
  699. grbg.BackSurface=10
  700. grbg.FrontSurface=10
  701. grbg.CanCollide=false
  702. grbg.Anchored=false
  703. grbg.Anchored=false
  704. grbg.Transparency=0
  705. grbg.Locked=true
  706. grbg.Size=Vector3.new(.8,.8,.8)
  707. local emitter=Instance.new("ParticleEmitter",grbg)
  708. emitter.Rate=111
  709. emitter.Acceleration=Vector3.new(0,5,0)
  710. emitter.Lifetime=NumberRange.new(2)
  711. --emitter.EmissionDirection="Back"
  712. emitter.VelocitySpread=11
  713. emitter.Enabled=true
  714. emitter.Rotation=NumberRange.new(-15,15)
  715. emitter.RotSpeed=NumberRange.new(-25,25)
  716. emitter.Texture="http://www.roblox.com/asset?id="..alldecals[math.random(1,#alldecals)]
  717. emitter.Size = NumberSequence.new({
  718. nskn(0 , 1 , 0);
  719. nskn(0.123, .85 , 0);
  720. nskn(0.154, .7 , 0);
  721. nskn(0.208, .55 , 0);
  722. nskn(0.357, .4 , 0);
  723. nskn(0.555, .25 , 0);
  724. nskn(0.725, .1, 0);
  725. nskn(0.905, 0, 0);
  726. nskn(1 , 0, 0);
  727. })
  728. emitter.Transparency=NumberSequence.new({nskn(0,0,0),nskn(.1,.1,0),nskn(.2,.2,0),nskn(.3,.3,0),nskn(.4,.4,0),nskn(.5,.5,0),nskn(.6,.6,0),nskn(.7,7,0),nskn(.8,.8,0),nskn(.9,.9,0),nskn(1,1,0)})
  729. local hitsnd=Instance.new('Sound',grbg)
  730. hitsnd.Volume=1
  731. hitsnd.Pitch=1
  732. hitsnd.SoundId="http://www.roblox.com/asset?id=144467617"
  733. local hitsnd2=Instance.new('Sound',grbg)
  734. hitsnd2.Volume=.5
  735. hitsnd2.Pitch=1.05
  736. hitsnd2.SoundId="http://www.roblox.com/asset?id="..grb[5]
  737. local magn=(maus.Hit.p-(base.CFrame*CFrame.new(0,4.5,-2)).p).magnitude
  738. grbg.Velocity=((maus.Hit.p-(base.CFrame*CFrame.new(0,4.5,-2)).p).unit*(magn*1.25))+Vector3.new(0,72.5,0)
  739. local firsthit=true
  740. local ms=Instance.new('SpecialMesh',grbg)
  741. ms.MeshId="http://www.roblox.com/asset?id="..grb[2]
  742. ms.TextureId="http://www.roblox.com/asset?id="..grb[3]
  743. ms.Scale=grb[4]
  744. grbg.Touched:connect(function(hit)
  745. if hit and hit.Parent and hit:IsA'Part' and hit.CanCollide and hit.Transparency<1 and firsthit then
  746. firsthit=false
  747. hitsnd:play''
  748. hitsnd2:play''
  749. grbg.Anchored=true
  750. grbg.Transparency=1
  751. game:service'Debris':AddItem(grbg,2)
  752. local expl=Instance.new('Part',workspace)
  753. expl.Name=grb[1]
  754. expl.formFactor=3
  755. expl.CFrame=CFrame.new(grbg.CFrame.x,grbg.CFrame.y,grbg.CFrame.z)
  756. expl.TopSurface=10
  757. expl.BottomSurface=10
  758. expl.LeftSurface=10
  759. expl.RightSurface=10
  760. expl.BackSurface=10
  761. expl.FrontSurface=10
  762. expl.CanCollide=false
  763. expl.Anchored=true
  764. expl.Transparency=1
  765. expl.Locked=true
  766. expl.Size=Vector3.new(.2,.2,.2)
  767. local emitr=Instance.new("ParticleEmitter",expl)
  768. emitr.Rate=333
  769. emitr.Speed=NumberRange.new(35,40)
  770. emitr.Acceleration=Vector3.new(0,-30,0)
  771. emitr.Lifetime=NumberRange.new(.5)
  772. emitr.EmissionDirection="Top"
  773. emitr.Transparency=NumberSequence.new({nskn(0,0,0),nskn(.1,.1,0),nskn(.2,.2,0),nskn(.3,.3,0),nskn(.4,.4,0),nskn(.5,.5,0),nskn(.6,.6,0),nskn(.7,7,0),nskn(.8,.8,0),nskn(.9,.9,0),nskn(1,1,0)})
  774. emitr.VelocitySpread=120
  775. emitr.Enabled=true
  776. emitr.Rotation=NumberRange.new(-15,15)
  777. emitr.RotSpeed=NumberRange.new(-25,25)
  778. emitr.Texture=emitter.Texture
  779. emitr.Size = NumberSequence.new({
  780. nskn(0 , 2 , 0);
  781. nskn(0.123, 1.75 , 0);
  782. nskn(0.154, 1.5 , 0);
  783. nskn(0.208, 1.25 , 0);
  784. nskn(0.357, 1 , 0);
  785. nskn(0.555, .75 , 0);
  786. nskn(0.725, .5, 0);
  787. nskn(0.905, .25, 0);
  788. nskn(1 , 0, 0);
  789. })
  790. emitter.Rate=0
  791. for i,x in pairs(workspace:GetChildren()) do
  792. if x:IsA'Model' and x:findFirstChild("Humanoid") and x:findFirstChild("Torso") and x:findFirstChild("Head") then
  793. if (x.Torso.Position-expl.Position).magnitude<=12 and x~=chr then
  794. x:breakJoints''
  795. end
  796. end
  797. end
  798. wait'.2'
  799. emitr.Rate=0
  800. game:service'Debris':AddItem(expl,1)
  801. end
  802. end)
  803. wait'.2'
  804. opencd=false
  805. wait'.6'
  806. throwcd=false
  807. end
  808. end)
  809. lid.Touched:connect(function(hit)
  810. if otheranims==true and anim=="Tackle" or anim=='SuperJump' and not hitdb and not hit.Parent:IsA'Hat' and hit.Name~='Base' then
  811. if anim=='SuperJump' then otheranims=false chr.Humanoid.Jump=true end
  812. hitdb=true
  813. if hit and hit.Parent then
  814. if hit.Parent:IsA'Model' then
  815. for i,x in pairs(hit.Parent:GetChildren()) do if x:IsA'Humanoid' then hit.Parent:breakJoints'' hits:play'' end end
  816. if hit.Parent.Parent then
  817. for i,x in pairs(hit.Parent.Parent:GetChildren()) do if x:IsA'Humanoid' then hit.Parent.Parent:breakJoints'' hits:play'' end end
  818. end
  819. end
  820. end
  821. wait'.8' hitdb=false
  822. end
  823. end)
  824. game:service'RunService'.RenderStepped:connect(function()
  825. if chr:findFirstChild("Humanoid") and rarm:findFirstChild("Weld") and larm:findFirstChild("Weld") and hed:findFirstChild("Weld") and lleg:findFirstChild("Weld") and rleg:findFirstChild("Weld") and rutprt:findFirstChild("Weld") then
  826. if anim~=lastanim then
  827. runtime=0
  828. end
  829. lastanim=anim
  830. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(waifu.CFrame)).p+Vector3.new(0,-1.25,0)
  831. syne=syne+.95
  832. if not otheranims and not swimming then
  833. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  834. anim="Idling"
  835. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  836. anim="Walking"
  837. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  838. anim="Sprinting"
  839. elseif torso.Velocity.y>5 and chr.Humanoid.Jump then
  840. anim='Jumping'
  841. elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
  842. anim='Falling'
  843. end
  844. end
  845. if otheranims and crouching and not swimming and not flying then
  846. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 then
  847. anim="Crouching"
  848. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 then
  849. anim="Sneaking"
  850. end
  851. end
  852. if otheranims and flying and not swimming and not crouching then
  853. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 then
  854. anim="FlyIdle"
  855. heliweld1.C0=CFrame.new(0,3.25,0)*CFrame.Angles(0,syne,0)
  856. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 then
  857. anim="FlyForward"
  858. heliweld1.C0=CFrame.new(0,3.25,0)*CFrame.Angles(0,syne,0)
  859. end
  860. else
  861. heliweld1.C0=CFrame.new(0,0,0)
  862. end
  863. if anim=="Idling" then
  864. idlesineinc=35
  865. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.475+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(20)),.1)
  866. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.475+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(-20)),.1)
  867. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1)
  868. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1)
  869. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
  870. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(0),math.rad(0)),.1)
  871. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  872. end
  873. if anim=="Walking" then
  874. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(math.cos(syne/6)/1.25,math.rad(5),-(math.cos(syne/6.75)/15)+math.rad(27)),.1)
  875. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(-(math.cos(syne/6)/1.25),0,-(math.cos(syne/6.75)/15)-math.rad(27)),.1)
  876. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/6)/10,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
  877. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/6)/10,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
  878. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1)
  879. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-3.5),math.cos(syne/6)/10,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1)
  880. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  881. end
  882. if anim=="Sprinting" then
  883. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(32.5)),.1)
  884. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(-32.5)),.1)
  885. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.6-math.cos(syne/4)/4,-(math.cos(syne/4)*2)-math.rad(10))*CFrame.Angles(math.cos(syne/4)*2+math.rad(10),0,math.rad(-2.5)),.1)
  886. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.6-math.cos(syne/4)/4,math.cos(syne/4)*2-math.rad(10))*CFrame.Angles(-(math.cos(syne/4)*2)+math.rad(10),0,math.rad(2.5)),.1)
  887. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.55+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(20),0,0),.1)
  888. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.3+math.cos(syne/2.5)/15,math.cos(syne/2.5))*CFrame.Angles(math.cos(syne/2.5)/10+math.rad(-25),math.cos(syne/2.5)/10,math.cos(syne/4)/20+math.sin(rutprt.RotVelocity.y/2)/4),.1)
  889. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  890. end
  891. if anim=="Jumping" then
  892. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
  893. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
  894. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.4,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
  895. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.1,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
  896. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
  897. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1)
  898. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  899. end
  900. if anim=="Tackle" then
  901. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
  902. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
  903. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.4,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
  904. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.4,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
  905. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
  906. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),.1)
  907. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  908. end
  909. if anim=="Falling" then
  910. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
  911. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
  912. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
  913. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
  914. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035)
  915. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.035)
  916. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  917. end
  918. if anim=="SuperJump" then
  919. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.525,0)*CFrame.Angles(math.rad(175),0,math.rad(10)),.15)
  920. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.525,0)*CFrame.Angles(math.rad(175),0,math.rad(-10)),.15)
  921. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.5,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.15)
  922. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.5,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.15)
  923. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.15)
  924. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-3,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  925. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,3,0)*CFrame.Angles(0,0,0),.15)
  926. end
  927. if anim=="Crouching" then
  928. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  929. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  930. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  931. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  932. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.1)
  933. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.75,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  934. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  935. end
  936. if anim=="Sneaking" then
  937. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  938. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  939. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-.8-math.cos(syne/6)/8,-(math.cos(syne/6)/1.75))*CFrame.Angles(math.cos(syne/6)/1.75,0,math.rad(-2.5)),.15)
  940. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-.8-math.cos(syne/6)/8,math.cos(syne/6)/1.75)*CFrame.Angles(-(math.cos(syne/6)/1.75),0,math.rad(2.5)),.15)
  941. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.1)
  942. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.2,0)*CFrame.Angles(math.rad(-5),math.rad(0),math.cos(syne/6)/20),.1)
  943. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  944. end
  945. if anim=="FlyIdle" then
  946. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  947. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  948. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  949. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  950. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.1)
  951. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.75-math.cos(syne/17.5),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  952. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  953. end
  954. if anim=="FlyForward" then
  955. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  956. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  957. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  958. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  959. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.1)
  960. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.75-math.cos(syne/17.5),0)*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(0)),.05)
  961. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  962. end
  963. if opencd and otheranims then
  964. lidWeld.C0=Lerp(lidWeld.C0,CFrame.new(0,3,-1)*CFrame.Angles(math.rad(85),math.rad(0),math.rad(0)),.222)
  965. music.Volume=TwnSingleNumber(music.Volume,.7,.025)
  966. elseif not opencd and not displaying then
  967. music.Volume=TwnSingleNumber(music.Volume,.025,.05)
  968. elseif not opencd and displaying then
  969. music.Volume=TwnSingleNumber(music.Volume,.325,.05)
  970. end
  971. if bboxout then
  972. bbweld.C0=Lerp(bbweld.C0,CFrame.new(0,1.9,.2)*CFrame.Angles(math.rad(15),math.rad(0),math.rad(0)),.222)
  973. else
  974. bbweld.C0=Lerp(bbweld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
  975. end
  976. if ltout then
  977. blbweld.C0=Lerp(blbweld.C0,CFrame.new(0,1.7,-.7)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.222)
  978. lt.Range=TwnSingleNumber(lt.Range,16,.1)
  979. else
  980. blbweld.C0=Lerp(blbweld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
  981. lt.Range=0
  982. end
  983. if displaying then
  984. girlWeld.C0=Lerp(girlWeld.C0,CFrame.new(0,2.2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
  985. lidWeld.C0=Lerp(lidWeld.C0,CFrame.new(0,.15,.75)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  986. else
  987. girlWeld.C0=Lerp(girlWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  988. lidWeld.C0=Lerp(lidWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
  989. end
  990. if runnin and not otheranims and not swimming then
  991. chr.Humanoid.WalkSpeed=RunSpeed
  992. elseif not runnin and not otheranims and not swimming then
  993. chr.Humanoid.WalkSpeed=WlkSpeed
  994. end
  995. end
  996. end)
  997. end
  998. do
  999. player = owner or game:GetService("Players").LocalPlayer
  1000. chatted = false
  1001. a = Instance.new("BillboardGui", player.Character:FindFirstChild("Head"))
  1002. a.ExtentsOffset = Vector3.new(1,0,0)
  1003. a.Size = UDim2.new(1,0,1,0)
  1004. a.AlwaysOnTop = true
  1005. a.Enabled = true
  1006. b = Instance.new("ImageLabel", a)
  1007. b.BackgroundTransparency = 1
  1008. b.BorderSizePixel = 0
  1009. b.Image = "http://www.roblox.com/asset/?id=243503908"
  1010. b.ImageTransparency = 0.1
  1011. b.Position = UDim2.new(0.2,0,0.05,0)
  1012. b.Size = UDim2.new(5,0,1.2,0)
  1013. b.Visible = false
  1014. c = Instance.new("TextLabel", b)
  1015. c.BackgroundTransparency = 1
  1016. c.BorderSizePixel = 0
  1017. c.Position = UDim2.new(0.1,0,0)
  1018. c.Size = UDim2.new(0.5,0,0.4,0)
  1019. c.ZIndex = 2
  1020. c.Font = "SourceSans"
  1021. c.FontSize = "Size18"
  1022. c.Text = player.Name..":"
  1023. c.TextColor3 = Color3.new(255/255,255/255,255/255)
  1024. c.TextXAlignment = "Left"
  1025. c.TextYAlignment = "Center"
  1026. d = Instance.new("TextLabel", b)
  1027. d.BackgroundTransparency = 1
  1028. d.BorderSizePixel = 0
  1029. d.Position = UDim2.new(0.1,0,0.4,0)
  1030. d.Size = UDim2.new(0.9,0,0.6,0)
  1031. d.ZIndex = 2
  1032. d.Font = "SourceSans"
  1033. d.FontSize = "Size18"
  1034. d.Text = ""
  1035. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  1036. d.TextXAlignment = "Left"
  1037. d.TextYAlignment = "Top"
  1038. d.TextWrapped = true
  1039. function message(message)
  1040. repeat wait() until chatted == false
  1041. chatted = true
  1042. b.Visible = true
  1043. if string.find(message,"-r") ~=nil then
  1044. for i=1,string.len(message),1 do
  1045. d.TextColor3 = Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  1046. d.Text = string.sub(message,1,i)
  1047. wait(0.1)
  1048. end
  1049. elseif string.find(message,"-b") ~=nil then
  1050. for i=1,string.len(message),1 do
  1051. d.Text = string.sub(string.byte(message),1,i)
  1052. wait(0.05)
  1053. end
  1054. else
  1055. for i=1,string.len(message),1 do
  1056. d.Text = string.sub(message,1,i)
  1057. wait(0.05)
  1058. end
  1059. end
  1060. wait(2)
  1061. if string.find(message,"-t") ~=nil then
  1062. b.Visible = true
  1063. else
  1064. b.Visible = false
  1065. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  1066. end
  1067. chatted = false
  1068. end
  1069. player.Chatted:connect(message)
  1070. end

comments powered by Disqus