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