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: [HELP] RemoteEvent Error

Previous Thread :: Next Thread 
iMung is not online. iMung
Joined: 11 Jul 2013
Total Posts: 328
04 Feb 2016 12:50 PM
Well, I have a TextButton that when you click it, it goes through a table inside a module script. Inside each table inside the module, it has variables called "TopRight", "TopLeft", "BottomRight", "BottomLeft", and "name". The script checks to see if 4 textlabels are the same value as each of the variables inside the table. If its true, it prints name, and then, it fires an event, and inside that event, it prints the argument (name) and for some reason, the prints are different. The first time it printed "Plank", the second time it printed "Player". Can someone help me to know why?
Report Abuse
BanTech is not online. BanTech
Joined: 31 Dec 2015
Total Posts: 886
04 Feb 2016 01:51 PM
First argument is the player of the client who fired the event,

remoteEvent.OnServerEvent:connect(function(player, ...)
...
end)

http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial#Passing_Argument
Report Abuse
iMung is not online. iMung
Joined: 11 Jul 2013
Total Posts: 328
04 Feb 2016 01:58 PM
So I dont fire the server like this?:

event:FireServer(player, ...) tuple args

I just say the args? and on the OnServerEvent event it will have an argument with a value of your plalyer?
Report Abuse
BanTech is not online. BanTech
Joined: 31 Dec 2015
Total Posts: 886
04 Feb 2016 03:14 PM
Precisely :)
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