Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why won't my GUI map remover script work? Is there anything causing an error?

So I have this under StarterGui in a SurfaceGUI called End SF Map, and whenever I test it in game, the other GUI script that loads the map works, but the remover doesn't. It's here if you want to test it: https://www.roblox.com/games/347217515/Map-Building-Site[](http://)

Here is my code: ignore the spawns, the script was working before when they were in there, it was a recent change that did something

S1 = game.Workspace.Spawn1.S1
S2 = game.Workspace.Spawn1.S2
S3 = game.Workspace.Spawn1.S3
S4 = game.Workspace.Spawn2.S4
S5 = game.Workspace.Spawn2.S5
S6 = game.Workspace.Spawn2.S6
map = game.Workspace.Meadows or game.ServerStorage.Meadows
map2 = game.Workspace.SF or game.ServerStorage.SF
script.Parent.MouseButton1Down:connect(function()
map.Parent = game.ServerStorage
map2.Parent = game.ServerStorage
	S1.Enabled = true
	S2.Enabled = true
	S3.Enabled = true
	S4.Enabled = true
	S5.Enabled = true
	S6.Enabled = true
	local h = Instance.new('Hint', workspace)
	h.Text = 'Map Removed'
	wait(3)
	h:Remove()
end)

1 comment

0

Try removing the or statement, when used incorrectly, it could cause bugs

1 answer

The only thing that actually was Removed" was "h" which was a hint...

This discussion is preserved as it was. New answers, comments, and votes are closed.