Here's script for reference:
character = player.Character
local cam = workspace.CurrentCamera
cam.CameraType = Enum.CameraType.Scriptable
local gui = script.Parent.Parent
gui.Enabled = true
local black = script.Parent.Parent.Fade
local twinser = game:FindService("TweenService")
local twinfo = TweenInfo.new(1, Enum.EasingStyle.Exponential,Enum.EasingDirection.InOut,0,false,0)
local twinfo2 = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In,0,false,0)
local maincam = workspace:WaitForChild("MainCam")
local votecam = workspace:WaitForChild("VoteCam")
function GoVote()
twinser:Create(cam,twinfo,{CFrame = votecam.CFrame})
print("hi")
end
function GoBack()
twinser:Create(cam,twinfo,{CFrame = maincam.CFrame})
end
function Black(n)
if n then
twinser:Create(black,twinfo2,{BackgroundTransparency = 0})
else
twinser:Create(black,twinfo2,{BackgroundTransparency = 1})
end
end
local match = workspace:WaitForChild("Match").Value
cam.CFrame = maincam.CFrame
script.Parent.MouseButton1Click:Connect(function()
if match then
--wip
else
GoVote()
end
end)```