Alright so, I'm trying to make it so I can spawn stuff from a folder in ReplicatedStorage to Workspace but only if it doesn't find the model I want to spawn in. I am fairly new to this scripting thing so I might have some issues. It would be spawned and despawned through a GUI TextButton. The function i'm using is called SpawnFunction. Script inside the ServerScriptStorage [Typical Script]
ReplicatedStorage = game.ReplicatedStorage
workspace = game.Workspace -- This is just extra insurance
--Made By MillerrIAm
---------------------------
--Start Script
--Main Script
if player,spawn true then
workspace:GetChildren(spawn) then
workspace:(spawn):Destroy()
else
ReplicatedStorage.Stipulation:Clone(spawn).Parent = workspace
end
Script inside the GUI Button [Local Script]
--Made By MillerrIAm
---------------------------
--Start Script
--Main Script
function onClick()
game.ReplicatedStorage.SpawnFunction:InvokeServer("SpawnMe!") --Ignore the name, that's just what i named the model.
end
script.Parent.MouseButton1Down:connect(onClick)
print("GUIButton Working")

2 comments
Bro i have a feeling u havent learned the basics from this line right here workspace:(spawn):Destroy()
I know the basics and I kind of figured that was wrong but I have no idea what else i'm suppose to do.