Advertisement
ProHuilonYTZ

change it if u want idc

Sep 29th, 2024
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.61 KB | None | 0 0
  1. -- Create ScreenGui
  2. local screenGui = Instance.new("ScreenGui")
  3. screenGui.IgnoreGuiInset = true -- Make sure it fits the screen exactly
  4. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  5.  
  6. -- Create black background that will fade with the text
  7. local background = Instance.new("Frame")
  8. background.Size = UDim2.new(1, 0, 1, 0) -- Fullscreen
  9. background.Position = UDim2.new(0, 0, 0, 0)
  10. background.BackgroundColor3 = Color3.new(0, 0, 0) -- Black color
  11. background.BackgroundTransparency = 1 -- Start fully transparent
  12. background.Parent = screenGui
  13.  
  14. -- Create TextLabel for Loading...
  15. local loadingLabel = Instance.new("TextLabel")
  16. loadingLabel.Size = UDim2.new(0.3, 0, 0.1, 0)
  17. loadingLabel.Position = UDim2.new(0.35, 0, 0.45, 0)
  18. loadingLabel.BackgroundTransparency = 1
  19. loadingLabel.Text = "Loading..."
  20. loadingLabel.TextColor3 = Color3.new(1, 1, 1) -- White text
  21. loadingLabel.TextTransparency = 1 -- Start fully transparent
  22. loadingLabel.Font = Enum.Font.GothamSemibold -- Closest match to Windows 11 font
  23. loadingLabel.TextScaled = true
  24. loadingLabel.Parent = screenGui
  25.  
  26. -- Create ParticleEmitter for snow-like particles
  27. local particleEmitter = Instance.new("ParticleEmitter")
  28. particleEmitter.Parent = background
  29. particleEmitter.Texture = "rbxassetid://1183005672" -- Snow particle texture (replaceable)
  30. particleEmitter.Size = NumberSequence.new(0.1, 0.2)
  31. particleEmitter.Color = ColorSequence.new(Color3.new(1, 1, 1)) -- White particles
  32. particleEmitter.Transparency = NumberSequence.new(0.3, 1) -- Fade out particles as they fall
  33. particleEmitter.Lifetime = NumberRange.new(2, 4)
  34. particleEmitter.Rate = 50
  35. particleEmitter.VelocitySpread = 180 -- Spread of snow-like particles
  36. particleEmitter.Speed = NumberRange.new(1, 2)
  37. particleEmitter.Acceleration = Vector3.new(0, -10, 0) -- Falling down effect
  38. particleEmitter.Enabled = false -- Start disabled
  39.  
  40. -- Function to fade in and out the text and background
  41. local function fadeInAndOut()
  42.     -- Enable particles during fade
  43.     particleEmitter.Enabled = true
  44.  
  45.     -- Fade in background and text
  46.     for i = 1, 0, -0.1 do
  47.         background.BackgroundTransparency = i
  48.         loadingLabel.TextTransparency = i
  49.         wait(0.05) -- 0.5s fade-in duration
  50.     end
  51.  
  52.     wait(2) -- Display for 2 seconds
  53.  
  54.     -- Fade out background and text
  55.     for i = 0, 1, 0.1 do
  56.         background.BackgroundTransparency = i
  57.         loadingLabel.TextTransparency = i
  58.         wait(0.05) -- 0.5s fade-out duration
  59.     end
  60.  
  61.     -- Disable particles after fade out
  62.     particleEmitter.Enabled = false
  63. end
  64.  
  65. -- Start the fade in/out effect with particles
  66. fadeInAndOut()
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement