So I am making this main menu gui with camera manipulation in it. When you tap on “Official maps” it will show the gui for all of the official maps. Then when you click on it it will disable the camera manipulation and tp you to the map. Here is my code
local plr = script.Parent.Parent.Parent.Parent.Parent
local char = plr.Character
script.Parent.MouseButton1Click:Connect(function()
print("Tp to neon revelation")
char.HumanoidRootPart.CFrame = workspace.Checkpoint1.CFrame
game.StarterPlayer.StarterCharacterScripts.camera.Disabled = true
end)
it does not work, and I get Character isn’t part of player. Please help.
In the main menu, your camera would be scriptable and probably moving around or stationery in one place. Set it back to custom so it’s back to the player’s camera when you teleport them.