Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

Why can't I set the position of camera on my script?

Asked by 9 years ago
MainMenu = game.Players.LocalPlayer.PlayerGui.Main_Menu
MenuFrame = game.Players.LocalPlayer.PlayerGui.Main_Menu.Menu
EnterButton = game.Players.LocalPlayer.PlayerGui.Main_Menu.Menu.EnterUniButton
RBXSText = game.Players.LocalPlayer.PlayerGui.Main_Menu.Menu.Roblox_State_Un
CurrentC = game.Workspace.CurrentCamera

game.Players.LocalPlayer:WaitForChild("PlayerGui")
MainMenu:WaitForChild("Main_Menu")
MenuFrame:WaitForChild("Menu")
EnterButton:WaitForChild("Main")
RBXSText:WaitForChild("EnterUni")
CurrentC.CameraType = ("Scriptable")
CurrentC.CoordinateFrame = CFrame.new(-188.173126, -187.572937, -91.4719162, 0.939729571, 0.158438265, -0.30299449, -0, 0.886159658, 0.463380009, 0.341918647, -0.435451895, 0.83275038)

Answer this question