Okay, I know the answer is probably obvious to most, but I looked everywhere and couldn’t find what I was looking for.
I am trying to make a play, credits, donate screen when you first join the game, however the screen starts every time you die.
This is the script inside the play button:
local cam = game.Workspace.Camera
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Enabled = false
cam.CameraType = Enum.CameraType.Custom
end)
This is the script inside of starterGui:
local cam = game.Workspace.Camera
wait(0.1)
cam.CameraType = Enum.CameraType.Scriptable
cam.CFrame = game.Workspace.joincam.CFrame
And in case you need it, this is the script inside the credits button:
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.creditsframe.Visible = true
end)
Thanks for any help! (The camera also goes to the part every time you die too!)