generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Making a Script that does....

Previous Thread :: Next Thread 
BxdCat is not online. 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 is not online. BxdCat
Joined: 20 Jun 2013
Total Posts: 374
09 May 2017 08:24 PM
Okay*
Report Abuse
BxdCat is not online. BxdCat
Joined: 20 Jun 2013
Total Posts: 374
09 May 2017 08:27 PM
Bump1
Report Abuse
Canmanage is not online. 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 is not online. 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 is not online. BxdCat
Joined: 20 Jun 2013
Total Posts: 374
09 May 2017 08:31 PM
bump 2
Report Abuse
ahwz is not online. 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 is not online. 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 is not online. 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 is not online. BxdCat
Joined: 20 Jun 2013
Total Posts: 374
09 May 2017 08:38 PM
idk it not work
Report Abuse
BxdCat is not online. BxdCat
Joined: 20 Jun 2013
Total Posts: 374
09 May 2017 08:38 PM
k #### try
Report Abuse
BxdCat is not online. BxdCat
Joined: 20 Jun 2013
Total Posts: 374
09 May 2017 08:39 PM
Script goes in Players right?
Report Abuse
ahwz is not online. 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 is not online. BxdCat
Joined: 20 Jun 2013
Total Posts: 374
09 May 2017 08:43 PM
k
Report Abuse
Canmanage is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image