Advertisement
ItzInfern

trash can

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