Advertisement
Guest User

Untitled

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