Gmodmoney2

InvisCan

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