Im trying to make a holo script, which im making very good progress with, but I cant figure out how to check how to see if a user called a certain map name...
Here is the script.
local admins ={"EmperorVolvax"}
local gid = 1173040
local gidranks = {255,105,104,103,102,101}
local maps = {"sft", "obby", "sft"} -- Map names
--Dont Mess with the Below --
local mapsParent = maps.Parent == game.ServerStorage -- Not sure if this is needed or not..
function contains(list, element)
for _, value in pairs(list) do
if value == element then
return true
end
end
end
game.Players.PlayerAdded:connect(function(Player)
if contains(gidranks, Player:GetRankInGroup(gid)) then
for _,v in pairs(admins) do
Player.Chatted:connect(function(msg)
if msg == "load"..maps then -- Trouble point
end
end)
end
end
end)

1 comment
I had not even thought about using those in Holo scripts, that is amazing help thanks!