Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TweenService = game:GetService("TweenService")
- local TeleportService = game:GetService("TeleportService")
- local player = game.Players.LocalPlayer
- local EndEvent = game.ReplicatedStorage.EndEvent
- local MainGui = player.PlayerGui.ScreenGui
- local function teleportToLobby()
- TeleportService:Teleport(--[[YOURGAMEIDHERE]])
- end
- EndEvent.OnClientEvent:Connect(function()
- local goal_blur = {}
- local goal_logo = {}
- local blurEffect = Instance.new("BlurEffect", workspace.CurrentCamera)
- goal_blur.Size = 15
- goal_logo.Size = UDim2.new(0.5,0,0.5,0)
- blurEffect.Size = 0
- MainGui.End.logo.Size = UDim2.new(0,0,0,0)
- MainGui.End.Visible = true
- local tweenInfo_start = TweenInfo.new(2)
- local tweenInfo_logo = TweenInfo.new(3)
- local tween_blur = TweenService:Create(blurEffect, tweenInfo_start, goal_blur)
- local tween_logo = TweenService:Create(MainGui.End.logo, tweenInfo_logo, goal_logo)
- tween_blur:Play()
- wait(2)
- tween_logo:Play()
- wait(13)
- teleportToLobby()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement