I scripted a play menu in my game, and I want to configure some settings with the Gui, along with the camera.
The problem is, my code doesn’t work. I feel like I’ve written this code hundreds of times, yet I have never encountered these errors.
Here is my script:
game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.All,false)
Player:WaitForChild("PlayerGui"):SetTopbarTransparency(1)
local Camera = workspace.CurrentCamera
repeat
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = workspace:FindFirstChild("CameraPart").CFrame
until
Camera.CameraType == Enum.CameraType.Scriptable
The ResetButtonCallback line errors that it is not found in the CoreScripts, while the camera script just flat out doesn’t work.
I will appreciate any suggestions. Thanks for reading!