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

Can I please have help with HD custom commands?

Asked by 4 years ago

I am trying to make a command with HD admin, I tried a server sided and a local sided version. Neither worker. I am trying to make it so when someone says the command, it will change a GUI to say "Your server is being hosted by" then (player stated/ args[1]). When I tried it local sided, the command didn't show up in the command list. When I tried it server sided, there was no function. Could you help please? I am using the client module, but there is the server part. (Here is the server sided part.)

{
    Name = "host";
    Aliases = {'ho'};
    Prefixes = {settings.Prefix};
    Rank = 4;
    RankLock = false;
    Loopable = false;
    Tags = {'nonAbusive'};
    Description = "Host a server!";
    Contributors = {};
    --
    Args = {'Player'};
    ClientCommand = true;
    FireAllClients = true;
    BlockWhenPunished = true;
    Function = function(speaker, args)

    end;
    UnFunction = function(speaker, args)

    end;
    --
    };

(This is the function in the client module.)

["host"] = {
        Function = function(speaker, args)
            local player = args[1]
            game.StarterGui.Hostgui.TextLabel.Text = {'There is a fashion runway being hosted by:'.. player}
        end;
        };
0
use a remotefunction moo1210 587 — 4y
0
I am a horrible scripter, how exactly would you go about this? I tries watching a youtube video but it didn't work, and i was very confused. maxximusking890 5 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

Maybe try this - ~~~~~~~~~~~~~~~~~

["host"] = { Function = function(speaker, args) local player = args[1] game.StarterGui.Hostgui.TextLabel.Text = "There is a fashion runway being hosted by:".. player end ~~~~~~~~~~~~~~~~~

Not tested may error.

0
Thanks for the suggestion, about to try. maxximusking890 5 — 4y
0
Just tried it. Unfortunately it didn't work, thanks anyways. maxximusking890 5 — 4y
Ad

Answer this question