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

How do you make a script that gives a tool?

How do you make a script that gives a tool when they say the Word like F3x

1 comment

0

Well, is an item giving the tool?

2 answers

Although This is not a request site, here is the base of what you would need(this code will check for the chat said)

commands = {
    "Word" 
}


game.Players.PlayerAdded:connect(function(player)
    player.Chatted:connect(function(msg)
        for i=1, #commands do
            if msg == string.lower(string.sub(commands[i], 1, string.len(commands[i]))) then
                if game.Players:findFirstChild(string.gsub(msg, commands[i], "")) then
					--CODE
                end
            end
        end
    end)
end)

Hope this helped

It'd have to put the tool in your backpack. Something like this:

script.Parent = game.Players.LocalPlayer.BackPack

If you put that into the tool, It'd go into your backpack. Hope this helps!

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