You can write your topic however you want, but you need to answer these questions:
-
Changing the cameras position to the intro screen.
-
Camera not changing position to intro screen.
-
Yes I have looked far and wide on the developer forum, and I have not seen anything that could help with my problem.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Located in ReplicatedFirst
task.wait()
game:GetService("ReplicatedFirst"):RemoveDefaultLoadingScreen()
local camera = workspace:WaitForChild("Camera")
local ts = game:GetService("TweenService")
local ui = script:WaitForChild("MenuScreen"):Clone()
ui.Parent = game.Players.LocalPlayer.PlayerGui
script:WaitForChild("MenuScreen"):Destroy()
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace:WaitForChild("IntroScene"):WaitForChild("IntroOpen").CFrame
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
game.Players.LocalPlayer.PlayerGui:WaitForChild("Money").Enabled = false
game.Players.LocalPlayer.PlayerGui:WaitForChild("StaminaBarUI").Enabled = false
game.Players.LocalPlayer.PlayerGui:WaitForChild("HealthBarUI").Enabled = false
game.Players.LocalPlayer.PlayerGui:WaitForChild("TOPGUI").Enabled = false
game.Players.LocalPlayer.PlayerGui:WaitForChild("FollowFriend").Enabled = false
game.Players.LocalPlayer.PlayerGui:WaitForChild("barline").Enabled = false
local v = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
local black = Instance.new("Frame",v)
v.IgnoreGuiInset = true
v.DisplayOrder = 50000000
black.Size = UDim2.new(1,0,1,0)
black.BackgroundColor3 = Color3.fromRGB(0,0,0)
black.BackgroundTransparency = 0
black.Visible = true
if not game:IsLoaded() then
game.Loaded:Wait()
end
script:WaitForChild("IntroSong"):Play()
task.wait(8.5)
ts:Create(black, TweenInfo.new(0.2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut), {BackgroundColor3 = Color3.fromRGB(255,255,255)}):Play()
task.wait(0.2)
ts:Create(black, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut), {BackgroundTransparency = 1}):Play()
task.wait(1)
v:Destroy()
ui:WaitForChild("Frame"):WaitForChild("PlayButton").Activated:Connect(function()
script:WaitForChild("IntroSong"):Stop()
ui:Destroy()
camera.CameraType = Enum.CameraType.Custom
game.Players.LocalPlayer.PlayerGui:WaitForChild("Money").Enabled = true
game.Players.LocalPlayer.PlayerGui:WaitForChild("StaminaBarUI").Enabled = true
game.Players.LocalPlayer.PlayerGui:WaitForChild("HealthBarUI").Enabled = true
game.Players.LocalPlayer.PlayerGui:WaitForChild("TOPGUI").Enabled = true
game.Players.LocalPlayer.PlayerGui:WaitForChild("FollowFriend").Enabled = true
game.Players.LocalPlayer.PlayerGui:WaitForChild("barline").Enabled = true
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, true)
script:WaitForChild("Sound"):Play()
task.wait(5)
script:Destroy()
end)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.