This is an order-of-operations issue.
In order to evaluate game.Workspace.lalalaa == nil, you need to evaluate both the left and the right first.
nil is fine to evaluate.
But what is game.Workspace.lalalaa? Trying to access something that doesn't exist in the Workspace will cause an error.
Thus it never even gets to the point where it can compare it to nil.
Instead of using indexing on ROBLOX objects to see if children exist, use :FindFirstChild( name ) which will just return nil and make the above work:
if workspace:FindFirstChild("lalalaa") == nil then
else
end
Note that checks like == nil usually are more wordy than necessary. You could just say not workspace:FindFirstChild("lalalaa") because not nil will be true and not lalalaa (where lalalaa is the object) will be false.
2 comments
Please include the error.
added error @CreativeEnergy