What this does is if I chat "open1" or "open2" it will clone that piece from Lighting, its clone will be in workspace and its name will be Mapper.
Edit: open1 and open2 work. Close still does not Edit 2: All works :)
-- Put this in the StarterPack!
local Player = script.Parent.Parent
function Map1(msg)
if Player.Name == "ggggyourface23" and msg == "open1" then
q = game.Lighting.Map1:clone()
q.Parent = Workspace
q.Name = Mapper
end
end
function Map2(msg)
if Player.Name == "ggggyourface23" and msg == "open2" then
m = game.Lighting.Map2:clone()
m.Parent = Workspace
m.Name = Mapper
end
end
function Close(msg)
if Player.Name == "ggggyourface23" and msg == "close" then
game.Workspace.Mapper:Remove()
end
end
script.Parent.Parent.Chatted:connect(Map1)
script.Parent.Parent.Chatted:connect(Map2)
script.Parent.Parent.Chatted:connect(Close)
There is no errors in F9 console, output or the script in general. This is all in a normal script inside starterpack

3 comments
The load map now works, but the Close will not do anything.
It appears that Map1 and Map2 will not name its Clone to Mapper
Wait simple fix, thanks!