awzp

Trash Can Trash (not by me)

May 29th, 2018
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.25 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"}
  74. local musics={"142594142","202020876"}
  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.  
  352. local music=Instance.new('Sound',bbox)
  353. music.Name='ok music'
  354. music.Volume=.025
  355. music.Pitch=1
  356. music.SoundId="http://www.roblox.com/asset?id="..musics[math.random(1,#musics)]
  357. music.Looped=true
  358. local helisn=Instance.new('Sound',heli1)
  359. helisn.SoundId="http://www.roblox.com/asset?id=131503030"
  360. helisn.Volume=.1
  361. helisn.Pitch=2
  362. helisn.Looped=true
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369. local gui=Instance.new('ScreenGui',plr.PlayerGui)
  370. gui.Name='you make me cri'
  371. local topFrame=Instance.new('Frame',gui)
  372. topFrame.Name='TopFrame'
  373. topFrame.Size=UDim2.new(1,0,1,0)
  374. topFrame.BorderSizePixel=0
  375. topFrame.BackgroundTransparency=1
  376. local choiceFrame=Instance.new('Frame',topFrame)
  377. choiceFrame.Size=UDim2.new(.4,0,.05,0)
  378. choiceFrame.Draggable=true
  379. choiceFrame.BackgroundTransparency=.7
  380. choiceFrame.Position=UDim2.new(.3,0,.775,0)
  381. choiceFrame.BackgroundColor3=Color3.new(.2,.2,.2)
  382. choiceFrame.BorderColor3=Color3.new(0,0,0)
  383. local innerFrame=Instance.new('Frame',choiceFrame)
  384. innerFrame.Size=UDim2.new(.5,0,1,0)
  385. innerFrame.Draggable=true
  386. innerFrame.BackgroundTransparency=.9
  387. innerFrame.Position=UDim2.new(0,0,0,0)
  388. innerFrame.BackgroundColor3=Color3.new(.2,.2,.2)
  389. innerFrame.BorderColor3=Color3.new(0,0,0)
  390. local innerFrame2=Instance.new('Frame',choiceFrame)
  391. innerFrame2.Visible=true
  392. innerFrame2.Size=UDim2.new(.5,0,1,0)
  393. innerFrame2.Draggable=false
  394. innerFrame2.BackgroundTransparency=.5
  395. innerFrame2.Position=UDim2.new(0,0,1,1)
  396. innerFrame2.BackgroundColor3=Color3.new(.2,.2,.2)
  397. innerFrame2.BorderColor3=Color3.new(0,0,0)
  398. local imageID=Instance.new('TextBox',innerFrame2)
  399. imageID.Size=UDim2.new(.8,0,.7,0)
  400. imageID.Position=UDim2.new(.1,0,.15,0)
  401. imageID.BackgroundTransparency=.7
  402. imageID.Visible=true
  403. imageID.Text="Image ID"
  404. imageID.TextScaled=true
  405. imageID.TextStrokeTransparency=0
  406. imageID.TextStrokeColor3=Color3.new(.1,.1,.1)
  407. imageID.TextColor3=Color3.new(.7,.7,.7)
  408. imageID.BackgroundColor3=Color3.new(.2,.2,.2)
  409. imageID.BorderColor3=Color3.new(0,0,0)
  410. imageID.FocusLost:connect(function(ent)
  411. if ent then
  412. img.Texture="http://www.roblox.com/asset?id="..imageID.Text-1
  413. end
  414. end)
  415. local bt1=Instance.new('TextButton',innerFrame)
  416. bt1.Draggable=false
  417. bt1.BackgroundTransparency=.9
  418. bt1.BackgroundColor3=Color3.new(.2,.2,.2)
  419. bt1.Size=UDim2.new(.5,0,1,0)
  420. bt1.Text="Custom"
  421. bt1.TextStrokeTransparency=0
  422. bt1.TextColor3=Color3.new(.7,.7,.7)
  423. bt1.TextScaled=true
  424. bt1.TextStrokeColor3=Color3.new(.1,.1,.1)
  425. bt1.Font="SourceSans"
  426. bt1.MouseButton1Click:connect(function()
  427. if imageType=='Table' then
  428. imageType="Custom"
  429. innerFrame2.Visible=true
  430. imageID.Visible=true
  431. end
  432. end)
  433. local bt2=Instance.new('TextButton',innerFrame)
  434. bt2.Draggable=false
  435. bt2.BackgroundTransparency=.9
  436. bt2.BackgroundColor3=Color3.new(.1,.1,.1)
  437. bt2.Size=UDim2.new(.5,0,1,0)
  438. bt2.Position=UDim2.new(.5,0,0,0)
  439. bt2.Text="Table"
  440. bt2.TextStrokeTransparency=0
  441. bt2.TextColor3=Color3.new(.7,.7,.7)
  442. bt2.TextScaled=true
  443. bt2.TextStrokeColor3=Color3.new(.1,.1,.1)
  444. bt2.Font="SourceSans"
  445. bt2.MouseButton1Click:connect(function()
  446. if imageType~='Table' then
  447. imageType="Table"
  448. imageID.Visible=false
  449. innerFrame2.Visible=false
  450. img.Texture="http://www.roblox.com/asset?id="..decals[currentdecalid]-1
  451. end
  452. end)
  453.  
  454. local innerFrame3=Instance.new('Frame',choiceFrame)
  455. innerFrame3.Size=UDim2.new(.5,0,1,0)
  456. innerFrame3.Position=UDim2.new(.5,0,0,0)
  457. innerFrame3.Draggable=true
  458. innerFrame3.BackgroundTransparency=.9
  459. innerFrame3.BackgroundColor3=Color3.new(.2,.2,.2)
  460. innerFrame3.BorderColor3=Color3.new(0,0,0)
  461. local innerFrame4=Instance.new('Frame',choiceFrame)
  462. innerFrame4.Size=UDim2.new(.5,0,1,0)
  463. innerFrame4.Draggable=false
  464. innerFrame4.BackgroundTransparency=.5
  465. innerFrame4.Position=UDim2.new(.5,0,1,1)
  466. innerFrame4.BackgroundColor3=Color3.new(.2,.2,.2)
  467. innerFrame4.BorderColor3=Color3.new(0,0,0)
  468. local musicID=Instance.new('TextBox',innerFrame4)
  469. musicID.Size=UDim2.new(.8,0,.7,0)
  470. musicID.Position=UDim2.new(.1,0,.15,0)
  471. musicID.BackgroundTransparency=.7
  472. musicID.Visible=true
  473. musicID.Text="Music ID"
  474. musicID.TextScaled=true
  475. musicID.TextStrokeTransparency=0
  476. musicID.TextStrokeColor3=Color3.new(.1,.1,.1)
  477. musicID.TextColor3=Color3.new(.7,.7,.7)
  478. musicID.BackgroundColor3=Color3.new(.2,.2,.2)
  479. musicID.BorderColor3=Color3.new(0,0,0)
  480. musicID.FocusLost:connect(function(ent)
  481. if ent then
  482. music.SoundId="http://www.roblox.com/asset?id="..musicID.Text
  483. end
  484. end)
  485. local bt3=Instance.new('TextButton',innerFrame3)
  486. bt3.Draggable=false
  487. bt3.BackgroundTransparency=.9
  488. bt3.BackgroundColor3=Color3.new(.2,.2,.2)
  489. bt3.Size=UDim2.new(.5,0,1,0)
  490. bt3.Text="Play"
  491. bt3.TextStrokeTransparency=0
  492. bt3.TextColor3=Color3.new(.7,.7,.7)
  493. bt3.TextScaled=true
  494. bt3.TextStrokeColor3=Color3.new(.1,.1,.1)
  495. bt3.Font="SourceSans"
  496. bt3.MouseButton1Click:connect(function()
  497. if not music.IsPlaying then
  498. musicID.Visible=false
  499. music:play''
  500. innerFrame4.Visible=false
  501. end
  502. end)
  503. local bt4=Instance.new('TextButton',innerFrame3)
  504. bt4.Draggable=false
  505. bt4.BackgroundTransparency=.9
  506. bt4.BackgroundColor3=Color3.new(.1,.1,.1)
  507. bt4.Size=UDim2.new(.5,0,1,0)
  508. bt4.Position=UDim2.new(.5,0,0,0)
  509. bt4.Text="Stop"
  510. bt4.TextStrokeTransparency=0
  511. bt4.TextColor3=Color3.new(.7,.7,.7)
  512. bt4.TextScaled=true
  513. bt4.TextStrokeColor3=Color3.new(.1,.1,.1)
  514. bt4.Font="SourceSans"
  515. bt4.MouseButton1Click:connect(function()
  516. if music.IsPlaying then
  517. music:stop''
  518. musicID.Visible=true
  519. innerFrame4.Visible=true
  520. end
  521. end)
  522.  
  523.  
  524. maus.KeyDown:connect(function(kei)
  525. if string.byte(kei)==48 and not otheranims then
  526. runnin=true
  527. end
  528. if kei=='x' and crouching and not opencd and not displaying then
  529. opens:play''
  530. opencd=true
  531. bboxout=true
  532. end
  533. if kei=='w' then fldb.w=true end
  534. if kei=='a' then fldb.a=true end
  535. if kei=='s' then fldb.s=true end
  536. if kei=='d' then fldb.d=true end
  537. if string.byte(kei)==50 then
  538. if otheranims and crouching then crouching=false otheranims=false if opencd then opencd=false bboxout=false ltout=false end
  539. elseif not otheranims and not crouching then
  540. otheranims=true
  541. crouching=true
  542. chr.Humanoid.WalkSpeed=WlkSpeed*.75
  543. end
  544. end
  545. if kei=='r' and not displaying then
  546. if not heli and not opencd and not displaying and crouching then
  547. opencd=true
  548. heli=true
  549. crouching=false
  550. flying=true
  551. helisn:play''
  552. helilt.Enabled=true
  553. helim2.Scale=Vector3.new(.5,.15,2)
  554. helim3.Scale=Vector3.new(.5,.15,2)
  555. chr.Humanoid.WalkSpeed=WlkSpeed
  556. bvelo.maxForce=Vector3.new(0,1/0,0)
  557. bvelo.velocity=Vector3.new(0,0,0)
  558. elseif heli and opencd then
  559. heli=false
  560. helilt.Enabled=false
  561. opencd=false
  562. flying=false
  563. helim2.Scale=Vector3.new(.5,.1,1)
  564. helim3.Scale=Vector3.new(.5,.1,1)
  565. helisn:stop''
  566. chr.Humanoid.WalkSpeed=WlkSpeed*.75
  567. crouching=true
  568. bvelo.maxForce=Vector3.new(0,0,0)
  569. end
  570. end
  571. if kei=='q' then
  572. bvelo.velocity=Vector3.new(0,-25,0)
  573. end
  574. if kei=='e' then
  575. bvelo.velocity=Vector3.new(0,20,0)
  576. end
  577. if kei=='z' and not opencd then
  578. displaying=true
  579. end
  580. if kei=='k' and not opencd and crouching and not displaying then
  581. opencd=true
  582. opens:play''
  583. chr.Humanoid.WalkSpeed=0
  584. local grbg=Instance.new('Part',workspace)
  585. grbg.Name="bomb"
  586. grbg.formFactor=3
  587. grbg.CFrame=base.CFrame*CFrame.new(0,5,0)
  588. grbg.TopSurface=10
  589. grbg.BottomSurface=10
  590. grbg.LeftSurface=10
  591. grbg.RightSurface=10
  592. grbg.BackSurface=10
  593. grbg.FrontSurface=10
  594. grbg.CanCollide=false
  595. grbg.Anchored=false
  596. grbg.Anchored=false
  597. grbg.Transparency=0
  598. grbg.Shape='Ball'
  599. grbg.BrickColor=BrickColor.new('Really black')
  600. grbg.Locked=true
  601. grbg.Size=Vector3.new(.8,.8,.8)
  602. grbg.Velocity=Vector3.new(0,100,0)
  603. grbg.Touched:connect(function(tch)
  604. if tch and tch.Parent then
  605. local expl=Instance.new('Explosion',workspace)
  606. expl.Position=grbg.Position
  607. expl.BlastPressure=1111111
  608. expl.BlastRadius=22
  609. grbg:destroy''
  610. end
  611. end)
  612. wait'1'
  613. opencd=false
  614. chr.Humanoid.WalkSpeed=WlkSpeed*.75
  615. end
  616. game:service'Debris':AddItem(grbg,5)
  617. if kei=='c' and not opencd and crouching and not displaying then
  618. opens:play''
  619. opencd=true
  620. lt.Enabled=true
  621. ltout=true
  622. end
  623. end)
  624. maus.KeyUp:connect(function(kei)
  625. if string.byte(kei)==48 and not otheranims then
  626. runnin=false
  627. end
  628. if kei=='w' then fldb.w=false end
  629. if kei=='a' then fldb.a=false end
  630. if kei=='s' then fldb.s=false end
  631. if kei=='d' then fldb.d=false end
  632. if kei=='x' and bboxout and opencd then
  633. bboxout=false
  634. opencd=false
  635. end
  636. if kei=='q' then
  637. bvelo.velocity=Vector3.new(0,0,0)
  638. end
  639. if kei=='e' then
  640. bvelo.velocity=Vector3.new(0,0,0)
  641. end
  642. if kei=='z' then
  643. displaying=false
  644. if imageType=="Table" then
  645. currentdecalid=currentdecalid+1
  646. if currentdecalid>#decals then currentdecalid=1 end
  647. img.Texture="http://www.roblox.com/asset?id="..decals[currentdecalid]-1
  648. end
  649. end
  650. if kei=='j' and crouching and otheranims and not displaying and not opencd and anim=='Crouching' then
  651. crouching=false
  652. anim='SuperJump'
  653. local bv=Instance.new('BodyVelocity',rutprt)
  654. bv.maxForce=Vector3.new(0,1/0,0)
  655. bv.velocity=Vector3.new(0,300,0)
  656. game:service'Debris':AddItem(bv,.5)
  657. wait'1'
  658. chr.Humanoid.Jump=true
  659. if anim=='SuperJump' then
  660. otheranims=false
  661. end
  662. end
  663. if kei=='v' and crouching and otheranims and not displaying then
  664. if not opencd then
  665. local rei=Ray.new(lid.CFrame.p,(lid.CFrame.p-(lid.CFrame*CFrame.new(0,0,-1)).p).unit*2)
  666. local hit,hitpos=workspace:FindPartOnRay(rei,chr)
  667. if hit and hit.Parent then
  668. opencd=true
  669. if hit.Parent:IsA'Model' then
  670. 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
  671. if hit.Parent:findFirstChild('Torso') then
  672. local asd=Instance.new('BodyVelocity',hit.Parent.Torso)
  673. asd.velocity=((rutprt.CFrame*CFrame.new(0,4,1).p-rutprt.CFrame.p).unit*222)
  674. game:service'Debris':AddItem(asd,.4)
  675. end
  676. end
  677. wait'.5'
  678. opencd=false
  679. end
  680. end
  681. end
  682. if kei=='c' and opencd and ltout then
  683. opencd=false
  684. ltout=false
  685. lt.Enabled=false
  686. end
  687. end)
  688.  
  689. local nskn = NumberSequenceKeypoint.new
  690. maus.Button1Down:connect(function()
  691. if runnin and not otheranims and (rutprt.Velocity*Vector3.new(1,0,1)).magnitude>RunSpeed-5 and not TackleCD then
  692. otheranims=true
  693. TackleCD=true
  694. anim="Tackle"
  695. chr.Humanoid.WalkSpeed=0
  696. local bv=Instance.new('BodyVelocity',base)
  697. bv.Name='git gud'
  698. bv.maxForce=Vector3.new(1/0,0,1/0)
  699. bv.velocity=((rutprt.CFrame*CFrame.new(0,0,-3)).p-rutprt.CFrame.p).unit*(RunSpeed+(22*(RunSpeed/100)))
  700. wait'1'
  701. bv:destroy''
  702. otheranims=false
  703. wait'2'
  704. TackleCD=false
  705. end
  706. if not throwcd and crouching and otheranims and not opencd and not displaying then
  707. opencd=true
  708. throwcd=true
  709. opens:play''
  710. local grb=GarbageTypes[math.random(1,#GarbageTypes)]
  711. local grbg=Instance.new('Part',workspace)
  712. grbg.Name=grb[1]
  713. grbg.formFactor=3
  714. 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)))
  715. grbg.TopSurface=10
  716. grbg.BottomSurface=10
  717. grbg.LeftSurface=10
  718. grbg.RightSurface=10
  719. grbg.BackSurface=10
  720. grbg.FrontSurface=10
  721. grbg.CanCollide=false
  722. grbg.Anchored=false
  723. grbg.Anchored=false
  724. grbg.Transparency=0
  725. grbg.Locked=true
  726. grbg.Size=Vector3.new(.8,.8,.8)
  727. local emitter=Instance.new("ParticleEmitter",grbg)
  728. emitter.Rate=111
  729.  
  730. emitter.Acceleration=Vector3.new(0,5,0)
  731. emitter.Lifetime=NumberRange.new(2)
  732. --emitter.EmissionDirection="Back"
  733.  
  734. emitter.VelocitySpread=11
  735. emitter.Enabled=true
  736. emitter.Rotation=NumberRange.new(-15,15)
  737. emitter.RotSpeed=NumberRange.new(-25,25)
  738. emitter.Texture="http://www.roblox.com/asset?id="..alldecals[math.random(1,#alldecals)]
  739. emitter.Size = NumberSequence.new({
  740. nskn(0 , 1 , 0);
  741. nskn(0.123, .85 , 0);
  742. nskn(0.154, .7 , 0);
  743. nskn(0.208, .55 , 0);
  744. nskn(0.357, .4 , 0);
  745. nskn(0.555, .25 , 0);
  746. nskn(0.725, .1, 0);
  747. nskn(0.905, 0, 0);
  748. nskn(1 , 0, 0);
  749. })
  750. 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)})
  751. local hitsnd=Instance.new('Sound',grbg)
  752. hitsnd.Volume=1
  753. hitsnd.Pitch=1
  754. hitsnd.SoundId="http://www.roblox.com/asset?id=144467617"
  755. local hitsnd2=Instance.new('Sound',grbg)
  756. hitsnd2.Volume=.5
  757. hitsnd2.Pitch=1.05
  758. hitsnd2.SoundId="http://www.roblox.com/asset?id="..grb[5]
  759. local magn=(maus.Hit.p-(base.CFrame*CFrame.new(0,4.5,-2)).p).magnitude
  760. grbg.Velocity=((maus.Hit.p-(base.CFrame*CFrame.new(0,4.5,-2)).p).unit*(magn*1.25))+Vector3.new(0,72.5,0)
  761. local firsthit=true
  762. local ms=Instance.new('SpecialMesh',grbg)
  763. ms.MeshId="http://www.roblox.com/asset?id="..grb[2]
  764. ms.TextureId="http://www.roblox.com/asset?id="..grb[3]
  765. ms.Scale=grb[4]
  766. grbg.Touched:connect(function(hit)
  767. if hit and hit.Parent and hit:IsA'Part' and hit.CanCollide and hit.Transparency<1 and firsthit then
  768. firsthit=false
  769. hitsnd:play''
  770. hitsnd2:play''
  771. grbg.Anchored=true
  772. grbg.Transparency=1
  773. game:service'Debris':AddItem(grbg,2)
  774. local expl=Instance.new('Part',workspace)
  775. expl.Name=grb[1]
  776. expl.formFactor=3
  777. expl.CFrame=CFrame.new(grbg.CFrame.x,grbg.CFrame.y,grbg.CFrame.z)
  778. expl.TopSurface=10
  779. expl.BottomSurface=10
  780. expl.LeftSurface=10
  781. expl.RightSurface=10
  782. expl.BackSurface=10
  783. expl.FrontSurface=10
  784. expl.CanCollide=false
  785. expl.Anchored=true
  786. expl.Transparency=1
  787. expl.Locked=true
  788. expl.Size=Vector3.new(.2,.2,.2)
  789. local emitr=Instance.new("ParticleEmitter",expl)
  790. emitr.Rate=333
  791. emitr.Speed=NumberRange.new(35,40)
  792. emitr.Acceleration=Vector3.new(0,-30,0)
  793. emitr.Lifetime=NumberRange.new(.5)
  794. emitr.EmissionDirection="Top"
  795. 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)})
  796.  
  797. emitr.VelocitySpread=120
  798. emitr.Enabled=true
  799. emitr.Rotation=NumberRange.new(-15,15)
  800. emitr.RotSpeed=NumberRange.new(-25,25)
  801. emitr.Texture=emitter.Texture
  802. emitr.Size = NumberSequence.new({
  803. nskn(0 , 2 , 0);
  804. nskn(0.123, 1.75 , 0);
  805. nskn(0.154, 1.5 , 0);
  806. nskn(0.208, 1.25 , 0);
  807. nskn(0.357, 1 , 0);
  808. nskn(0.555, .75 , 0);
  809. nskn(0.725, .5, 0);
  810. nskn(0.905, .25, 0);
  811. nskn(1 , 0, 0);
  812. })
  813. emitter.Rate=0
  814. for i,x in pairs(workspace:GetChildren()) do
  815. if x:IsA'Model' and x:findFirstChild("Humanoid") and x:findFirstChild("Torso") and x:findFirstChild("Head") then
  816. if (x.Torso.Position-expl.Position).magnitude<=12 and x~=chr then
  817. x:breakJoints''
  818. end
  819. end
  820. end
  821. wait'.2'
  822. emitr.Rate=0
  823. game:service'Debris':AddItem(expl,1)
  824. end
  825. end)
  826. wait'.2'
  827. opencd=false
  828. wait'.6'
  829. throwcd=false
  830. end
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837. end)
  838.  
  839.  
  840.  
  841.  
  842. lid.Touched:connect(function(hit)
  843. if otheranims==true and anim=="Tackle" or anim=='SuperJump' and not hitdb and not hit.Parent:IsA'Hat' and hit.Name~='Base' then
  844. if anim=='SuperJump' then otheranims=false chr.Humanoid.Jump=true end
  845. hitdb=true
  846. if hit and hit.Parent then
  847. if hit.Parent:IsA'Model' then
  848. for i,x in pairs(hit.Parent:GetChildren()) do if x:IsA'Humanoid' then hit.Parent:breakJoints'' hits:play'' end end
  849. if hit.Parent.Parent then
  850. for i,x in pairs(hit.Parent.Parent:GetChildren()) do if x:IsA'Humanoid' then hit.Parent.Parent:breakJoints'' hits:play'' end end
  851. end
  852. end
  853. end
  854. wait'.8' hitdb=false
  855. end
  856. end)
  857.  
  858.  
  859. game:service'RunService'.RenderStepped:connect(function()
  860. 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
  861. if anim~=lastanim then
  862. runtime=0
  863. end
  864. lastanim=anim
  865. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(waifu.CFrame)).p+Vector3.new(0,-1.25,0)
  866. syne=syne+.95
  867. if not otheranims and not swimming then
  868. 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
  869. anim="Idling"
  870. 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
  871. anim="Walking"
  872. 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
  873. anim="Sprinting"
  874. elseif torso.Velocity.y>5 and chr.Humanoid.Jump then
  875. anim='Jumping'
  876. elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
  877. anim='Falling'
  878. end
  879. end
  880. if otheranims and crouching and not swimming and not flying then
  881. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 then
  882. anim="Crouching"
  883. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 then
  884. anim="Sneaking"
  885. end
  886. end
  887.  
  888. if otheranims and flying and not swimming and not crouching then
  889. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 then
  890. anim="FlyIdle"
  891. heliweld1.C0=CFrame.new(0,3.25,0)*CFrame.Angles(0,syne,0)
  892. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 then
  893. anim="FlyForward"
  894. heliweld1.C0=CFrame.new(0,3.25,0)*CFrame.Angles(0,syne,0)
  895. end
  896. else
  897. heliweld1.C0=CFrame.new(0,0,0)
  898. end
  899.  
  900. if anim=="Idling" then
  901. idlesineinc=35
  902. 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)
  903. 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)
  904. 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)
  905. 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)
  906. 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)
  907. 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)
  908. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  909. end
  910.  
  911. if anim=="Walking" then
  912. 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)
  913. 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)
  914. 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)
  915. 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)
  916. 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)
  917. 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)
  918. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  919. end
  920.  
  921. if anim=="Sprinting" then
  922. 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)
  923. 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)
  924. 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)
  925. 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)
  926. 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)
  927. 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)
  928. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  929. end
  930.  
  931. if anim=="Jumping" then
  932. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
  933. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
  934. 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)
  935. 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)
  936. 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)
  937. 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)
  938. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  939. end
  940.  
  941. if anim=="Tackle" then
  942. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
  943. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
  944. 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)
  945. 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)
  946. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
  947. 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)
  948. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  949. end
  950.  
  951. if anim=="Falling" then
  952. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
  953. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
  954. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
  955. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
  956. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035)
  957. 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)
  958. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  959. end
  960.  
  961. if anim=="SuperJump" then
  962. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.525,0)*CFrame.Angles(math.rad(175),0,math.rad(10)),.15)
  963. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.525,0)*CFrame.Angles(math.rad(175),0,math.rad(-10)),.15)
  964. 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)
  965. 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)
  966. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.15)
  967. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-3,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  968. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,3,0)*CFrame.Angles(0,0,0),.15)
  969. end
  970.  
  971. if anim=="Crouching" then
  972. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  973. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  974. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  975. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  976. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.1)
  977. 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)
  978. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  979. end
  980.  
  981. if anim=="Sneaking" then
  982. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  983. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  984. 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)
  985. 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)
  986. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.1)
  987. 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)
  988. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  989. end
  990.  
  991. if anim=="FlyIdle" then
  992. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  993. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  994. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  995. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  996. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.1)
  997. 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)
  998. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  999. end
  1000. if anim=="FlyForward" then
  1001. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1002. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1003. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1004. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1005. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.1)
  1006. 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)
  1007. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  1008. end
  1009.  
  1010. if opencd and otheranims then
  1011. lidWeld.C0=Lerp(lidWeld.C0,CFrame.new(0,3,-1)*CFrame.Angles(math.rad(85),math.rad(0),math.rad(0)),.222)
  1012. music.Volume=TwnSingleNumber(music.Volume,.7,.025)
  1013. elseif not opencd and not displaying then
  1014. music.Volume=TwnSingleNumber(music.Volume,.025,.05)
  1015. elseif not opencd and displaying then
  1016. music.Volume=TwnSingleNumber(music.Volume,.325,.05)
  1017. end
  1018. if bboxout then
  1019. bbweld.C0=Lerp(bbweld.C0,CFrame.new(0,1.9,.2)*CFrame.Angles(math.rad(15),math.rad(0),math.rad(0)),.222)
  1020. else
  1021. bbweld.C0=Lerp(bbweld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
  1022. end
  1023. if ltout then
  1024. blbweld.C0=Lerp(blbweld.C0,CFrame.new(0,1.7,-.7)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.222)
  1025. lt.Range=TwnSingleNumber(lt.Range,16,.1)
  1026. else
  1027. blbweld.C0=Lerp(blbweld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
  1028. lt.Range=0
  1029. end
  1030. if displaying then
  1031. girlWeld.C0=Lerp(girlWeld.C0,CFrame.new(0,2.2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
  1032. lidWeld.C0=Lerp(lidWeld.C0,CFrame.new(0,.15,.75)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  1033. else
  1034. girlWeld.C0=Lerp(girlWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1035. lidWeld.C0=Lerp(lidWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
  1036. end
  1037. if runnin and not otheranims and not swimming then
  1038. chr.Humanoid.WalkSpeed=RunSpeed
  1039. elseif not runnin and not otheranims and not swimming then
  1040. chr.Humanoid.WalkSpeed=WlkSpeed
  1041. end
  1042. end
  1043. end)
  1044. end
  1045. do
  1046. player = owner or game:GetService("Players").LocalPlayer
  1047.  
  1048. chatted = false
  1049.  
  1050.  
  1051. a = Instance.new("BillboardGui", player.Character:FindFirstChild("Head"))
  1052. a.ExtentsOffset = Vector3.new(1,0,0)
  1053. a.Size = UDim2.new(1,0,1,0)
  1054. a.AlwaysOnTop = true
  1055. a.Enabled = true
  1056. b = Instance.new("ImageLabel", a)
  1057. b.BackgroundTransparency = 1
  1058. b.BorderSizePixel = 0
  1059. b.Image = "http://www.roblox.com/asset/?id=243503908"
  1060. b.ImageTransparency = 0.1
  1061. b.Position = UDim2.new(0.2,0,0.05,0)
  1062. b.Size = UDim2.new(5,0,1.2,0)
  1063. b.Visible = false
  1064. c = Instance.new("TextLabel", b)
  1065. c.BackgroundTransparency = 1
  1066. c.BorderSizePixel = 0
  1067. c.Position = UDim2.new(0.1,0,0)
  1068. c.Size = UDim2.new(0.5,0,0.4,0)
  1069. c.ZIndex = 2
  1070. c.Font = "SourceSans"
  1071. c.FontSize = "Size18"
  1072. c.Text = player.Name..":"
  1073. c.TextColor3 = Color3.new(255/255,255/255,255/255)
  1074. c.TextXAlignment = "Left"
  1075. c.TextYAlignment = "Center"
  1076. d = Instance.new("TextLabel", b)
  1077. d.BackgroundTransparency = 1
  1078. d.BorderSizePixel = 0
  1079. d.Position = UDim2.new(0.1,0,0.4,0)
  1080. d.Size = UDim2.new(0.9,0,0.6,0)
  1081. d.ZIndex = 2
  1082. d.Font = "SourceSans"
  1083. d.FontSize = "Size18"
  1084. d.Text = ""
  1085. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  1086. d.TextXAlignment = "Left"
  1087. d.TextYAlignment = "Top"
  1088. d.TextWrapped = true
  1089.  
  1090.  
  1091. function message(message)
  1092. repeat wait() until chatted == false
  1093. chatted = true
  1094. b.Visible = true
  1095. if string.find(message,"-r") ~=nil then
  1096. for i=1,string.len(message),1 do
  1097. d.TextColor3 = Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  1098. d.Text = string.sub(message,1,i)
  1099. wait(0.1)
  1100. end
  1101. elseif string.find(message,"-b") ~=nil then
  1102. for i=1,string.len(message),1 do
  1103. d.Text = string.sub(string.byte(message),1,i)
  1104. wait(0.05)
  1105. end
  1106. else
  1107. for i=1,string.len(message),1 do
  1108. d.Text = string.sub(message,1,i)
  1109. wait(0.05)
  1110. end
  1111. end
  1112. wait(2)
  1113. if string.find(message,"-t") ~=nil then
  1114. b.Visible = true
  1115. else
  1116. b.Visible = false
  1117. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  1118. end
  1119. chatted = false
  1120. end
  1121.  
  1122.  
  1123.  
  1124.  
  1125. player.Chatted:connect(message)
  1126. end
Add Comment
Please, Sign In to add comment