I want to make sure all my scripting is right. I am trying to make this so if the max players are online spawn the becon but if they are not delete it.
if game.Players.MaxPlayers:connect(function(player) == true do
local c = game.ServerStorage.Becon:Clone()
c.Parent = game.Workspace
c.Position = Vector3.new(42,0.5,-25)
end)
else
end
if game.workspace.Becon do
if game.Players.MaxPlayers:connect(function(player) ~= do
game.workspace.Becon:Destroy()
end
end
