i have a main menu and the game is first person so i want it to lock the player and change the players camera mode from classic to lock first person and after they click start it allows player movement, how do i do that?
My code:
local PlayButton = script.Parent.PlayButton
local UpdateLogButton = script.parent.UpdateLogButton
local QuitGameButton = script.Parent.QuitGameButton
local MainFrame = script.Parent
local ChangeLogFrame = script.Parent.Parent.ChangeLog
local ChangeLogButton = script.Parent.UpdateLogButton
PlayButton.MouseButton1Click:Connect(function()
MainFrame.Visible = false
end)
UpdateLogButton.MouseButton1Click:Connect(function()
ChangeLogFrame.Visible = true
end)
QuitGameButton.MouseButton1Click:Connect(function()
game.Players.LocalPlayer:Kick(“Come back later!”)
end)