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

Can I please have help with HD custom commands?

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

2 comments

0

use a remotefunction

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.

1 answer

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.

2 comments

0

Thanks for the suggestion, about to try.

0

Just tried it. Unfortunately it didn't work, thanks anyways.

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