Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

This Admin Command isn't working. Help?

So here's what I have...

char = game.Players.LocalPlayer.Character
plr = game.Players.LocalPlayer
local admins = {"DDDropTheBase"}
 
function tableContains(t, value)
    for _, v in pairs(t) do
        if v == value then 
            return true
        end
    end
    return false
end




-- Blockhead Command
if string.sub(msg,1,5) == "blockhead " then
local player = game.Players:FindFirstChild(string.sub(msg,6))
if player then
char.Head.Mesh = nil
end
end

The blockhead command doesn't work, when I say "blockhead dddropthebase" Nothing happens.

2 answers

Characters 1-5 would not contain "blockhead "

You obviously did not write this yourself, but that is the error.

2 comments

0

Could you still help me though? Plus, "blockhead " is when the person says that. With someones name.

0

It doesn't fall within the msg.sub you identified.

Could you still help me? I want it where you say "blockhead name" it makes their head a block. And I need a different Admins Table, because when I do that, all of ROBLOX's commands come up, I want my own command.

3 comments

0

Someone?

1

Hello DropTheBase. Please do not write answers on your own question, and please do write comments as answers. Actually right your comments in the comments.

0

But no body reads my comments, they just ignore them.... ;-;

This discussion is preserved as it was. New answers, comments, and votes are closed.