So between the If and Then statements I want something like "If MapContents is in workspace then" and "If MapContentsSmooth is in workspace then" but im not sure how to write that
wait(1)
function onClick()
script.Parent.Sound:Play()
wait(.1)
if then
game.Workspace.MapContents:Destroy()
game.Lighting.MapContentsSmooth:clone().Parent = game.Workspace
else
if then
game.Workspace.MapContentsSmooth:Destroy()
game.Lighting.MapContents:clone().Parent = game.Workspace
end
end
end
script.Parent.ClickDetector.MouseClick:connect(onClick)

5 comments
Waht is it in Lighting? Place in server storage instead
Why serverstorage instead of lighting?
You can choose any however server storage is recommended. Lighting was frequently used way back in 2008 where there was no storage.
Because server storage is indebted for storage, whilst lighting is not. Is it LightingStorage or lighting? ServerStorage. Storage
This is not 2008.