Advertisement
samuelrichter66

tails

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