Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FlyButton = Instance.new("ImageButton")
- FlyButtonUICorner = Instance.new("UICorner")
- FlyMainFrame = Instance.new("ImageButton")
- FlyMainFrameUICorner = Instance.new("UICorner")
- SpeedUpButton = Instance.new("TextButton")
- SpeedDownButton = Instance.new("TextButton")
- SpeedUpButtonUICorner = Instance.new("UICorner")
- SpeedDownButtonUICorner = Instance.new("UICorner")
- CloseFlyFrame = Instance.new("TextButton")
- CloseFlyFrameUICorner = Instance.new("UICorner")
- StartStopFlyButton = Instance.new("TextButton")
- StartStopFlyButtonUICorner = Instance.new("UICorner")
- FlySpeedTextBox = Instance.new("TextBox")
- FlySpeedTextBoxUICorner = Instance.new("UICorner")
- SpeedValue = 1
- FlyButton.Name = "FlyButton"
- FlyButton.Parent = PluginButtonsFrame
- FlyButton.BackgroundColor3 = Color3.fromRGB(66, 170, 255)
- FlyButton.AutoButtonColor = false
- FlyButton.Image = "rbxassetid://83808701539324"
- FlyButtonUICorner.CornerRadius = UDim.new(0, 10)
- FlyButtonUICorner.Parent = FlyButton
- FlyMainFrame.Name = "FlyMainFrame"
- FlyMainFrame.Parent = HeadFrame
- FlyMainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- FlyMainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- FlyMainFrame.Size = UDim2.new(0, 0, 0, 0)
- FlyMainFrame.Position = UDim2.new(0.5, 0, 0.0425, 0)
- FlyMainFrame.AutoButtonColor = false
- FlyMainFrameUICorner.CornerRadius = UDim.new(0, 10)
- FlyMainFrameUICorner.Parent = FlyMainFrame
- CloseFlyFrame.Name = "CloseFlyFrame"
- CloseFlyFrame.Parent = FlyMainFrame
- CloseFlyFrame.BackgroundColor3 = Color3.fromRGB(66, 170, 255)
- CloseFlyFrame.Size = UDim2.new(0, 70, 0, 20)
- CloseFlyFrame.Position = UDim2.new(0, 2, 0, 2)
- CloseFlyFrame.Font = Enum.Font.ArimoBold
- CloseFlyFrame.AutoButtonColor = false
- CloseFlyFrame.Text = "Close"
- CloseFlyFrame.TextColor3 = Color3.fromRGB(255, 255, 255)
- CloseFlyFrame.TextSize = 15
- CloseFlyFrame.Visible = false
- CloseFlyFrameUICorner.CornerRadius = UDim.new(0, 10)
- CloseFlyFrameUICorner.Parent = CloseFlyFrame
- spawn(function()
- while task.wait() do
- if FlyMainFrame.Size == UDim2.new(0, 0, 0, 0) then
- CloseFlyFrame.Visible = false
- FlyMainFrame.Visible = false
- TweenService:Create(CloseFlyFrame, TweenInfo.new(), {Transparency = 1}):Play()
- --TweenService:Create(CloseButtonImageFrame, TweenInfo.new(), {Transparency = 1}):Play()
- --TweenService:Create(URLTextBox, TweenInfo.new(), {Transparency = 1}):Play()
- end
- if FlyMainFrame.Size ~= UDim2.new(0, 0, 0, 0) then
- CloseFlyFrame.Visible = false
- FlyMainFrame.Visible = true
- end
- if FlyMainFrame.Size == UDim2.new(0, 400, 0, 222) then
- CloseFlyFrame.Visible = true
- TweenService:Create(CloseFlyFrame, TweenInfo.new(0.5), {Transparency = 0}):Play()
- --TweenService:Create(CloseButtonImageFrame, TweenInfo.new(0.5), {Transparency = 0}):Play()
- --TweenService:Create(URLTextBox, TweenInfo.new(0.5), {Transparency = 0}):Play()
- end
- end
- end)
- FlyButton.MouseButton1Click:Connect(function()
- FlyMainFrame:TweenSize(UDim2.new(0, 400, 0, 222),"InOut","Sine",0.4)
- end)
- CloseFlyFrame.MouseButton1Click:Connect(function()
- FlyMainFrame:TweenSize(UDim2.new(0, 0, 0, 0),"InOut","Sine",0.4)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement