Hello
I am making a script where the admins can summon maps into a work space. There seems to be only one problem. ServerScriptService.Script:105: attempt to index a nil value
Here is the code
elseif msg:lower()=="!open crown" and workspace:findFirstChild('CurrentSim') == nil then wait(1) local c = game.ReplicatedStorage:FindFirstChild("Crown"):Clone() c.Parent = game.Workspace c.Name = 'Current Sim' c:MakeJoints()
So 'currentsim' basically checks if a map is already there so the user can't generate another when one is open.
When I type out !open crown I get the error message shown before. Why does it say that? I put the maps in replicated storage and script in serverscriptservice so the maps exist.
For some reason the game thinks it doesn't exist and I am attempting to index c which is a nil value?
if not game.Workspace:FindFirstChild("CurrentSim") then