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