Advertisement
JOJOJOJOJOJO1234

Untitled

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