Instead of cloning it to workspace how do I make it move to workspace?
admin = {"Player",}
game.Players.PlayerAdded:connect(function(nP)
for _,v in pairs(admin) do
if nP.Name == v then
nP.Chatted:connect(function(msg)
if msg == "lockgate" then
x = game.Lighting.GF:Clone()
M = Instance.new("Message")
M.Parent = game.Workspace
x.Parent = game.Workspace
wait(3)
M:Remove()
end
end)
end
end
end)
game.Players.PlayerAdded:connect(function(nP)
for _,v in pairs(admin) do
if nP.Name == v then
nP.Chatted:connect(function(msg)
if msg == "unlockgate" then
M = Instance.new("Message")
M.Parent = game.Workspace
game.Workspace.GF:Remove()
M:remove()
wait(3)
end
end)
end
end
end)

4 comments
Why are using the same event in two separate instances?
Because It works
I updated my answer.
So what if it works? That is highly confusing and inefficient and just non paradigm-like.