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.
✓ ANSWER ACCEPTED
How would I make a script when a player says something it gives them a tool? [Answered]
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!
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
thank you so much!
Your welcome!