ohhhhhhshdhashdahsd

Trash Can

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