For Example:
local cam = game.workspace.CurrentCamera local FocusPart = game.Workspace.FocusPart local function funct() wait(5) cam.CameraType = "Fixed" cam.Focus = FocusPart.CFrame print("Poo") end funct()
how would i put funct() into an if statements so i can do something like this:
local button = game.startergui.screengui.textbutton. if _______ (etc) then button.visible = true end
if Function() then
Lol.
Your current function does not return anything, therefore your condition will be evaluated as falsly (it won't pass)