My holo commands aren't working, and show no errors. I would put more input into this but I have no clue why they aren't working.

game.ReplicatedStorage.HoloFunctions.OnServerEvent:connect(function()
local admins = {"IcyEvil", "Aethetics"}
local map_holder = game.ServerStorage.maps
local map = map_holder:GetChildren()
local map_names = {"gunfight", "obby1", "swordfight", "door"}

game.Players.PlayerAdded:connect(function(plr)
	for _,v in pairs(admins) do
		plr.Chatted:connect(function(msg)
	if plr.Name == v then
if string.lower(msg) == ('load '..map_names) then
	
	for _,c in pairs(map) do
	if c.Name == map_names then
	x = c:Clone()
	x.Parent = game.Workspace
	
	
	
	
	
	
	
	
	
							end
						end
					end
				end
			end)
		end	
	end)
end)

That is the main script

game.ReplicatedStorage.HoloFunctions:FireServer()

That is the LocalScript.

2 comments

0

You cant concat "load" with a map_names and expect all the map names to fill that spot. Right now it's probably waiting for the player to say something like "load 0x12345678", because its filling in the table's memory address instead.

0

How would you recommend I fix the issue then..?