BxdCat
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 374 |
|
|
| 09 May 2017 08:24 PM |
Kay have you ever been to Soro's Italian restaurants? And when they serve you food they say :handto Bxdcat. for my café I'm trying to do soothing like that. its not working out well. Is there a tutorial that links into that? *kinder not exact* If you have one Just let me know and we can work it out thanks. |
|
|
| Report Abuse |
|
|
BxdCat
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 374 |
|
| |
|
BxdCat
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 374 |
|
| |
|
Canmanage
|
  |
| Joined: 03 Dec 2007 |
| Total Posts: 59 |
|
|
| 09 May 2017 08:29 PM |
| Can you be more specific for those of us who have never been to that game? |
|
|
| Report Abuse |
|
|
BxdCat
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 374 |
|
|
| 09 May 2017 08:30 PM |
| When the workers say "Handto Bxdcat" I get there item that was in there backpack and it goes into to mine... |
|
|
| Report Abuse |
|
|
BxdCat
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 374 |
|
| |
|
ahwz
|
  |
| Joined: 01 Apr 2010 |
| Total Posts: 3230 |
|
|
| 09 May 2017 08:34 PM |
obviously better ways to do each command than a list of if elseif and else statements
game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(message) local low=message:lower() if low:sub(1,8)==":handto " then --code elseif low:sub(1,3)=="yes" then --how to extend print(true) end end end
|
|
|
| Report Abuse |
|
|
BxdCat
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 374 |
|
|
| 09 May 2017 08:36 PM |
game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(message) local low=message:lower() if low:sub(1,8)==":handto " then --code elseif low:sub(1,3)=="yes" then --how to extend print(true) end end
But where is "name" |
|
|
| Report Abuse |
|
|
ahwz
|
  |
| Joined: 01 Apr 2010 |
| Total Posts: 3230 |
|
|
| 09 May 2017 08:37 PM |
game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(message) local low=message:lower() if low:sub(1,8)==":handto " then local name=low:sub(9) end end end
|
|
|
| Report Abuse |
|
|
BxdCat
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 374 |
|
| |
|
BxdCat
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 374 |
|
| |
|
BxdCat
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 374 |
|
|
| 09 May 2017 08:39 PM |
| Script goes in Players right? |
|
|
| Report Abuse |
|
|
ahwz
|
  |
| Joined: 01 Apr 2010 |
| Total Posts: 3230 |
|
|
| 09 May 2017 08:39 PM |
well I mean you gotta actually edit it further...
|
|
|
| Report Abuse |
|
|
BxdCat
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 374 |
|
| |
|
Canmanage
|
  |
| Joined: 03 Dec 2007 |
| Total Posts: 59 |
|
|
| 09 May 2017 08:46 PM |
To summarise the desired functionality: A player can transfer their equipped item from their backpack to another player's backpack by using a chat command.
It should be pretty straightforward. Use the player.Chatted event on the server to see what players are saying. Check their messages for the command phrase (in this case, ':handto') then parse out the name of the person they're handing it to and simply move the item to the given player's backpack.
|
|
|
| Report Abuse |
|
|