Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Lighting = game:GetService("Lighting")
- local TweenService = game:GetService("TweenService")
- local Players = game:GetService("Players")
- local colorCorrection = Lighting:FindFirstChild("ColorCorrection")
- if not colorCorrection then
- colorCorrection = Instance.new("ColorCorrectionEffect")
- colorCorrection.Name = "ColorCorrection"
- colorCorrection.Parent = Lighting
- end
- colorCorrection.TintColor = Color3.fromRGB(128, 0, 128)
- local tweenInfo = TweenInfo.new(20, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)
- local goal = {TintColor = Color3.fromRGB(255, 255, 255)}
- local tween = TweenService:Create(colorCorrection, tweenInfo, goal)
- local player = Players.LocalPlayer
- local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- local textLabel = Instance.new("TextLabel", screenGui)
- textLabel.Text = "Zombie Drive"
- textLabel.Size = UDim2.new(0, 300, 0, 50)
- textLabel.Position = UDim2.new(0.5, -150, 0.5, 80)
- textLabel.TextColor3 = Color3.new(1, 1, 1)
- textLabel.BackgroundTransparency = 1
- textLabel.TextScaled = true
- textLabel.Font = Enum.Font.GothamBold
- textLabel.TextSize = 36
- textLabel.TextTransparency = 1
- local function fadeIn(textLabel, duration)
- textLabel.TextTransparency = 1
- local fadeInTween = TweenService:Create(textLabel, TweenInfo.new(duration), {TextTransparency = 0})
- fadeInTween:Play()
- fadeInTween.Completed:Wait()
- end
- local function fadeOut(textLabel, duration)
- local fadeOutTween = TweenService:Create(textLabel, TweenInfo.new(duration), {TextTransparency = 1})
- fadeOutTween:Play()
- fadeOutTween.Completed:Wait()
- end
- local function tweenColor(targetColor, duration)
- local startColor = textLabel.TextColor3
- local startTime = tick()
- while tick() - startTime < duration do
- local elapsed = tick() - startTime
- local alpha = elapsed / duration
- textLabel.TextColor3 = startColor:Lerp(targetColor, alpha)
- wait(0.03)
- end
- textLabel.TextColor3 = targetColor
- end
- local function startAnimation()
- fadeIn(textLabel, 2)
- wait(0.5)
- tweenColor(Color3.new(1, 1, 1), 3)
- wait(0.1)
- tweenColor(Color3.new(0.5, 0, 0.5), 2)
- wait(0.1)
- tweenColor(Color3.new(1, 1, 1), 2)
- wait(0.1)
- tweenColor(Color3.new(0.5, 0, 0.5), 3)
- wait(0.5)
- fadeOut(textLabel, 2)
- end
- tween:Play()
- wait(1)
- startAnimation()
- tween.Completed:Wait()
- wait(2)
- textLabel:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment