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

How binding tools to admin commands ?

How binding tools and to admin commands ? For example: ":give me fruit" then Tool "fruit" will be in my Backpacke.

1 answer

We can not make the script for you, however the script will use a combination of the Chatted Event, and String Manipulation.

Here's a sample code:

game.Players.PlayerAdded:connect(function(plr) --Player joined the game, now the function will handle what you want to do with the player.
	plr.Chatted:connect(function(chat) --Player said something the function will handle what to do with that too.
		if chat:sub(1,6) == ":give " then --Did the player say :give something?
			--Finish code
		end
	end)
end)

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