Advertisement
Robert666121

Box

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