Advertisement
ERROR_CODE

Fly.plugin

Oct 1st, 2024 (edited)
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.06 KB | None | 0 0
  1. FlyButton = Instance.new("ImageButton")
  2. FlyButtonUICorner = Instance.new("UICorner")
  3. FlyMainFrame = Instance.new("ImageButton")
  4. FlyMainFrameUICorner = Instance.new("UICorner")
  5. SpeedUpButton = Instance.new("TextButton")
  6. SpeedDownButton = Instance.new("TextButton")
  7. SpeedUpButtonUICorner = Instance.new("UICorner")
  8. SpeedDownButtonUICorner = Instance.new("UICorner")
  9. CloseFlyFrame = Instance.new("TextButton")
  10. CloseFlyFrameUICorner = Instance.new("UICorner")
  11. StartStopFlyButton = Instance.new("TextButton")
  12. StartStopFlyButtonUICorner = Instance.new("UICorner")
  13. FlySpeedTextBox = Instance.new("TextBox")
  14. FlySpeedTextBoxUICorner = Instance.new("UICorner")
  15. SpeedValue = 1
  16.  
  17. FlyButton.Name = "FlyButton"
  18. FlyButton.Parent = PluginButtonsFrame
  19. FlyButton.BackgroundColor3 = Color3.fromRGB(66, 170, 255)
  20. FlyButton.AutoButtonColor = false
  21. FlyButton.Image = "rbxassetid://83808701539324"
  22.  
  23. FlyButtonUICorner.CornerRadius = UDim.new(0, 10)
  24. FlyButtonUICorner.Parent = FlyButton
  25.  
  26. FlyMainFrame.Name = "FlyMainFrame"
  27. FlyMainFrame.Parent = HeadFrame
  28. FlyMainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  29. FlyMainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  30. FlyMainFrame.Size = UDim2.new(0, 0, 0, 0)
  31. FlyMainFrame.Position = UDim2.new(0.5, 0, 0.0425, 0)
  32. FlyMainFrame.AutoButtonColor = false
  33.  
  34. FlyMainFrameUICorner.CornerRadius = UDim.new(0, 10)
  35. FlyMainFrameUICorner.Parent = FlyMainFrame
  36.  
  37. CloseFlyFrame.Name = "CloseFlyFrame"
  38. CloseFlyFrame.Parent = FlyMainFrame
  39. CloseFlyFrame.BackgroundColor3 = Color3.fromRGB(66, 170, 255)
  40. CloseFlyFrame.Size = UDim2.new(0, 70, 0, 20)
  41. CloseFlyFrame.Position = UDim2.new(0, 2, 0, 2)
  42. CloseFlyFrame.Font = Enum.Font.ArimoBold
  43. CloseFlyFrame.AutoButtonColor = false
  44. CloseFlyFrame.Text = "Close"
  45. CloseFlyFrame.TextColor3 = Color3.fromRGB(255, 255, 255)
  46. CloseFlyFrame.TextSize = 15
  47. CloseFlyFrame.Visible = false
  48.  
  49. CloseFlyFrameUICorner.CornerRadius = UDim.new(0, 10)
  50. CloseFlyFrameUICorner.Parent = CloseFlyFrame
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. spawn(function()
  58. while task.wait() do
  59. if FlyMainFrame.Size == UDim2.new(0, 0, 0, 0) then
  60. CloseFlyFrame.Visible = false
  61. FlyMainFrame.Visible = false
  62.  
  63. TweenService:Create(CloseFlyFrame, TweenInfo.new(), {Transparency = 1}):Play()
  64. --TweenService:Create(CloseButtonImageFrame, TweenInfo.new(), {Transparency = 1}):Play()
  65. --TweenService:Create(URLTextBox, TweenInfo.new(), {Transparency = 1}):Play()
  66. end
  67.  
  68. if FlyMainFrame.Size ~= UDim2.new(0, 0, 0, 0) then
  69. CloseFlyFrame.Visible = false
  70. FlyMainFrame.Visible = true
  71. end
  72.  
  73. if FlyMainFrame.Size == UDim2.new(0, 400, 0, 222) then
  74. CloseFlyFrame.Visible = true
  75.  
  76. TweenService:Create(CloseFlyFrame, TweenInfo.new(0.5), {Transparency = 0}):Play()
  77. --TweenService:Create(CloseButtonImageFrame, TweenInfo.new(0.5), {Transparency = 0}):Play()
  78. --TweenService:Create(URLTextBox, TweenInfo.new(0.5), {Transparency = 0}):Play()
  79. end
  80. end
  81. end)
  82.  
  83. FlyButton.MouseButton1Click:Connect(function()
  84. FlyMainFrame:TweenSize(UDim2.new(0, 400, 0, 222),"InOut","Sine",0.4)
  85. end)
  86.  
  87. CloseFlyFrame.MouseButton1Click:Connect(function()
  88. FlyMainFrame:TweenSize(UDim2.new(0, 0, 0, 0),"InOut","Sine",0.4)
  89. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement