Gamer-Scripter

Free Script Loader

Nov 4th, 2023
1,189
3
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 3 0
  1. -- Here Your Free Script Loader Make Sure To Like And Subscribe On My Channel
  2. -- Give Me Credits If You're Going To Use It
  3.  
  4. -- ScreenGui object
  5. local gui = Instance.new("ScreenGui")
  6. gui.Name = "CustomLoader"
  7. gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  8.  
  9. -- Frame
  10. local frame = Instance.new("Frame")
  11. frame.Size = UDim2.new(0, 300, 0, 180)
  12. frame.Position = UDim2.new(0.5, -150, 0.9, -280)
  13. frame.BackgroundColor3 = Color3.new(0, 0, 0)
  14. frame.Parent = gui
  15.  
  16. -- UICorner of the frame
  17. local corner = Instance.new("UICorner")
  18. corner.CornerRadius = UDim.new(0, 10)
  19. corner.Parent = frame
  20.  
  21. -- Title
  22. local Title = Instance.new("TextLabel")
  23. Title.Size = UDim2.new(0.99, 0, 0, 60)
  24. Title.Position = UDim2.new(0.03, 0, 0.10, 0)
  25. Title.BackgroundColor3 = Color3.new(0, 0, 0)
  26. Title.BackgroundTransparency = 1
  27. Title.TextColor3 = Color3.new(1, 1, 1)
  28. Title.TextSize = 25
  29. Title.Font = Enum.Font.SourceSansBold
  30. Title.Text = "You Script Name" -- Change to your script name
  31. Title.Parent = frame
  32.  
  33. -- Loading bar frame
  34. local loadingBarFrame = Instance.new("Frame")
  35. loadingBarFrame.Size = UDim2.new(0, 0, 0.2, 0)
  36. loadingBarFrame.Position = UDim2.new(0.02, 0, 0.7, 0)
  37. loadingBarFrame.BackgroundColor3 = Color3.new(20, 0, 21)
  38. loadingBarFrame.Parent = frame
  39.  
  40. -- UICorner of the loading bar frame
  41. local corner_2 = Instance.new("UICorner")
  42. corner_2.CornerRadius = UDim.new(0, 6)
  43. corner_2.Parent = loadingBarFrame
  44.  
  45. -- Loading text
  46. local loadingText = Instance.new("TextLabel")
  47. loadingText.Size = UDim2.new(0.95, 0, 0, 30)
  48. loadingText.Position = UDim2.new(0.03, 0, 0.7, 0)
  49. loadingText.BackgroundColor3 = Color3.new(0, 0, 0)
  50. loadingText.BackgroundTransparency = 1
  51. loadingText.TextColor3 = Color3.new(1, 1, 1)
  52. loadingText.TextSize = 18
  53. loadingText.Font = Enum.Font.SourceSansBold
  54. loadingText.Text = "Loading..."
  55. loadingText.Parent = frame
  56.  
  57. -- Function to animate the loading bar
  58. function animateLoadingBar()
  59. local progress = 0
  60.  
  61. while progress < 100 do
  62. progress = progress + 1
  63. updateProgress(progress)
  64. wait(0.05) -- Adjust the animation speed as needed
  65. end
  66.  
  67. loadingText.Text = "Successfully Loaded"
  68. wait(0.5)
  69. gui:Destroy()
  70.  
  71. -- Put your script here
  72. end
  73.  
  74. -- Function to update the loading progress
  75. function updateProgress(progress)
  76. loadingBarFrame.Size = UDim2.new(progress / 105, 0, 0.2, 0)
  77. loadingText.Text = "Loading: " .. progress .. "%"
  78. end
  79.  
  80. -- Start the loading animation
  81. spawn(animateLoadingBar)
Advertisement
Add Comment
Please, Sign In to add comment