Advertisement
FloweyTheFlower

Roblox Scripts #3 Trash can music

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