Advertisement
wamandnj

Untitled

Mar 22nd, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.27 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
  5. script.Parent = InternalData.RealOwner.Character
  6. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
  7. local function createObject (connections, index)
  8. local proxy = newproxy (true);local meta = getmetatable (proxy);
  9. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  10. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  11. meta.__index = function (self, i)
  12. if (i == 'TriggerEvent') then return runbind end;
  13. return connections[i] and connections[i].Event or index[i];
  14. end;
  15. meta.__newindex = index;meta.__metatable = false;return proxy
  16. end;
  17. local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  18. local UserInputService = createObject({"InputBegan","InputEnded"},{})
  19. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  20. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  21. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  22. Event.OnServerEvent:Connect(function(FiredBy,Input)
  23. if FiredBy ~= InternalData.RealOwner then return end
  24. if Input.MouseEvent then
  25. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  26. elseif Input.Sound then
  27. if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
  28. else
  29. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  30. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  31. for _,Action in pairs(ContextActionService.Actions) do
  32. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  33. end
  34. Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  35. end
  36. end)
  37. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  38. Event.Parent = NLS([[
  39. local Player = owner;
  40. local Sounds = {};
  41. local Event = script:WaitForChild("UserInput");
  42. local UserInputService = game:GetService("UserInputService");
  43. local Mouse = Player:GetMouse();
  44. local Input = function(Input,gameProcessedEvent)
  45. if gameProcessedEvent then return end
  46. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  47. end
  48. Event.OnClientEvent:connect(function(Args)
  49. if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
  50. end)
  51. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  52. local Hit,Target
  53. while wait(1/30) do
  54. for x,Sound in pairs(Sounds) do
  55. if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
  56. end
  57. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  58. Hit = Mouse.Hit;Target = Mouse.Target;
  59. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  60. end
  61. end
  62. ]],InternalData.RealOwner.Character)
  63. end
  64. InternalData.NewOwner = setmetatable({},{
  65. __index = function (self,Index)
  66. local Type = type(InternalData.RealOwner[Index])
  67. if Type == "function" then
  68. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  69. return function (self)return InternalData["Mouse"] end
  70. end
  71. return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
  72. elseif Index == "FakePlayer" then
  73. return true
  74. end
  75. return InternalData.RealOwner[Index]
  76. end;
  77. __tostring = function(self) return tostring(InternalData.RealOwner) end
  78. })
  79. --LoadLibrary("RbxUtility").Create
  80. InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
  81. if Library == "RbxUtility" then
  82. return setmetatable({},{
  83. __tostring = function() return "RbxUtility" end;
  84. __index = function(self, Index)
  85. if Index:lower() == "create" then
  86. return function(Type)
  87. return function(Data)
  88. Data = Data or {}
  89. local Inst = Instance.new(Type)
  90. for x,y in pairs(Data) do
  91. if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
  92. if y == owner then y = InternalData.RealOwner end
  93. Inst[x] = y
  94. end
  95. return Inst
  96. end
  97. end
  98. end
  99. return InternalData.LoadLibrary(Library)[Index]
  100. end
  101. })
  102. end
  103. return InternalData.LoadLibrary(Library)
  104. end
  105. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  106. __index = function (self,Index)
  107. if Index:lower() == 'new' then
  108. return function (Type, Parent)
  109. if Parent == owner then Parent = InternalData.RealOwner end
  110. if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
  111. local Real = InternalData.RealInstance.new(Type,Parent)
  112. if not Type then return end
  113. if Type == "BillboardGui" then
  114. local ToReturn = setmetatable({},{
  115. __index = function (self,Index)
  116. if type(Real[Index]) == "function" then
  117. if Index:lower() == "clone" then
  118. return function (self)
  119. local Real = Real:Clone()
  120. local ToReturn = setmetatable({RealObject = Real},{
  121. __index = function (self,Index)
  122. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  123. return Real[Index]
  124. end;
  125. __newindex = function (self,Index,Value)
  126. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  127. if Value == owner then Value = InternalData.RealOwner end
  128. Real[Index] = Value
  129. end;
  130. __tostring = function(self) return tostring(Real) end;
  131. })
  132. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  133. end
  134. end
  135. return function (self,...) return Real[Index](Real,...)end
  136. end
  137. return Real[Index]
  138. end;
  139. __newindex = function (self,Index,Value)
  140. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  141. if Value == owner then Value = InternalData.RealOwner end
  142. Real[Index] = Value
  143. end;
  144. __tostring = function(self) return tostring(Real) end;
  145. })
  146. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  147. elseif Type:lower() == "sound" then
  148. Real.Parent = owner.Character;
  149. local ToReturn = setmetatable({RealObject = Real},{
  150. __index = function (self,Index)
  151. if Index:lower() == "playbackloudness" then
  152. return InternalData.SoundLoudness[Real] or 0
  153. elseif type(Real[Index]) == "function" then
  154. if Index:lower() == "clone" then
  155. return function (self)
  156. local Real = Real:Clone()
  157. local ToReturn = setmetatable({},{
  158. __index = function (self,Index)
  159. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  160. return Real[Index]
  161. end;
  162. __newindex = function (self,Index,Value)
  163. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  164. if Value == owner then Value = InternalData.RealOwner end
  165. Real[Index] = Value
  166. end;
  167. __tostring = function(self) return tostring(Real) end;
  168. })
  169. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  170. end
  171. end
  172. return function (self,...) return Real[Index](Real,...)end
  173. end
  174. return Real[Index]
  175. end;
  176. __newindex = function (self,Index,Value)
  177. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  178. if Value == owner then Value = InternalData.RealOwner end
  179. Real[Index] = Value
  180. end;
  181. __tostring = function(self) return tostring(Real) end;
  182. })
  183. InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
  184. else
  185. local ToReturn = setmetatable({RealObject = Real},{
  186. __index = function (self,Index)
  187. if type(Real[Index]) == "function" then
  188. if Index:lower() == "clone" then
  189. return function (self)
  190. local Real = Real:Clone()
  191. local ToReturn = setmetatable({},{
  192. __index = function (self,Index)
  193. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  194. return Real[Index]
  195. end;
  196. __newindex = function (self,Index,Value)
  197. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  198. if Value == owner then Value = InternalData.RealOwner end
  199. Real[Index] = Value
  200. end;
  201. __tostring = function(self) return tostring(Real) end;
  202. })
  203. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  204. end
  205. end
  206. return function (self,...) return Real[Index](Real,...)end
  207. end
  208. return Real[Index]
  209. end;
  210. __newindex = function (self,Index,Value)
  211. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  212. if Value == owner then Value = InternalData.RealOwner end
  213. Real[Index] = Value
  214. end;
  215. __tostring = function(self) return tostring(Real) end;
  216. })
  217. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  218. end
  219. end
  220. end
  221. return InternalData.RealInstance[Index]
  222. end;
  223. __tostring = function(self) return tostring(InternalData.RealInstance) end;
  224. });
  225. InternalData.RealGame = game;game = setmetatable({},{
  226. __index = function (self,Index)
  227. if InternalData.RealGame[Index] then
  228. local Type = type(InternalData.RealGame[Index])
  229. if Type == "function" then
  230. if Index:lower() == "getservice" or Index:lower() == "service" then
  231. return function (self,Service)
  232. local FakeServices = {
  233. ["players"] = function()
  234. return setmetatable({},{
  235. __index = function (self2,Index2)
  236. local RealService = InternalData.RealGame:GetService(Service)
  237. local Type2 = type(RealService[Index2])
  238. if Type2 == "function" then
  239. return function (self,...) return RealService[Index2](RealService,...)end
  240. else
  241. if Index2:lower() == "localplayer" then return InternalData.NewOwner end
  242. return RealService[Index2]
  243. end
  244. end;
  245. __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  246. })
  247. end;
  248. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  249. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  250. ["debris"] = function()
  251. return setmetatable({},{
  252. __index = function(self2,Index2)
  253. local RealService = InternalData.RealGame:GetService(Service)
  254. local Type2 = type(RealService[Index2])
  255. if Type2 == "function" then
  256. if Index2:lower() == "additem" then
  257. return function (self,Item,Time)
  258. if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
  259. return RealService:AddItem(Item,Time)
  260. end
  261. end
  262. return function (self,...) return RealService[Index2](RealService,...) end
  263. end
  264. return RealService[Index2]
  265. end;
  266. __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
  267. })
  268. end;
  269. ["runservice"] = function()
  270. return setmetatable({},{
  271. __index = function(self2,Index2)
  272. local RealService = InternalData.RealGame:GetService(Service)
  273. local Type2 = type(RealService[Index2])
  274. if Type2 == "function" then
  275. return function (self,...) return RealService[Index2](RealService,...) end
  276. else
  277. local RunServices = {
  278. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  279. ["renderstepped"] = function() return RealService["Stepped"] end
  280. }
  281. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  282. return RealService[Index2]
  283. end
  284. end;
  285. __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  286. })
  287. end
  288. }
  289. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  290. return InternalData.RealGame:GetService(Service)
  291. end
  292. end
  293. return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  294. else
  295. if game:GetService(Index) then return game:GetService(Index) end
  296. return InternalData.RealGame[Index]
  297. end
  298. end
  299. return nil
  300. end;
  301. __tostring = function(self) return tostring(InternalData.game) end
  302. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  303.  
  304. songs = {"No Rain","484759745","Panic","277784505","Pack up the Louie","262032243","Rock it for me","157460849","Suzy","280613610","Bambous","198285559","Sofa","253333412","Ballroom Breakers","269261597","Bad boy Good man","201552585","Booty Swing","242193187","Jimmy's Gang","228239848","Catgroove","149838917","All Night","253586805"}
  305.  
  306. local asin = math.asin
  307. local atan2 = math.atan2
  308. local rad = math.rad
  309. local sin = math.sin
  310. local abs = math.abs
  311. local ceil = math.ceil
  312. local pi = math.pi
  313. deddeb=false
  314. deb=false
  315. local player = game.Players.LocalPlayer
  316. local pchar = player.Character
  317. local mouse = player:GetMouse()
  318. local torso=pchar.Torso
  319. anim=true
  320. anim2=false
  321. anglespeed = 1
  322. hum=pchar.Humanoid
  323. angle = 0
  324. equi=false
  325. showing = false
  326. tol=Instance.new("HopperBin",player.Backpack)
  327. tol.Name="GramaPlayer"
  328. Part = function(x,y,z,color,tr,cc,an,parent)
  329. local p = Instance.new('Part',parent or Weapon)
  330. p.formFactor = 'Custom'
  331. p.Size = Vector3.new(x,y,z)
  332. p.BrickColor = BrickColor.new(color)
  333. p.CanCollide = cc
  334. p.Transparency = tr
  335. p.Anchored = an
  336. p.TopSurface,p.BottomSurface = 0,0
  337. return p
  338. end
  339. wPart = function(x,y,z,color,tr,cc,an,parent)
  340. local wp = Instance.new('WedgePart',parent or Weapon)
  341. wp.formFactor = 'Custom'
  342. wp.Size = Vector3.new(x,y,z)
  343. wp.BrickColor = BrickColor.new(color)
  344. wp.CanCollide = cc
  345. wp.Transparency = tr
  346. wp.Anchored = an
  347. wp.TopSurface,wp.BottomSurface = 0,0
  348. return wp
  349. end
  350. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  351. p0.Position = p1.Position
  352. local w = Instance.new('Motor',par or p0)
  353. w.Part0 = p0
  354. w.Part1 = p1
  355. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  356. return w
  357. end
  358. Mesh = function(par,num,x,y,z)
  359. local msh = nil
  360. if num == 1 then
  361. msh = Instance.new("CylinderMesh",par)
  362. elseif num == 2 then
  363. msh = Instance.new("SpecialMesh",par)
  364. msh.MeshType = 3
  365. elseif num == 3 then
  366. msh = Instance.new("BlockMesh",par)
  367. elseif type(num) == 'string' then
  368. msh = Instance.new("SpecialMesh",par)
  369. msh.MeshId = num
  370. end
  371. msh.Scale = Vector3.new(x,y,z)
  372. return msh
  373. end
  374.  
  375. ROW = function(x, pa, out, col, trans, s, wt, t, ang, plus)
  376. for i = 1, 360, 360/t do wait()
  377. local c = Instance.new("Part", pa)
  378. c.FormFactor = 3
  379. c.TopSurface = 0
  380. c.BottomSurface = 0
  381. c.Size = s
  382. c.Anchored = true
  383. c.CanCollide = wt
  384. c.Transparency = trans
  385. c.BrickColor = BrickColor.new(col)
  386. c.CFrame = x * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang
  387. end
  388. end
  389.  
  390. local function getAngles(cf)
  391. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  392. return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
  393. end
  394. Lerp = {
  395. Number = function(C1,C2,inc)
  396. return C1 + (C2 - C1) * inc
  397. end;
  398. CFrame = function(a,b,m)
  399. local c,d={a:components()},{b:components()}
  400. table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end)
  401. return CFrame.new(unpack(c))
  402. end;
  403. }
  404. local function genWeld(a,b)
  405. local w = Instance.new("Weld",a)
  406. w.Part0 = a
  407. w.Part1 = b
  408. return w
  409. end
  410. local Neck = genWeld(pchar.Torso,pchar.Head)
  411. Neck.C0 = CFrame.new(0,1,0)
  412. Neck.C1 = CFrame.new(0,-0.5,0)
  413. local LeftShoulder = genWeld(pchar.Torso,pchar['Left Arm'])
  414. LeftShoulder.C0 = CFrame.new(-1,0.5,0)
  415. LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
  416. RightShoulder = genWeld(pchar.Torso,pchar['Right Arm'])
  417. RightShoulder.C0 = CFrame.new(1,0.5,0)
  418. RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
  419. local LeftHip = genWeld(pchar.Torso,pchar['Left Leg'])
  420. LeftHip.C0 = CFrame.new(-1,-1,0)
  421. LeftHip.C1 = CFrame.new(-0.5,1,0)
  422. local RightHip = genWeld(pchar.Torso,pchar['Right Leg'])
  423. RightHip.C0 = CFrame.new(1,-1,0)
  424. RightHip.C1 = CFrame.new(0.5,1,0)
  425. local RootJoint = genWeld(pchar.HumanoidRootPart,pchar.Torso)
  426. RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  427. RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  428. local function newLerpTo(weld)
  429. return {
  430. Weld = weld;
  431. To = weld.C0;
  432. Cache = weld.C0;
  433. Speed = 0.1;
  434. }
  435. end
  436. mo = Instance.new("Model",pchar)
  437. mp = Part(1,1,1,'Reddish brown',1,false,false,mo)
  438. Mesh(mp,3,1.5,.75,1.5)
  439. mw = Weld(mp,torso,0,-.125,-1.5,0,0,0,mo)
  440. mp.Material='Wood'
  441. p = Part(1,1,1,'Brown',1,false,false,mo)
  442. Mesh(p,3,1.75,.1,1.75)
  443. Weld(p,mp,0,-.375,0,0,0,0,mo)
  444. p.Material='Wood'
  445. p = Part(1,1,1,'Nougat',1,false,false,mo)
  446. Mesh(p,3,1.325,.1,1.325)
  447. Weld(p,mp,0,.375,0,0,0,0,mo)
  448. p.Material='WoodPlanks'
  449. p = Part(1,1,1,'Black',1,false,false,mo)
  450. Mesh(p,1,1.325,.1,1.325)
  451. Weld(p,mp,0,.376,0,0,0,0,mo)
  452. p.Material='SmoothPlastic'
  453. disc = Part(1,1,1,'Black',1,false,false,mo)
  454. Mesh(disc,3,1.25,.1,1.25)
  455. discw=Weld(disc,mp,0,.377,0,0,0,0,mo)
  456. d=Instance.new('Decal',disc)
  457. d.Face='Top'
  458. d.Transparency=1
  459. d.Texture='http://www.roblox.com/asset/?id=24716248'
  460. sp = Part(1,1,1,'',1,false,false,mo)
  461. Mesh(sp,1,.1,.5,.1)
  462. Weld(sp,mp,-.5,.42,-.5,rad(45),0,-rad(45),mo)
  463. sp.Material='SmoothPlastic'
  464. sp2 = Part(1,1,1,'',1,false,false,mo)
  465. Mesh(sp2,1,.15,.11,.15)
  466. Weld(sp2,sp,0,.25,0,pi/2,0,rad(50),mo)
  467. sp2.Material='SmoothPlastic'
  468. p = Part(1,1,1,'',1,false,false,mo)
  469. Mesh(p,1,.05,.5,.05)
  470. Weld(p,sp2,0.2,0,0,0,0,pi/2,mo)
  471. p.Material='SmoothPlastic'
  472. p = Part(1,1,1,'Dark stone grey',1,false,false,mo)
  473. Mesh(p,1,.15,.2,.15)
  474. Weld(p,mp,0,.377,0,0,0,0,mo)
  475. p = Part(1,1,1,'Black',1,false,false,mo)
  476. Mesh(p,1,.2,.1,.2)
  477. Weld(p,mp,.75,0,0,0,0,pi/2,mo)
  478. hn = Part(1,1,1,'Dark stone grey',1,false,false,mo)
  479. Mesh(hn,1,.1,.5,.1)
  480. hnw=Weld(hn,mp,.75,0,0,0,0,-pi/2,mo)
  481. p = Part(1,1,1,'Dark stone grey',1,false,false,mo)
  482. Mesh(p,1,.15,.11,.15)
  483. Weld(p,hn,0,.25,0,0,0,0,mo)
  484. p = Part(1,1,1,'Dark stone grey',1,false,false,mo)
  485. Mesh(p,1,.1,.25,.1)
  486. Weld(p,hn,-0.125,.25,0,0,0,pi/2,mo)
  487. p = Part(1,1,1,'Dark stone grey',1,false,false,mo)
  488. Mesh(p,1,.15,.11,.15)
  489. Weld(p,hn,-.25,.25,0,0,0,0,mo)
  490. p = Part(1,1,1,'Dark stone grey',1,false,false,mo)
  491. Mesh(p,1,.1,.5,.1)
  492. Weld(p,hn,-.25,.5,0,0,0,0,mo)
  493. p = Part(1,1,1,'Brown',1,false,false,mo)
  494. Mesh(p,1,.125,.35,.125)
  495. Weld(p,hn,-.25,.5,0,0,0,0,mo)
  496. p.Material='Wood'
  497. local crank = p
  498. for i=1,90,18 do
  499. local p=Part(1,1,1,'Dark stone grey',1,false,false,mo)
  500. Mesh(p,1,.15,.115,.15)
  501. local w=Weld(p,mp,0,0,0,0,0,0,p)
  502. w.C0=CFrame.new(0.3,0,0)*CFrame.Angles(0,0,-math.rad(i))*CFrame.new(.7,-.3,0);
  503. end
  504. p = Part(1,1,1,'Dark stone grey',1,false,false,mo)
  505. Mesh(p,1,.15,.3,.15)
  506. Weld(p,mp,-1,.5,0,0,0,0,mo)
  507. for i=1,70,18 do
  508. local p=Part(1,1,1,'Dark stone grey',1,false,false,mo)
  509. Mesh(p,1,.15,.115,.15)
  510. local w=Weld(p,mp,0,0,0,0,0,0,p)
  511. w.C0=CFrame.new(.3,0,0)*CFrame.Angles(0,0,math.rad(i))*CFrame.new(0.7,-.6,0);
  512. end
  513. strt = Part(1,1,1,'Dark stone grey',1,false,false,mo)
  514. Mesh(strt,1,.15,.3,.15)
  515. Weld(strt,mp,-.7,.925,0,0,0,-rad(65),mo)
  516.  
  517. for i=1,24 do
  518. local p=Part(1,1,1,'Dark stone grey',1,false,false,mo)
  519. Mesh(p,3,.5,.1,.01)
  520. local wld=Weld(p,strt,0,0,0,0,0,0,mo)
  521. wld.C1=CFrame.new(0,.1,0)*CFrame.Angles(pi/2,0,rad(360/24)*i)*CFrame.new(0.1,0,0)*CFrame.Angles(0,rad(70),0)
  522. end
  523. for i=1,24 do
  524. local p=Part(1,1,1,'Dark stone grey',1,false,false,mo)
  525. Mesh(p,3,.5,.2,.01)
  526. local wld=Weld(p,strt,0,0,0,0,0,0,mo)
  527. wld.C1=CFrame.new(0,.525,0)*CFrame.Angles(pi/2,0,rad(360/24)*i)*CFrame.new(0.35,0,0)*CFrame.Angles(0,rad(50),0)
  528. end
  529. p = Part(1,1,1,'Black',1,false,false,mo)
  530. Mesh(p,'http://www.roblox.com/asset/?id=3270017',.42,.42,.42)
  531. Weld(p,strt,0,.35,0,pi/2,0,0,mo)
  532. p = Part(1,1,1,'Black',1,false,false,mo)
  533. Mesh(p,'http://www.roblox.com/asset/?id=3270017',1,1,1)
  534. Weld(p,strt,0,.75,0,pi/2,0,0,mo)
  535.  
  536. s = Instance.new("Sound",sp2)
  537. s.Looped=true
  538. s.Pitch=1
  539.  
  540. local screengui = Instance.new("ScreenGui",player.PlayerGui)
  541. screengui.Name = "musicgui"
  542.  
  543. local frame = Instance.new("Frame",screengui)
  544. frame.BorderSizePixel = 0
  545. frame.Size = UDim2.new(0.15, 0, 0.35, 0)
  546. frame.ClipsDescendants = true
  547. frame.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  548. frame.Position = UDim2.new(1.1, 0, 0.35, 0)
  549. frame.BackgroundTransparency = 0.8
  550. frame.BackgroundColor3 = Color3.new(0, 0, 0)
  551.  
  552. local dt = Instance.new("Frame",frame)
  553. dt.BorderSizePixel = 0
  554. dt.Size = UDim2.new(0.02, 0, 1, 0)
  555. dt.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  556. dt.Name = "dt"
  557. dt.BackgroundTransparency = 0.8
  558. dt.BackgroundColor3 = Color3.new(1, 1, 1)
  559.  
  560. local dt_2 = Instance.new("Frame",frame)
  561. dt_2.BorderSizePixel = 0
  562. dt_2.Size = UDim2.new(0.98, 0, 0.02, 0)
  563. dt_2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  564. dt_2.Name = "dt"
  565. dt_2.Position = UDim2.new(0.02, 0, 0.2, 0)
  566. dt_2.BackgroundTransparency = 0.8
  567. dt_2.BackgroundColor3 = Color3.new(1, 1, 1)
  568.  
  569. local name = Instance.new("TextLabel",frame)
  570. name.FontSize = Enum.FontSize.Size24
  571. name.TextStrokeTransparency = 0
  572. name.BorderSizePixel = 0
  573. name.Size = UDim2.new(1, 0, 0.2, 0)
  574. name.TextColor3 = Color3.new(1, 1, 1)
  575. name.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  576. name.Text = "Music list"
  577. name.BackgroundTransparency = 1
  578. name.Font = Enum.Font.SourceSans
  579. name.Name = "name"
  580. name.BackgroundColor3 = Color3.new(1, 1, 1)
  581.  
  582. local list = Instance.new("ScrollingFrame",frame)
  583. list.Size = UDim2.new(0.82, 0, 0.6, 0)
  584. list.BackgroundTransparency = 0.8
  585. list.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  586. list.Name = "list"
  587. list.Position = UDim2.new(0.1, 0, 0.3, 0)
  588. list.ScrollBarThickness = 8
  589. list.BackgroundColor3 = Color3.new(0, 0, 0)
  590.  
  591. local dt_3 = Instance.new("Frame",selector)
  592. dt_3.BorderSizePixel = 0
  593. dt_3.Size = UDim2.new(0.02, 0, 1, 0)
  594. dt_3.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  595. dt_3.Name = "dt"
  596. dt_3.BackgroundTransparency = 0.8
  597. dt_3.BackgroundColor3 = Color3.new(1, 1, 1)
  598.  
  599. local songinfo = Instance.new("Frame",frame)
  600. songinfo.Size = UDim2.new(0.82, 0, 0.6, 0)
  601. songinfo.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  602. songinfo.Name = "songinfo"
  603. songinfo.Position = UDim2.new(1.1, 0, 0.3, 0)
  604. songinfo.BackgroundTransparency = 0.8
  605. songinfo.BackgroundColor3 = Color3.new(0, 0, 0)
  606.  
  607. local dt = Instance.new("Frame",songinfo)
  608. dt.BorderSizePixel = 0
  609. dt.Size = UDim2.new(1, 0, 0.02, 0)
  610. dt.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  611. dt.Name = "dt"
  612. dt.Position = UDim2.new(0, 0, 0.2, 0)
  613. dt.BackgroundTransparency = 0.8
  614. dt.BackgroundColor3 = Color3.new(1, 1, 1)
  615.  
  616. local songnam = Instance.new("TextLabel",songinfo)
  617. songnam.FontSize = Enum.FontSize.Size24
  618. songnam.TextStrokeTransparency = 0
  619. songnam.TextWrapped = true
  620. songnam.BorderSizePixel = 0
  621. songnam.Size = UDim2.new(1, 0, 0.2, 0)
  622. songnam.TextColor3 = Color3.new(1, 1, 1)
  623. songnam.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  624. songnam.Text = "n/a"
  625. songnam.BackgroundTransparency = 1
  626. songnam.Font = Enum.Font.SourceSans
  627. songnam.Name = "songnam"
  628. songnam.TextScaled = true
  629. songnam.BackgroundColor3 = Color3.new(1, 1, 1)
  630.  
  631. local time = Instance.new("Frame",songinfo)
  632. time.BorderSizePixel = 0
  633. time.Size = UDim2.new(0.8, 0, 0.1, 0)
  634. time.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  635. time.Name = "time"
  636. time.Position = UDim2.new(0.1, 0, 0.4, 0)
  637. time.BackgroundTransparency = 0.7
  638. time.BackgroundColor3 = Color3.new(0, 0, 0)
  639. time.ClipsDescendants=true
  640.  
  641. local slider = Instance.new("Frame",time)
  642. slider.BorderSizePixel = 0
  643. slider.Size = UDim2.new(0.955, 0, 0.7, 0)
  644. slider.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  645. slider.Name = "slider"
  646. slider.Position = UDim2.new(0.02, 0, 0.15, 0)
  647. slider.BackgroundTransparency = 0.4
  648. slider.BackgroundColor3 = Color3.new(1, 1, 1)
  649.  
  650. local snglegth = Instance.new("TextLabel",songinfo)
  651. snglegth.FontSize = Enum.FontSize.Size14
  652. snglegth.TextStrokeTransparency = 0
  653. snglegth.Size = UDim2.new(1, 0, 0.63, 0)
  654. snglegth.TextColor3 = Color3.new(1, 1, 1)
  655. snglegth.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  656. snglegth.Text = "0/120"
  657. snglegth.BackgroundTransparency = 1
  658. snglegth.Font = Enum.Font.SourceSans
  659. snglegth.Name = "snglegth"
  660. snglegth.BackgroundColor3 = Color3.new(1, 1, 1)
  661.  
  662. local pitch = Instance.new("TextButton",songinfo)
  663. pitch.FontSize = Enum.FontSize.Size12
  664. pitch.TextStrokeTransparency = 0
  665. pitch.BackgroundTransparency = 0.8
  666. pitch.Position = UDim2.new(0.455, 0, 0.525, 0)
  667. pitch.BorderSizePixel = 0
  668. pitch.Size = UDim2.new(0.25, 0, 0.15, 0)
  669. pitch.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  670. pitch.Text = "Set Pitch"
  671. pitch.Font = Enum.Font.SourceSans
  672. pitch.Name = "pitch"
  673. pitch.TextColor3 = Color3.new(1, 1, 1)
  674. pitch.BackgroundColor3 = Color3.new(0, 0, 0)
  675.  
  676. local play = Instance.new("TextButton",songinfo)
  677. play.FontSize = Enum.FontSize.Size14
  678. play.TextStrokeTransparency = 0
  679. play.BackgroundTransparency = 0.8
  680. play.Position = UDim2.new(0.175, 0, 0.525, 0)
  681. play.BorderSizePixel = 0
  682. play.Size = UDim2.new(0.25, 0, 0.15, 0)
  683. play.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  684. play.Text = "Stop"
  685. play.Font = Enum.Font.SourceSans
  686. play.Name = "play"
  687. play.TextColor3 = Color3.new(1, 1, 1)
  688. play.BackgroundColor3 = Color3.new(0, 0, 0)
  689.  
  690. local pitchn = Instance.new("TextBox",songinfo)
  691. pitchn.FontSize = Enum.FontSize.Size14
  692. pitchn.TextStrokeTransparency = 0
  693. pitchn.BackgroundTransparency = 0.8
  694. pitchn.BorderSizePixel = 0
  695. pitchn.Size = UDim2.new(0.1, 0, 0.15, 0)
  696. pitchn.Position = UDim2.new(0.735, 0, 0.525, 0)
  697. pitchn.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  698. pitchn.Text = "1"
  699. pitchn.TextColor3 = Color3.new(1, 1, 1)
  700. pitchn.Font = Enum.Font.SourceSans
  701. pitchn.Name = "pitchn"
  702. pitchn.BackgroundColor3 = Color3.new(0, 0, 0)
  703.  
  704. local rtr = Instance.new("TextButton",songinfo)
  705. rtr.FontSize = Enum.FontSize.Size14
  706. rtr.TextStrokeTransparency = 0
  707. rtr.BackgroundTransparency = 0.8
  708. rtr.Position = UDim2.new(0.175, 0, 0.7, 0)
  709. rtr.BorderSizePixel = 0
  710. rtr.Size = UDim2.new(0.667, 0, 0.15, 0)
  711. rtr.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  712. rtr.Text = "Return to list"
  713. rtr.Font = Enum.Font.SourceSans
  714. rtr.Name = "rtl"
  715. rtr.TextColor3 = Color3.new(1, 1, 1)
  716. rtr.BackgroundColor3 = Color3.new(0, 0, 0)
  717.  
  718. cpos=0
  719. numt2=1
  720. for i=1,#songs/2 do
  721. local cnumt=numt2+1
  722. local selector = Instance.new("TextButton",list)
  723. selector.FontSize = Enum.FontSize.Size18
  724. selector.TextWrapped = true
  725. selector.TextStrokeTransparency = 0
  726. selector.BackgroundTransparency = 0.8
  727. selector.Position = UDim2.new(0, 3, 0, 3+cpos)
  728. selector.BorderSizePixel = 0
  729. selector.Size = UDim2.new(.93, 0, 0, 30)
  730. selector.Text = songs[numt2]
  731. selector.Font = Enum.Font.SourceSans
  732. selector.Name = songs[numt2].."_selector"
  733. selector.TextColor3 = Color3.new(1, 1, 1)
  734. selector.TextScaled = true
  735. selector.BackgroundColor3 = Color3.new(0, 0, 0)
  736. selector.MouseButton1Click:connect(function()
  737. songinfo:TweenPosition(UDim2.new(.1, 0, 0.3, 0), "Out", "Quad", .2)
  738. list:TweenPosition(UDim2.new(-1, 0, 0.3, 0), "Out", "Quad", .2)
  739. local curp=s.Pitch
  740. s:Destroy()
  741. s = Instance.new("Sound",sp2)
  742. s.Looped=true
  743. s.Pitch=1
  744. s.Name=songs[cnumt-1]
  745. s.SoundId = "http://roblox.com/asset/?id="..songs[cnumt]
  746. wait(.1)
  747. s:Play()
  748. end)
  749. cpos=cpos+35
  750. numt2=numt2+2
  751. end
  752.  
  753. playa=false
  754.  
  755. play.MouseButton1Click:connect(function()
  756. playa=not playa
  757. if playa then
  758. curpi=s.Pitch
  759. play.Text="Play"
  760. for i=1,curpi/.05 do wait() s.Pitch=s.Pitch-.05 end
  761. else
  762. play.Text="Stop"
  763. for i=1,curpi/.05 do wait() s.Pitch=s.Pitch+.05 end
  764. end
  765. end)
  766.  
  767. pitch.MouseButton1Click:connect(function()
  768. s.Pitch=tonumber(pitchn.Text)
  769. end)
  770.  
  771. rtr.MouseButton1Click:connect(function()
  772. songinfo:TweenPosition(UDim2.new(1.1, 0, 0.3, 0), "Out", "Quad", .2)
  773. list:TweenPosition(UDim2.new(.1, 0, 0.3, 0), "Out", "Quad", .2)
  774. end)
  775.  
  776.  
  777. LerpTo = {
  778. Neck = newLerpTo(Neck);
  779. LeftArm = newLerpTo(LeftShoulder);
  780. RightArm = newLerpTo(RightShoulder);
  781. LeftLeg = newLerpTo(LeftHip);
  782. RightLeg = newLerpTo(RightHip);
  783. RootJoint = newLerpTo(RootJoint);
  784. }
  785.  
  786.  
  787. tol.Selected:connect(function(mouse)
  788. equi=true
  789. frame:TweenPosition(UDim2.new(.83, 0, 0.35, 0), "Out", "Quad", .5)
  790. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  791. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(20),0,0)
  792. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(20),0,0)
  793. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(90),0,rad(10))
  794. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(90),0,-rad(10))
  795. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0,0,-1.5)
  796. pchar.Humanoid.WalkSpeed=0
  797. for i=1,10 do wait()
  798. for _,v in pairs(mo:GetChildren()) do
  799. if v.ClassName=="Part" then
  800. v.Transparency=v.Transparency-.1
  801. if v==disc then v.Transparency=1 end
  802. end
  803. end
  804. d.Transparency=d.Transparency-.1
  805. end
  806. end)
  807.  
  808. tol.Deselected:connect(function(mouse)
  809. equi=false
  810. for i=1,10 do wait()
  811. for _,v in pairs(mo:GetChildren()) do
  812. if v.ClassName=="Part" then
  813. v.Transparency=v.Transparency+.1
  814. if v==disc then v.Transparency=1 end
  815. end
  816. end
  817. d.Transparency=d.Transparency+.1
  818. end
  819. pchar.Humanoid.WalkSpeed=16
  820. s:Stop()
  821. wait()
  822. frame:TweenPosition(UDim2.new(1.1, 0, 0.35, 0), "Out", "Quad", .5)
  823. songinfo:TweenPosition(UDim2.new(1.1, 0, 0.3, 0), "Out", "Quad", .2)
  824. list:TweenPosition(UDim2.new(.1, 0, 0.3, 0), "Out", "Quad", .2)
  825. end)
  826.  
  827. game:GetService("RunService"):BindToRenderStep("Player",Enum.RenderPriority.Character.Value,function()
  828. songnam.Text=s.Name
  829. snglegth.Text=s.TimePosition.."/"..s.TimeLength
  830. slider.Size = UDim2.new(math.ceil(s.TimePosition)/s.TimeLength, -8, .7, 0)
  831. angle = (angle % 100) + anglespeed/10
  832. if equi==false then
  833. if Vector3.new(torso.Velocity.x, torso.Velocity.y, torso.Velocity.z).magnitude < 2 then
  834. anglespeed = 1/2/2
  835. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0,0,0)
  836. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  837. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(-math.sin(angle)*.1,0,0)
  838. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(math.sin(angle)*.1,0,0)
  839. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(math.sin(angle)*.1,0,0)
  840. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(-math.sin(angle)*.1,0,0)
  841. end
  842. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  843. anglespeed = 4/2
  844. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  845. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0,0,0)
  846. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(-math.sin(angle)*1,0,0)
  847. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(math.sin(angle)*1,0,0)
  848. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(math.sin(angle)*1,0,0)
  849. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(-math.sin(angle)*1,0,0)
  850. end
  851. else
  852. local Point = (pchar['Torso'].CFrame*LerpTo.RightArm.Cache):inverse()*CFrame.new((pchar['Torso'].CFrame*LerpTo.RightArm.Cache).p,crank.Position)
  853. local Rel = (pchar['Torso'].CFrame*LerpTo.RightArm.Cache):inverse()*crank.Position
  854. Rel = Rel+Vector3.new(-0.5,0.35,0.95)
  855. local Rel2 = (pchar['Torso'].CFrame*LerpTo.RightArm.Cache):inverse()*(pchar['Right Arm'].Position)
  856. local Vec = Vector3.new(Rel.X-Rel2.X,Rel.Y-Rel2.Y,(Rel.Z-Rel2.Z)*10)
  857. CFr = (Point-Point.p)+Vec
  858. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFr * CFrame.Angles(math.rad(90),0,0)
  859. end
  860. for _,v in pairs(LerpTo) do
  861. v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)
  862. end
  863. discw.C1=discw.C1*CFrame.Angles(0,rad(2*s.Pitch),0)
  864. hnw.C1=hnw.C1*CFrame.Angles(0,rad(2*s.Pitch),0)
  865. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement