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; };
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.