I'm not sure what to do but all I know that the script isn't functioning properly because the word Criminals isn't working on line 12 with the rest of the script, do I need to put something before or after?
Here is the GUI lay out>
Team Change(THE GUI), CameraHandler (Current script) TeamChanger (ANOTHER SCRIPT), Frame, and with Criminals and Police under it.
local Player=game.Players.LocalPlayer
local Char=Player.Character or Player.CharacterAdded:Wait()
local camera=workspace.CurrentCamera
game.StarterGui["Team Change"].frame.Criminals = script.Child.Criminals
wait(0.1)
camera.CameraType=Enum.CameraType.Scriptable
camera.CFrame=workspace.Cam.CFrame
Criminals.MouseButton1Click:Connect(function()
camera.CameraType = 'Custom'
end)

1 comment
Have you defined what criminals is?