Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My FilteringEnabled Holo commands aren't working??

Asked by
IcyEvil 260 Moderation Voter
6 years ago

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.

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. 2eggnog 981 — 6y
0
How would you recommend I fix the issue then..? IcyEvil 260 — 6y

Answer this question