Advertisement
codemen

The box script [roblox]

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