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.
Put the tool in ReplicatedStorage, then replace the "Ticket" name with the tool name.
01 | local MyMessage = "GiveTicket" |
02 | local tool = game.ReplicatedStorage.Ticket |
03 |
04 | game.Players.PlayerAdded:Connect( function (player) |
05 | player.Chatted:Connect( function (msg) |
06 | if msg = = MyMessage then |
07 | tool:Clone().Parent = player.Backpack |
08 | end |
09 | end ) |
10 | end ) |
Accept the answer if it works!