Advertisement
Abejaron23

Untitled

May 25th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.61 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.  
  498. local music=Instance.new('Sound',bbox)
  499. music.Name='ok music'
  500. music.Volume=.025
  501. music.Pitch=1
  502. music.SoundId="http://www.roblox.com/asset?id="..musics[math.random(1,#musics)]
  503. music.Looped=true
  504. local helisn=Instance.new('Sound',heli1)
  505. helisn.SoundId="http://www.roblox.com/asset?id=131503030"
  506. helisn.Volume=.1
  507. helisn.Pitch=2
  508. helisn.Looped=true
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515. local gui=Instance.new('ScreenGui',plr.PlayerGui)
  516. gui.Name='you make me cri'
  517. local topFrame=Instance.new('Frame',gui)
  518. topFrame.Name='TopFrame'
  519. topFrame.Size=UDim2.new(1,0,1,0)
  520. topFrame.BorderSizePixel=0
  521. topFrame.BackgroundTransparency=1
  522. local choiceFrame=Instance.new('Frame',topFrame)
  523. choiceFrame.Size=UDim2.new(.4,0,.05,0)
  524. choiceFrame.Draggable=true
  525. choiceFrame.BackgroundTransparency=.7
  526. choiceFrame.Position=UDim2.new(.3,0,.775,0)
  527. choiceFrame.BackgroundColor3=Color3.new(.2,.2,.2)
  528. choiceFrame.BorderColor3=Color3.new(0,0,0)
  529. local innerFrame=Instance.new('Frame',choiceFrame)
  530. innerFrame.Size=UDim2.new(.5,0,1,0)
  531. innerFrame.Draggable=true
  532. innerFrame.BackgroundTransparency=.9
  533. innerFrame.Position=UDim2.new(0,0,0,0)
  534. innerFrame.BackgroundColor3=Color3.new(.2,.2,.2)
  535. innerFrame.BorderColor3=Color3.new(0,0,0)
  536. local innerFrame2=Instance.new('Frame',choiceFrame)
  537. innerFrame2.Visible=true
  538. innerFrame2.Size=UDim2.new(.5,0,1,0)
  539. innerFrame2.Draggable=false
  540. innerFrame2.BackgroundTransparency=.5
  541. innerFrame2.Position=UDim2.new(0,0,1,1)
  542. innerFrame2.BackgroundColor3=Color3.new(.2,.2,.2)
  543. innerFrame2.BorderColor3=Color3.new(0,0,0)
  544. local imageID=Instance.new('TextBox',innerFrame2)
  545. imageID.Size=UDim2.new(.8,0,.7,0)
  546. imageID.Position=UDim2.new(.1,0,.15,0)
  547. imageID.BackgroundTransparency=.7
  548. imageID.Visible=true
  549. imageID.Text="Image ID"
  550. imageID.TextScaled=true
  551. imageID.TextStrokeTransparency=0
  552. imageID.TextStrokeColor3=Color3.new(.1,.1,.1)
  553. imageID.TextColor3=Color3.new(.7,.7,.7)
  554. imageID.BackgroundColor3=Color3.new(.2,.2,.2)
  555. imageID.BorderColor3=Color3.new(0,0,0)
  556. imageID.FocusLost:connect(function(ent)
  557. if ent then
  558. img.Texture="http://www.roblox.com/asset?id="..imageID.Text-1
  559. end
  560. end)
  561. local bt1=Instance.new('TextButton',innerFrame)
  562. bt1.Draggable=false
  563. bt1.BackgroundTransparency=.9
  564. bt1.BackgroundColor3=Color3.new(.2,.2,.2)
  565. bt1.Size=UDim2.new(.5,0,1,0)
  566. bt1.Text="Custom"
  567. bt1.TextStrokeTransparency=0
  568. bt1.TextColor3=Color3.new(.7,.7,.7)
  569. bt1.TextScaled=true
  570. bt1.TextStrokeColor3=Color3.new(.1,.1,.1)
  571. bt1.Font="SourceSans"
  572. bt1.MouseButton1Click:connect(function()
  573. if imageType=='Table' then
  574. imageType="Custom"
  575. innerFrame2.Visible=true
  576. imageID.Visible=true
  577. end
  578. end)
  579. local bt2=Instance.new('TextButton',innerFrame)
  580. bt2.Draggable=false
  581. bt2.BackgroundTransparency=.9
  582. bt2.BackgroundColor3=Color3.new(.1,.1,.1)
  583. bt2.Size=UDim2.new(.5,0,1,0)
  584. bt2.Position=UDim2.new(.5,0,0,0)
  585. bt2.Text="Table"
  586. bt2.TextStrokeTransparency=0
  587. bt2.TextColor3=Color3.new(.7,.7,.7)
  588. bt2.TextScaled=true
  589. bt2.TextStrokeColor3=Color3.new(.1,.1,.1)
  590. bt2.Font="SourceSans"
  591. bt2.MouseButton1Click:connect(function()
  592. if imageType~='Table' then
  593. imageType="Table"
  594. imageID.Visible=false
  595. innerFrame2.Visible=false
  596. img.Texture="http://www.roblox.com/asset?id="..decals[currentdecalid]-1
  597. end
  598. end)
  599.  
  600. local innerFrame3=Instance.new('Frame',choiceFrame)
  601. innerFrame3.Size=UDim2.new(.5,0,1,0)
  602. innerFrame3.Position=UDim2.new(.5,0,0,0)
  603. innerFrame3.Draggable=true
  604. innerFrame3.BackgroundTransparency=.9
  605. innerFrame3.BackgroundColor3=Color3.new(.2,.2,.2)
  606. innerFrame3.BorderColor3=Color3.new(0,0,0)
  607. local innerFrame4=Instance.new('Frame',choiceFrame)
  608. innerFrame4.Size=UDim2.new(.5,0,1,0)
  609. innerFrame4.Draggable=false
  610. innerFrame4.BackgroundTransparency=.5
  611. innerFrame4.Position=UDim2.new(.5,0,1,1)
  612. innerFrame4.BackgroundColor3=Color3.new(.2,.2,.2)
  613. innerFrame4.BorderColor3=Color3.new(0,0,0)
  614. local musicID=Instance.new('TextBox',innerFrame4)
  615. musicID.Size=UDim2.new(.8,0,.7,0)
  616. musicID.Position=UDim2.new(.1,0,.15,0)
  617. musicID.BackgroundTransparency=.7
  618. musicID.Visible=true
  619. musicID.Text="Music ID"
  620. musicID.TextScaled=true
  621. musicID.TextStrokeTransparency=0
  622. musicID.TextStrokeColor3=Color3.new(.1,.1,.1)
  623. musicID.TextColor3=Color3.new(.7,.7,.7)
  624. musicID.BackgroundColor3=Color3.new(.2,.2,.2)
  625. musicID.BorderColor3=Color3.new(0,0,0)
  626. musicID.FocusLost:connect(function(ent)
  627. if ent then
  628. music.SoundId="http://www.roblox.com/asset?id="..musicID.Text
  629. end
  630. end)
  631. local bt3=Instance.new('TextButton',innerFrame3)
  632. bt3.Draggable=false
  633. bt3.BackgroundTransparency=.9
  634. bt3.BackgroundColor3=Color3.new(.2,.2,.2)
  635. bt3.Size=UDim2.new(.5,0,1,0)
  636. bt3.Text="Play"
  637. bt3.TextStrokeTransparency=0
  638. bt3.TextColor3=Color3.new(.7,.7,.7)
  639. bt3.TextScaled=true
  640. bt3.TextStrokeColor3=Color3.new(.1,.1,.1)
  641. bt3.Font="SourceSans"
  642. bt3.MouseButton1Click:connect(function()
  643. if not music.IsPlaying then
  644. musicID.Visible=false
  645. music:play''
  646. innerFrame4.Visible=false
  647. end
  648. end)
  649. local bt4=Instance.new('TextButton',innerFrame3)
  650. bt4.Draggable=false
  651. bt4.BackgroundTransparency=.9
  652. bt4.BackgroundColor3=Color3.new(.1,.1,.1)
  653. bt4.Size=UDim2.new(.5,0,1,0)
  654. bt4.Position=UDim2.new(.5,0,0,0)
  655. bt4.Text="Stop"
  656. bt4.TextStrokeTransparency=0
  657. bt4.TextColor3=Color3.new(.7,.7,.7)
  658. bt4.TextScaled=true
  659. bt4.TextStrokeColor3=Color3.new(.1,.1,.1)
  660. bt4.Font="SourceSans"
  661. bt4.MouseButton1Click:connect(function()
  662. if music.IsPlaying then
  663. music:stop''
  664. musicID.Visible=true
  665. innerFrame4.Visible=true
  666. end
  667. end)
  668.  
  669.  
  670. maus.KeyDown:connect(function(kei)
  671. if string.byte(kei)==48 and not otheranims then
  672. runnin=true
  673. end
  674. if kei=='x' and crouching and not opencd and not displaying then
  675. opens:play''
  676. opencd=true
  677. bboxout=true
  678. end
  679. if kei=='w' then fldb.w=true end
  680. if kei=='a' then fldb.a=true end
  681. if kei=='s' then fldb.s=true end
  682. if kei=='d' then fldb.d=true end
  683. if string.byte(kei)==50 then
  684. if otheranims and crouching then crouching=false otheranims=false if opencd then opencd=false bboxout=false ltout=false end
  685. elseif not otheranims and not crouching then
  686. otheranims=true
  687. crouching=true
  688. chr.Humanoid.WalkSpeed=WlkSpeed*.75
  689. end
  690. end
  691. if kei=='r' and not displaying then
  692. if not heli and not opencd and not displaying and crouching then
  693. opencd=true
  694. heli=true
  695. crouching=false
  696. flying=true
  697. helisn:play''
  698. helilt.Enabled=true
  699. helim2.Scale=Vector3.new(.5,.15,2)
  700. helim3.Scale=Vector3.new(.5,.15,2)
  701. chr.Humanoid.WalkSpeed=WlkSpeed
  702. bvelo.maxForce=Vector3.new(0,1/0,0)
  703. bvelo.velocity=Vector3.new(0,0,0)
  704. elseif heli and opencd then
  705. heli=false
  706. helilt.Enabled=false
  707. opencd=false
  708. flying=false
  709. helim2.Scale=Vector3.new(.5,.1,1)
  710. helim3.Scale=Vector3.new(.5,.1,1)
  711. helisn:stop''
  712. chr.Humanoid.WalkSpeed=WlkSpeed*.75
  713. crouching=true
  714. bvelo.maxForce=Vector3.new(0,0,0)
  715. end
  716. end
  717. if kei=='q' then
  718. bvelo.velocity=Vector3.new(0,-25,0)
  719. end
  720. if kei=='e' then
  721. bvelo.velocity=Vector3.new(0,20,0)
  722. end
  723. if kei=='z' and not opencd then
  724. displaying=true
  725. end
  726. if kei=='k' and not opencd and crouching and not displaying then
  727. opencd=true
  728. opens:play''
  729. chr.Humanoid.WalkSpeed=0
  730. local grbg=Instance.new('Part',workspace)
  731. grbg.Name="bomb"
  732. grbg.formFactor=3
  733. grbg.CFrame=base.CFrame*CFrame.new(0,5,0)
  734. grbg.TopSurface=10
  735. grbg.BottomSurface=10
  736. grbg.LeftSurface=10
  737. grbg.RightSurface=10
  738. grbg.BackSurface=10
  739. grbg.FrontSurface=10
  740. grbg.CanCollide=false
  741. grbg.Anchored=false
  742. grbg.Anchored=false
  743. grbg.Transparency=0
  744. grbg.Shape='Ball'
  745. grbg.BrickColor=BrickColor.new('Really black')
  746. grbg.Locked=true
  747. grbg.Size=Vector3.new(.8,.8,.8)
  748. grbg.Velocity=Vector3.new(0,100,0)
  749. grbg.Touched:connect(function(tch)
  750. if tch and tch.Parent then
  751. local expl=Instance.new('Explosion',workspace)
  752. expl.Position=grbg.Position
  753. expl.BlastPressure=1111111
  754. expl.BlastRadius=22
  755. grbg:destroy''
  756. end
  757. end)
  758. wait'1'
  759. opencd=false
  760. chr.Humanoid.WalkSpeed=WlkSpeed*.75
  761. end
  762. game:service'Debris':AddItem(grbg,5)
  763. if kei=='c' and not opencd and crouching and not displaying then
  764. opens:play''
  765. opencd=true
  766. lt.Enabled=true
  767. ltout=true
  768. end
  769. end)
  770. maus.KeyUp:connect(function(kei)
  771. if string.byte(kei)==48 and not otheranims then
  772. runnin=false
  773. end
  774. if kei=='w' then fldb.w=false end
  775. if kei=='a' then fldb.a=false end
  776. if kei=='s' then fldb.s=false end
  777. if kei=='d' then fldb.d=false end
  778. if kei=='x' and bboxout and opencd then
  779. bboxout=false
  780. opencd=false
  781. end
  782. if kei=='q' then
  783. bvelo.velocity=Vector3.new(0,0,0)
  784. end
  785. if kei=='e' then
  786. bvelo.velocity=Vector3.new(0,0,0)
  787. end
  788. if kei=='z' then
  789. displaying=false
  790. if imageType=="Table" then
  791. currentdecalid=currentdecalid+1
  792. if currentdecalid>#decals then currentdecalid=1 end
  793. img.Texture="http://www.roblox.com/asset?id="..decals[currentdecalid]-1
  794. end
  795. end
  796. if kei=='j' and crouching and otheranims and not displaying and not opencd and anim=='Crouching' then
  797. crouching=false
  798. anim='SuperJump'
  799. local bv=Instance.new('BodyVelocity',rutprt)
  800. bv.maxForce=Vector3.new(0,1/0,0)
  801. bv.velocity=Vector3.new(0,300,0)
  802. game:service'Debris':AddItem(bv,.5)
  803. wait'1'
  804. chr.Humanoid.Jump=true
  805. if anim=='SuperJump' then
  806. otheranims=false
  807. end
  808. end
  809. if kei=='v' and crouching and otheranims and not displaying then
  810. if not opencd then
  811. local rei=Ray.new(lid.CFrame.p,(lid.CFrame.p-(lid.CFrame*CFrame.new(0,0,-1)).p).unit*2)
  812. local hit,hitpos=workspace:FindPartOnRay(rei,chr)
  813. if hit and hit.Parent then
  814. opencd=true
  815. if hit.Parent:IsA'Model' then
  816. 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
  817. if hit.Parent:findFirstChild('Torso') then
  818. local asd=Instance.new('BodyVelocity',hit.Parent.Torso)
  819. asd.velocity=((rutprt.CFrame*CFrame.new(0,4,1).p-rutprt.CFrame.p).unit*222)
  820. game:service'Debris':AddItem(asd,.4)
  821. end
  822. end
  823. wait'.5'
  824. opencd=false
  825. end
  826. end
  827. end
  828. if kei=='c' and opencd and ltout then
  829. opencd=false
  830. ltout=false
  831. lt.Enabled=false
  832. end
  833. end)
  834.  
  835. local nskn = NumberSequenceKeypoint.new
  836. maus.Button1Down:connect(function()
  837. if runnin and not otheranims and (rutprt.Velocity*Vector3.new(1,0,1)).magnitude>RunSpeed-5 and not TackleCD then
  838. otheranims=true
  839. TackleCD=true
  840. anim="Tackle"
  841. chr.Humanoid.WalkSpeed=0
  842. local bv=Instance.new('BodyVelocity',base)
  843. bv.Name='git gud'
  844. bv.maxForce=Vector3.new(1/0,0,1/0)
  845. bv.velocity=((rutprt.CFrame*CFrame.new(0,0,-3)).p-rutprt.CFrame.p).unit*(RunSpeed+(22*(RunSpeed/100)))
  846. wait'1'
  847. bv:destroy''
  848. otheranims=false
  849. wait'2'
  850. TackleCD=false
  851. end
  852. if not throwcd and crouching and otheranims and not opencd and not displaying then
  853. opencd=true
  854. throwcd=true
  855. opens:play''
  856. local grb=GarbageTypes[math.random(1,#GarbageTypes)]
  857. local grbg=Instance.new('Part',workspace)
  858. grbg.Name=grb[1]
  859. grbg.formFactor=3
  860. 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)))
  861. grbg.TopSurface=10
  862. grbg.BottomSurface=10
  863. grbg.LeftSurface=10
  864. grbg.RightSurface=10
  865. grbg.BackSurface=10
  866. grbg.FrontSurface=10
  867. grbg.CanCollide=false
  868. grbg.Anchored=false
  869. grbg.Anchored=false
  870. grbg.Transparency=0
  871. grbg.Locked=true
  872. grbg.Size=Vector3.new(.8,.8,.8)
  873. local emitter=Instance.new("ParticleEmitter",grbg)
  874. emitter.Rate=111
  875.  
  876. emitter.Acceleration=Vector3.new(0,5,0)
  877. emitter.Lifetime=NumberRange.new(2)
  878. --emitter.EmissionDirection="Back"
  879.  
  880. emitter.VelocitySpread=11
  881. emitter.Enabled=true
  882. emitter.Rotation=NumberRange.new(-15,15)
  883. emitter.RotSpeed=NumberRange.new(-25,25)
  884. emitter.Texture="http://www.roblox.com/asset?id="..alldecals[math.random(1,#alldecals)]
  885. emitter.Size = NumberSequence.new({
  886. nskn(0 , 1 , 0);
  887. nskn(0.123, .85 , 0);
  888. nskn(0.154, .7 , 0);
  889. nskn(0.208, .55 , 0);
  890. nskn(0.357, .4 , 0);
  891. nskn(0.555, .25 , 0);
  892. nskn(0.725, .1, 0);
  893. nskn(0.905, 0, 0);
  894. nskn(1 , 0, 0);
  895. })
  896. 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)})
  897. local hitsnd=Instance.new('Sound',grbg)
  898. hitsnd.Volume=1
  899. hitsnd.Pitch=1
  900. hitsnd.SoundId="http://www.roblox.com/asset?id=144467617"
  901. local hitsnd2=Instance.new('Sound',grbg)
  902. hitsnd2.Volume=.5
  903. hitsnd2.Pitch=1.05
  904. hitsnd2.SoundId="http://www.roblox.com/asset?id="..grb[5]
  905. local magn=(maus.Hit.p-(base.CFrame*CFrame.new(0,4.5,-2)).p).magnitude
  906. grbg.Velocity=((maus.Hit.p-(base.CFrame*CFrame.new(0,4.5,-2)).p).unit*(magn*1.25))+Vector3.new(0,72.5,0)
  907. local firsthit=true
  908. local ms=Instance.new('SpecialMesh',grbg)
  909. ms.MeshId="http://www.roblox.com/asset?id="..grb[2]
  910. ms.TextureId="http://www.roblox.com/asset?id="..grb[3]
  911. ms.Scale=grb[4]
  912. grbg.Touched:connect(function(hit)
  913. if hit and hit.Parent and hit:IsA'Part' and hit.CanCollide and hit.Transparency<1 and firsthit then
  914. firsthit=false
  915. hitsnd:play''
  916. hitsnd2:play''
  917. grbg.Anchored=true
  918. grbg.Transparency=1
  919. game:service'Debris':AddItem(grbg,2)
  920. local expl=Instance.new('Part',workspace)
  921. expl.Name=grb[1]
  922. expl.formFactor=3
  923. expl.CFrame=CFrame.new(grbg.CFrame.x,grbg.CFrame.y,grbg.CFrame.z)
  924. expl.TopSurface=10
  925. expl.BottomSurface=10
  926. expl.LeftSurface=10
  927. expl.RightSurface=10
  928. expl.BackSurface=10
  929. expl.FrontSurface=10
  930. expl.CanCollide=false
  931. expl.Anchored=true
  932. expl.Transparency=1
  933. expl.Locked=true
  934. expl.Size=Vector3.new(.2,.2,.2)
  935. local emitr=Instance.new("ParticleEmitter",expl)
  936. emitr.Rate=333
  937. emitr.Speed=NumberRange.new(35,40)
  938. emitr.Acceleration=Vector3.new(0,-30,0)
  939. emitr.Lifetime=NumberRange.new(.5)
  940. emitr.EmissionDirection="Top"
  941. 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)})
  942.  
  943. emitr.VelocitySpread=120
  944. emitr.Enabled=true
  945. emitr.Rotation=NumberRange.new(-15,15)
  946. emitr.RotSpeed=NumberRange.new(-25,25)
  947. emitr.Texture=emitter.Texture
  948. emitr.Size = NumberSequence.new({
  949. nskn(0 , 2 , 0);
  950. nskn(0.123, 1.75 , 0);
  951. nskn(0.154, 1.5 , 0);
  952. nskn(0.208, 1.25 , 0);
  953. nskn(0.357, 1 , 0);
  954. nskn(0.555, .75 , 0);
  955. nskn(0.725, .5, 0);
  956. nskn(0.905, .25, 0);
  957. nskn(1 , 0, 0);
  958. })
  959. emitter.Rate=0
  960. for i,x in pairs(workspace:GetChildren()) do
  961. if x:IsA'Model' and x:findFirstChild("Humanoid") and x:findFirstChild("Torso") and x:findFirstChild("Head") then
  962. if (x.Torso.Position-expl.Position).magnitude<=12 and x~=chr then
  963. x:breakJoints''
  964. end
  965. end
  966. end
  967. wait'.2'
  968. emitr.Rate=0
  969. game:service'Debris':AddItem(expl,1)
  970. end
  971. end)
  972. wait'.2'
  973. opencd=false
  974. wait'.6'
  975. throwcd=false
  976. end
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983. end)
  984.  
  985.  
  986.  
  987.  
  988. lid.Touched:connect(function(hit)
  989. if otheranims==true and anim=="Tackle" or anim=='SuperJump' and not hitdb and not hit.Parent:IsA'Hat' and hit.Name~='Base' then
  990. if anim=='SuperJump' then otheranims=false chr.Humanoid.Jump=true end
  991. hitdb=true
  992. if hit and hit.Parent then
  993. if hit.Parent:IsA'Model' then
  994. for i,x in pairs(hit.Parent:GetChildren()) do if x:IsA'Humanoid' then hit.Parent:breakJoints'' hits:play'' end end
  995. if hit.Parent.Parent then
  996. for i,x in pairs(hit.Parent.Parent:GetChildren()) do if x:IsA'Humanoid' then hit.Parent.Parent:breakJoints'' hits:play'' end end
  997. end
  998. end
  999. end
  1000. wait'.8' hitdb=false
  1001. end
  1002. end)
  1003.  
  1004.  
  1005. game:service'RunService'.RenderStepped:connect(function()
  1006. 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
  1007. if anim~=lastanim then
  1008. runtime=0
  1009. end
  1010. lastanim=anim
  1011. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(waifu.CFrame)).p+Vector3.new(0,-1.25,0)
  1012. syne=syne+.95
  1013. if not otheranims and not swimming then
  1014. 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
  1015. anim="Idling"
  1016. 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
  1017. anim="Walking"
  1018. 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
  1019. anim="Sprinting"
  1020. elseif torso.Velocity.y>5 and chr.Humanoid.Jump then
  1021. anim='Jumping'
  1022. elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
  1023. anim='Falling'
  1024. end
  1025. end
  1026. if otheranims and crouching and not swimming and not flying then
  1027. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 then
  1028. anim="Crouching"
  1029. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 then
  1030. anim="Sneaking"
  1031. end
  1032. end
  1033.  
  1034. if otheranims and flying and not swimming and not crouching then
  1035. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 then
  1036. anim="FlyIdle"
  1037. heliweld1.C0=CFrame.new(0,3.25,0)*CFrame.Angles(0,syne,0)
  1038. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 then
  1039. anim="FlyForward"
  1040. heliweld1.C0=CFrame.new(0,3.25,0)*CFrame.Angles(0,syne,0)
  1041. end
  1042. else
  1043. heliweld1.C0=CFrame.new(0,0,0)
  1044. end
  1045.  
  1046. if anim=="Idling" then
  1047. idlesineinc=35
  1048. 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)
  1049. 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)
  1050. 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)
  1051. 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)
  1052. 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)
  1053. 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)
  1054. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  1055. end
  1056.  
  1057. if anim=="Walking" then
  1058. 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)
  1059. 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)
  1060. 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)
  1061. 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)
  1062. 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)
  1063. 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)
  1064. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  1065. end
  1066.  
  1067. if anim=="Sprinting" then
  1068. 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)
  1069. 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)
  1070. 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)
  1071. 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)
  1072. 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)
  1073. 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)
  1074. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  1075. end
  1076.  
  1077. if anim=="Jumping" then
  1078. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
  1079. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
  1080. 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)
  1081. 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)
  1082. 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)
  1083. 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)
  1084. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  1085. end
  1086.  
  1087. if anim=="Tackle" then
  1088. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
  1089. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
  1090. 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)
  1091. 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)
  1092. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
  1093. 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)
  1094. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  1095. end
  1096.  
  1097. if anim=="Falling" then
  1098. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
  1099. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
  1100. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
  1101. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
  1102. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035)
  1103. 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)
  1104. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  1105. end
  1106.  
  1107. if anim=="SuperJump" then
  1108. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.525,0)*CFrame.Angles(math.rad(175),0,math.rad(10)),.15)
  1109. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.525,0)*CFrame.Angles(math.rad(175),0,math.rad(-10)),.15)
  1110. 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)
  1111. 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)
  1112. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.15)
  1113. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-3,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1114. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,3,0)*CFrame.Angles(0,0,0),.15)
  1115. end
  1116.  
  1117. if anim=="Crouching" then
  1118. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1119. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1120. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1121. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1122. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.1)
  1123. 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)
  1124. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  1125. end
  1126.  
  1127. if anim=="Sneaking" then
  1128. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1129. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1130. 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)
  1131. 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)
  1132. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.1)
  1133. 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)
  1134. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  1135. end
  1136.  
  1137. if anim=="FlyIdle" then
  1138. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1139. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1140. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1141. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1142. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.1)
  1143. 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)
  1144. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  1145. end
  1146. if anim=="FlyForward" then
  1147. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1148. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1149. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1150. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
  1151. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.1)
  1152. 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)
  1153. canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
  1154. end
  1155.  
  1156. if opencd and otheranims then
  1157. lidWeld.C0=Lerp(lidWeld.C0,CFrame.new(0,3,-1)*CFrame.Angles(math.rad(85),math.rad(0),math.rad(0)),.222)
  1158. music.Volume=TwnSingleNumber(music.Volume,.7,.025)
  1159. elseif not opencd and not displaying then
  1160. music.Volume=TwnSingleNumber(music.Volume,.025,.05)
  1161. elseif not opencd and displaying then
  1162. music.Volume=TwnSingleNumber(music.Volume,.325,.05)
  1163. end
  1164. if bboxout then
  1165. bbweld.C0=Lerp(bbweld.C0,CFrame.new(0,1.9,.2)*CFrame.Angles(math.rad(15),math.rad(0),math.rad(0)),.222)
  1166. else
  1167. bbweld.C0=Lerp(bbweld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
  1168. end
  1169. if ltout then
  1170. blbweld.C0=Lerp(blbweld.C0,CFrame.new(0,1.7,-.7)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.222)
  1171. lt.Range=TwnSingleNumber(lt.Range,16,.1)
  1172. else
  1173. blbweld.C0=Lerp(blbweld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
  1174. lt.Range=0
  1175. end
  1176. if displaying then
  1177. girlWeld.C0=Lerp(girlWeld.C0,CFrame.new(0,2.2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
  1178. lidWeld.C0=Lerp(lidWeld.C0,CFrame.new(0,.15,.75)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  1179. else
  1180. girlWeld.C0=Lerp(girlWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  1181. lidWeld.C0=Lerp(lidWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
  1182. end
  1183. if runnin and not otheranims and not swimming then
  1184. chr.Humanoid.WalkSpeed=RunSpeed
  1185. elseif not runnin and not otheranims and not swimming then
  1186. chr.Humanoid.WalkSpeed=WlkSpeed
  1187. end
  1188. end
  1189. end)
  1190. end
  1191. do
  1192. player = owner or game:GetService("Players").LocalPlayer
  1193.  
  1194. chatted = false
  1195.  
  1196.  
  1197. a = Instance.new("BillboardGui", player.Character:FindFirstChild("Head"))
  1198. a.ExtentsOffset = Vector3.new(1,0,0)
  1199. a.Size = UDim2.new(1,0,1,0)
  1200. a.AlwaysOnTop = true
  1201. a.Enabled = true
  1202. b = Instance.new("ImageLabel", a)
  1203. b.BackgroundTransparency = 1
  1204. b.BorderSizePixel = 0
  1205. b.Image = "http://www.roblox.com/asset/?id=243503908"
  1206. b.ImageTransparency = 0.1
  1207. b.Position = UDim2.new(0.2,0,0.05,0)
  1208. b.Size = UDim2.new(5,0,1.2,0)
  1209. b.Visible = false
  1210. c = Instance.new("TextLabel", b)
  1211. c.BackgroundTransparency = 1
  1212. c.BorderSizePixel = 0
  1213. c.Position = UDim2.new(0.1,0,0)
  1214. c.Size = UDim2.new(0.5,0,0.4,0)
  1215. c.ZIndex = 2
  1216. c.Font = "SourceSans"
  1217. c.FontSize = "Size18"
  1218. c.Text = player.Name..":"
  1219. c.TextColor3 = Color3.new(255/255,255/255,255/255)
  1220. c.TextXAlignment = "Left"
  1221. c.TextYAlignment = "Center"
  1222. d = Instance.new("TextLabel", b)
  1223. d.BackgroundTransparency = 1
  1224. d.BorderSizePixel = 0
  1225. d.Position = UDim2.new(0.1,0,0.4,0)
  1226. d.Size = UDim2.new(0.9,0,0.6,0)
  1227. d.ZIndex = 2
  1228. d.Font = "SourceSans"
  1229. d.FontSize = "Size18"
  1230. d.Text = ""
  1231. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  1232. d.TextXAlignment = "Left"
  1233. d.TextYAlignment = "Top"
  1234. d.TextWrapped = true
  1235.  
  1236.  
  1237. function message(message)
  1238. repeat wait() until chatted == false
  1239. chatted = true
  1240. b.Visible = true
  1241. if string.find(message,"-r") ~=nil then
  1242. for i=1,string.len(message),1 do
  1243. d.TextColor3 = Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  1244. d.Text = string.sub(message,1,i)
  1245. wait(0.1)
  1246. end
  1247. elseif string.find(message,"-b") ~=nil then
  1248. for i=1,string.len(message),1 do
  1249. d.Text = string.sub(string.byte(message),1,i)
  1250. wait(0.05)
  1251. end
  1252. else
  1253. for i=1,string.len(message),1 do
  1254. d.Text = string.sub(message,1,i)
  1255. wait(0.05)
  1256. end
  1257. end
  1258. wait(2)
  1259. if string.find(message,"-t") ~=nil then
  1260. b.Visible = true
  1261. else
  1262. b.Visible = false
  1263. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  1264. end
  1265. chatted = false
  1266. end
  1267.  
  1268.  
  1269.  
  1270.  
  1271. player.Chatted:connect(message)
  1272. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement