Advertisement
jayrock3401

Untitled

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