game.ReplicatedStorage.Camera.OnClientEvent:Connect(function()
local plr = game.Players.LocalPlayer
local camera = game.Workspace.CurrentCamera
camera.CameraType = 'Scriptable'
camera.CFrame = game.Workspace.CameraTool1.CFrame
local tween = game:GetService('TweenService'):Create(camera, TweenInfo.new(6, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0), {CFrame = game.Workspace.CameraTool2.CFrame})
local tween2 = game:GetService('TweenService'):Create(camera, TweenInfo.new(6, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0), {CFrame = game.Workspace.CameraTool3.CFrame})
local tween3 = game:GetService('TweenService'):Create(camera, TweenInfo.new(6, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0), {CFrame = game.Workspace.CameraTool4.CFrame})
tween:Play()
wait(6)
tween2:Play()
wait(6)
tween3:Play()
plr.PlayerGui.LoadingGui.PlayButton.MouseButton1Down:Connect(function()
tween:Pause()
tween2:Pause()
tween3:Pause()
camera.CameraType = 'Custom'
game.StarterGui:SetCore('SendNotification', {Title = 'Game Message', Text = 'Enjoy the game :)'})
plr.PlayerGui.LoadingGui.PlayButton.Visible = false
plr.PlayerGui.LoadingGui.CreditsButton.Visible = false
plr.PlayerGui.LoadingGui.Frame.Visible = false
end)
end)
Why doesnt spawn me in the game when i press play, only after im in the process of the last tween it spawns me when i press.
