Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.98 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,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  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 Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  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.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. --[[
  145. edited by mr steal yo bork with a sweet gui
  146. credits goes to the original creators
  147. --]]
  148.  
  149. -- visualizer
  150. local Parts = {}
  151. local Parts2 = {}
  152. local Direction = 1
  153. local loudness = 0
  154. local TColor = BrickColor.new("Black")
  155. for i = 1, 100 do
  156. local p = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  157. p.Size = Vector3.new(0.2, 0.2, 0.2)
  158. p.Anchored = true
  159. p.CanCollide = false
  160. p.Material = "Neon"
  161. p.Position = game.Players.LocalPlayer.Character.Torso.Position
  162. table.insert(Parts, p)
  163. end
  164. for i = 1, 100 do
  165. local p = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  166. p.Size = Vector3.new(0.2, 0.2, 0.2)
  167. p.Anchored = true
  168. p.CanCollide = false
  169. p.Material = "Neon"
  170. p.Position = game.Players.LocalPlayer.Character.Torso.Position
  171. table.insert(Parts2, p)
  172. end
  173. local sound = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  174. sound.SoundId = "rbxassetid://574539049"
  175. sound.Volume = 1
  176. sound:Play()
  177. spawn(function()
  178. local SelectedPart = 0
  179. while true do
  180. if Direction == 1 then
  181. if SelectedPart < #Parts then
  182. SelectedPart = SelectedPart + Direction
  183. else
  184. Direction = -1
  185. TColor = BrickColor.Random()
  186. end
  187. elseif Direction == -1 then
  188. if SelectedPart > 1 then
  189. SelectedPart = SelectedPart + Direction
  190. else
  191. Direction = 1
  192. TColor = BrickColor.Random()
  193. end
  194. end
  195. local sel = Parts[SelectedPart]
  196. local sel2 = Parts2[SelectedPart]
  197. sel.BrickColor = BrickColor.Random()
  198. sel2.BrickColor = BrickColor.Random()
  199. loudness = sound.PlaybackLoudness / 500
  200. sel.Size = Vector3.new(loudness, loudness, 0.2)
  201. sel2.Size = Vector3.new(loudness, loudness, 0.2)
  202. wait()
  203. sel.BrickColor = TColor
  204. sel2.BrickColor = TColor
  205. end
  206. end)
  207. game:GetService("RunService").RenderStepped:connect(function()
  208. for i = 1, #Parts do
  209. if i == 1 then
  210. Parts[i].CFrame = Parts[i].CFrame:lerp(game.Players.LocalPlayer.Character.Torso.CFrame, 0.9)
  211. else
  212. Parts[i].CFrame = Parts[i].CFrame:lerp(Parts[i - 1].CFrame * CFrame.Angles(-loudness / 20, math.sin(-loudness / 50), 0) * CFrame.new(0, 0, 0.15), 0.8)
  213. end
  214. end
  215. for i = 1, #Parts2 do
  216. if i == 1 then
  217. Parts2[i].CFrame = Parts2[i].CFrame:lerp(game.Players.LocalPlayer.Character.Torso.CFrame, 0.9)
  218. else
  219. Parts2[i].CFrame = Parts2[i].CFrame:lerp(Parts2[i - 1].CFrame * CFrame.Angles(-loudness / 20, math.sin(loudness / 50), 0) * CFrame.new(0, 0, 0.15), 0.8)
  220. end
  221. end
  222. end)
  223.  
  224. -- visualizer gui
  225.  
  226. local visualizergui = Instance.new("ScreenGui")
  227. local Frame = Instance.new("Frame")
  228. local idvalue = Instance.new("TextBox")
  229. local play = Instance.new("TextButton")
  230. local volume = Instance.new("TextBox")
  231. local pitch = Instance.new("TextBox")
  232. local close = Instance.new("TextButton")
  233. local min = Instance.new("TextButton")
  234. local credits = Instance.new("TextLabel")
  235. local open = Instance.new("TextButton")
  236. local set2 = Instance.new("TextButton")
  237. local set1 = Instance.new("TextButton")
  238. local loop = Instance.new("TextButton")
  239.  
  240. --properties xd
  241. visualizergui.Name = "visualizergui"
  242. visualizergui.Parent = game.Players.LocalPlayer.PlayerGui
  243.  
  244. Frame.Parent = visualizergui
  245. Frame.BackgroundColor3 = Color3.new(0.701961, 0.952941, 1)
  246. Frame.BackgroundTransparency = 0.20000000298023
  247. Frame.BorderColor3 = Color3.new(0.211765, 0.329412, 0.415686)
  248. Frame.BorderSizePixel = 8
  249. Frame.Position = UDim2.new(0, 51, 0, 213)
  250. Frame.Size = UDim2.new(0, 418, 0, 213)
  251. Frame.Active = true
  252. Frame.Draggable = true
  253. Frame.Visible = false
  254.  
  255. idvalue.Name = "idvalue"
  256. idvalue.Parent = Frame
  257. idvalue.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  258. idvalue.BackgroundTransparency = 0.5
  259. idvalue.Size = UDim2.new(0, 418, 0, 50)
  260. idvalue.Font = Enum.Font.Fantasy
  261. idvalue.FontSize = Enum.FontSize.Size24
  262. idvalue.Text = "Put ID plz"
  263. idvalue.TextSize = 24
  264.  
  265. play.Name = "play"
  266. play.Parent = Frame
  267. play.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  268. play.BackgroundTransparency = 0.44999998807907
  269. play.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  270. play.BorderSizePixel = 3
  271. play.Position = UDim2.new(0, 9, 0, 82)
  272. play.Size = UDim2.new(0, 117, 0, 50)
  273. play.Font = Enum.Font.SourceSans
  274. play.FontSize = Enum.FontSize.Size28
  275. play.Text = "Play"
  276. play.TextSize = 28
  277.  
  278. volume.Name = "volume"
  279. volume.Parent = Frame
  280. volume.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  281. volume.BackgroundTransparency = 0.44999998807907
  282. volume.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  283. volume.BorderSizePixel = 3
  284. volume.Position = UDim2.new(0, 151, 0, 82)
  285. volume.Size = UDim2.new(0, 117, 0, 50)
  286. volume.Font = Enum.Font.SourceSans
  287. volume.FontSize = Enum.FontSize.Size28
  288. volume.Text = "Volume"
  289. volume.TextSize = 28
  290.  
  291. pitch.Name = "pitch"
  292. pitch.Parent = Frame
  293. pitch.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  294. pitch.BackgroundTransparency = 0.44999998807907
  295. pitch.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  296. pitch.BorderSizePixel = 3
  297. pitch.Position = UDim2.new(0, 291, 0, 82)
  298. pitch.Size = UDim2.new(0, 117, 0, 50)
  299. pitch.Font = Enum.Font.SourceSans
  300. pitch.FontSize = Enum.FontSize.Size28
  301. pitch.Text = "Pitch"
  302. pitch.TextSize = 28
  303.  
  304. close.Name = "close"
  305. close.Parent = Frame
  306. close.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  307. close.BackgroundTransparency = 0.40000000596046
  308. close.Position = UDim2.new(0, 393, 0, 190)
  309. close.Size = UDim2.new(0, 25, 0, 23)
  310. close.Font = Enum.Font.SourceSans
  311. close.FontSize = Enum.FontSize.Size28
  312. close.Text = "X"
  313. close.TextSize = 28
  314.  
  315. min.Name = "min"
  316. min.Parent = Frame
  317. min.BackgroundColor3 = Color3.new(0.286275, 0.286275, 1)
  318. min.BackgroundTransparency = 0.40000000596046
  319. min.Position = UDim2.new(0, 357, 0, 190)
  320. min.Size = UDim2.new(0, 25, 0, 23)
  321. min.Font = Enum.Font.SourceSans
  322. min.FontSize = Enum.FontSize.Size36
  323. min.Text = "-"
  324. min.TextSize = 36
  325.  
  326. credits.Name = "credits"
  327. credits.Parent = Frame
  328. credits.BackgroundColor3 = Color3.new(1, 1, 1)
  329. credits.BackgroundTransparency = 1
  330. credits.Position = UDim2.new(0, 0, 0, 161)
  331. credits.Size = UDim2.new(0, 200, 0, 52)
  332. credits.Font = Enum.Font.SourceSans
  333. credits.FontSize = Enum.FontSize.Size14
  334. credits.Text = "credits to mr steal yo bork for gui, i didn't make the visualizer credits to whoever leaked it or made it."
  335. credits.TextSize = 14
  336. credits.TextWrapped = true
  337.  
  338. open.Name = "open"
  339. open.Parent = visualizergui
  340. open.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  341. open.BackgroundTransparency = 0.44999998807907
  342. open.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  343. open.BorderSizePixel = 3
  344. open.Position = UDim2.new(0, 0, 0, 400)
  345. open.Size = UDim2.new(0, 59, 0, 50)
  346. open.Font = Enum.Font.SourceSans
  347. open.FontSize = Enum.FontSize.Size28
  348. open.Text = "Open"
  349. open.TextSize = 28
  350. open.Visible = false
  351.  
  352. set2.Name = "set2"
  353. set2.Parent = Frame
  354. set2.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  355. set2.BackgroundTransparency = 0.44999998807907
  356. set2.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  357. set2.BorderSizePixel = 3
  358. set2.Position = UDim2.new(0, 325, 0, 136)
  359. set2.Size = UDim2.new(0, 55, 0, 25)
  360. set2.Font = Enum.Font.SourceSans
  361. set2.FontSize = Enum.FontSize.Size24
  362. set2.Text = "Set"
  363. set2.TextSize = 24
  364. set2.TextWrapped = true
  365.  
  366. set1.Name = "set1"
  367. set1.Parent = Frame
  368. set1.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  369. set1.BackgroundTransparency = 0.44999998807907
  370. set1.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  371. set1.BorderSizePixel = 3
  372. set1.Position = UDim2.new(0, 181, 0, 136)
  373. set1.Size = UDim2.new(0, 55, 0, 25)
  374. set1.Font = Enum.Font.SourceSans
  375. set1.FontSize = Enum.FontSize.Size24
  376. set1.Text = "Set"
  377. set1.TextSize = 24
  378. set1.TextWrapped = true
  379.  
  380. loop.Name = "loop"
  381. loop.Parent = Frame
  382. loop.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  383. loop.BackgroundTransparency = 0.44999998807907
  384. loop.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  385. loop.BorderSizePixel = 3
  386. loop.Position = UDim2.new(0, 241, 0, 188)
  387. loop.Size = UDim2.new(0, 84, 0, 25)
  388. loop.Font = Enum.Font.SourceSans
  389. loop.FontSize = Enum.FontSize.Size18
  390. loop.Text = "Loop : OFF"
  391. loop.TextSize = 18
  392. loop.TextWrapped = true
  393.  
  394. -- functions
  395. function start()
  396. wait(0.5)
  397. Frame.Position = UDim2.new(0, -500, 0, 400)
  398. Frame.Visible = true
  399. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  400. end
  401.  
  402. if game.Players.LocalPlayer.Character then
  403. start()
  404. else
  405. print'character not found plz try again XD'
  406. end
  407.  
  408. function minimize()
  409. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  410. credits.Text = ""
  411. min.Text = ""
  412. close.Text = ""
  413. play.Text = ""
  414. pitch.Text = ""
  415. volume.Text = ""
  416. idvalue.Text = ""
  417. set1.Text = ""
  418. set2.Text = ""
  419. loop.Text = ""
  420. Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  421. credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  422. min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  423. close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  424. idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  425. volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  426. play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  427. pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  428. loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  429. set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  430. set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  431. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  432. wait(0.5)
  433. Frame.Visible = false
  434. open.Visible = true
  435. end
  436.  
  437. function show()
  438. open.Visible = false
  439. Frame.Position = UDim2.new(0, -500, 0, 400)
  440. Frame.Visible = true
  441. credits.Text = "credits to me for gui, i didn't make the visualizer credits to whoever leaked it or made it."
  442. min.Text = "-"
  443. close.Text = "X"
  444. play.Text = "Play"
  445. pitch.Text = "Pitch"
  446. volume.Text = "Volume"
  447. idvalue.Text = "Put ID plz"
  448. set1.Text = "Set"
  449. set2.Text = "Set"
  450. loop.Text = "Loop : OFF"
  451. Frame:TweenSize(UDim2.new(0, 418, 0, 213),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  452. credits:TweenSize(UDim2.new(0, 200, 0, 52),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  453. min:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  454. close:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  455. idvalue:TweenSize(UDim2.new(0, 418, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  456. volume:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  457. play:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  458. pitch:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  459. set1:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  460. loop:TweenSize(UDim2.new(0, 84, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  461. set2:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  462. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint, 0.5)
  463. end
  464.  
  465. function exitdatshit()
  466. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  467. credits.Text = ""
  468. min.Text = ""
  469. close.Text = ""
  470. play.Text = ""
  471. pitch.Text = ""
  472. volume.Text = ""
  473. idvalue.Text = ""
  474. Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  475. credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  476. min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  477. close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  478. idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  479. volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  480. play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  481. pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  482. set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  483. set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  484. loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  485. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  486. wait(0.5)
  487. visualizergui:Destroy()
  488. end
  489.  
  490. -- events
  491. wait(1)
  492. min.MouseButton1Down:connect(function()
  493. minimize()
  494. end)
  495.  
  496. open.MouseButton1Down:connect(function()
  497. show()
  498. end)
  499.  
  500. close.MouseButton1Down:connect(function()
  501. exitdatshit()
  502. end)
  503.  
  504. set1.MouseButton1Down:connect(function()
  505. sound.Volume = volume.Text
  506. end)
  507.  
  508. set2.MouseButton1Down:connect(function()
  509. sound.Pitch = pitch.Text
  510. end)
  511.  
  512. play.MouseButton1Down:connect(function()
  513. sound.TimePosition = 0
  514. sound.SoundId = "rbxassetid://" .. idvalue.Text
  515. end)
  516.  
  517. loop.MouseButton1Down:connect(function()
  518. if loop.Text == "Loop : OFF" then
  519. sound.Looped = true
  520. loop.Text = "Loop : ON"
  521. else
  522. sound.Looped = false
  523. loop.Text = "Loop : OFF"
  524. end
  525. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement