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

How would I make a script when a player says something it gives them a tool? [Answered]

I'm doing some sort of theater, so I want Team 1 or, receptionists to say a word like "GiveTicket" to a player to give them a ticket tool.

1 answer

✓ Accepted answer

Put the tool in ReplicatedStorage, then replace the "Ticket" name with the tool name.

local MyMessage = "GiveTicket"
local tool = game.ReplicatedStorage.Ticket

game.Players.PlayerAdded:Connect(function(player)
	player.Chatted:Connect(function(msg)
		if msg == MyMessage then
			tool:Clone().Parent = player.Backpack
		end
	end)
end)

Accept the answer if it works!

2 comments

0

thank you so much!

0

Your welcome!

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