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

No clue why this isn't working.. any help?

Asked by
IcyEvil 260 Moderation Voter
9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

I literally have no clue on why this is not working, Any reasons why/ Suggestions on how to fix it??

local admins ={"EmperorVolvax"} 
local gid = 1173040 
local gidranks = {255,105,104,103,102,101} 
local maps = {"sft", "obby", "gft"}
--Dont Mess with the Below --

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:lower():sub(0,4) == "load" then
                    for i,Map in pairs(maps) do
                        if Map:lower() == msg:lower():sub(2) then
                          x = Map:Clone()  --ChosenMap = Map
                          local h= Instance.new("Hint")--PositionInTable = i
                          h.Parent=game.Workspace
                          h.Text = "Loading Facility"..Map.Name
                          wait(2.5)
                        h:Destroy()
                        x.Parent = game.Workspace                 
                        end
                    end
                end
            end)
        end
    end
end)

0
Anything in the output? DragonOfWar900 397 — 9y
0
This is a holo script... You cant run it without being in game, you have to be able to use commands, so I can't get an output for it. IcyEvil 260 — 9y
0
You can open the in game console by F9 TopDev 0 — 9y

Answer this question