iOSdeveloper

Untitled

Jan 31st, 2025
10,099
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. local Lighting = game:GetService("Lighting")
  2. local TweenService = game:GetService("TweenService")
  3. local Players = game:GetService("Players")
  4.  
  5. local colorCorrection = Lighting:FindFirstChild("ColorCorrection")
  6. if not colorCorrection then
  7. colorCorrection = Instance.new("ColorCorrectionEffect")
  8. colorCorrection.Name = "ColorCorrection"
  9. colorCorrection.Parent = Lighting
  10. end
  11.  
  12. colorCorrection.TintColor = Color3.fromRGB(128, 0, 128)
  13.  
  14. local tweenInfo = TweenInfo.new(20, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)
  15. local goal = {TintColor = Color3.fromRGB(255, 255, 255)}
  16. local tween = TweenService:Create(colorCorrection, tweenInfo, goal)
  17.  
  18. local player = Players.LocalPlayer
  19. local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  20. local textLabel = Instance.new("TextLabel", screenGui)
  21.  
  22. textLabel.Text = "Zombie Drive"
  23. textLabel.Size = UDim2.new(0, 300, 0, 50)
  24. textLabel.Position = UDim2.new(0.5, -150, 0.5, 80)
  25. textLabel.TextColor3 = Color3.new(1, 1, 1)
  26. textLabel.BackgroundTransparency = 1
  27. textLabel.TextScaled = true
  28. textLabel.Font = Enum.Font.GothamBold
  29. textLabel.TextSize = 36
  30. textLabel.TextTransparency = 1
  31.  
  32. local function fadeIn(textLabel, duration)
  33. textLabel.TextTransparency = 1
  34. local fadeInTween = TweenService:Create(textLabel, TweenInfo.new(duration), {TextTransparency = 0})
  35. fadeInTween:Play()
  36. fadeInTween.Completed:Wait()
  37. end
  38.  
  39. local function fadeOut(textLabel, duration)
  40. local fadeOutTween = TweenService:Create(textLabel, TweenInfo.new(duration), {TextTransparency = 1})
  41. fadeOutTween:Play()
  42. fadeOutTween.Completed:Wait()
  43. end
  44.  
  45. local function tweenColor(targetColor, duration)
  46. local startColor = textLabel.TextColor3
  47. local startTime = tick()
  48.  
  49. while tick() - startTime < duration do
  50. local elapsed = tick() - startTime
  51. local alpha = elapsed / duration
  52. textLabel.TextColor3 = startColor:Lerp(targetColor, alpha)
  53. wait(0.03)
  54. end
  55.  
  56. textLabel.TextColor3 = targetColor
  57. end
  58.  
  59. local function startAnimation()
  60. fadeIn(textLabel, 2)
  61. wait(0.5)
  62.  
  63. tweenColor(Color3.new(1, 1, 1), 3)
  64. wait(0.1)
  65. tweenColor(Color3.new(0.5, 0, 0.5), 2)
  66. wait(0.1)
  67. tweenColor(Color3.new(1, 1, 1), 2)
  68. wait(0.1)
  69. tweenColor(Color3.new(0.5, 0, 0.5), 3)
  70.  
  71. wait(0.5)
  72. fadeOut(textLabel, 2)
  73. end
  74.  
  75. tween:Play()
  76. wait(1)
  77. startAnimation()
  78. tween.Completed:Wait()
  79. wait(2)
  80. textLabel:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment