Type_Line

Untitled

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