Advertisement
Guest User

AAAAAAAAAAAAAa

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