I have a local function running when objects are present in the workspace, but then gives me error even with pcall? Do I put the pcall inside the local function or outside to not get the error?
local function Spawns()
local c
c = game:GetService("RunService").RenderStepped:Connect(function()
if workspace.Model then -- doesnt exist but gives error
-- something
end
end)
end
local s, e = pcall(coroutine.wrap(Spawns)())
if not s then
print(e)
end
