Advertisement
naser2345

rainbow trash! [its old but many people want it]

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