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: Filtering enabled experts help?

Previous Thread :: Next Thread 
kjake43607 is not online. kjake43607
Joined: 11 Apr 2011
Total Posts: 1100
06 Jun 2017 12:47 PM
Is their a way to send a value to a server through a remote event. so like a local script triggers a remote event but sends the players name?
Report Abuse
HoodedBlack is not online. HoodedBlack
Joined: 04 May 2013
Total Posts: 2226
06 Jun 2017 12:59 PM
If I'm understanding your question correctly, then it would be fairly easy


--first add the remote
x = Instance.new("RemoteEvent", game.ReplicatedStorage)
x.Name = "NameEvent"


--//Client side
local player = game.Players.LocalPlayer;

game.Players.PlayerAdded:connect(function(player)
game.ReplicatedStorage.NameEvent:FireServer(player)
end)



--//Server side
game.ReplicatedStorage.NameEvent.OnServerEvent:connect(function(player)
print(player.Name)
end)
Report Abuse
HoodedBlack is not online. HoodedBlack
Joined: 04 May 2013
Total Posts: 2226
06 Jun 2017 01:01 PM
maybe it's not the answer you're looking for, apologies if that's the case. I didn't understand the question very well
Report Abuse
kjake43607 is not online. kjake43607
Joined: 11 Apr 2011
Total Posts: 1100
06 Jun 2017 01:10 PM
No thats exactly what i wanted, thank u
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
06 Jun 2017 01:23 PM
um no
the player who fired the event is automatically included as the first argument so thats wrong
Report Abuse
HoodedBlack is not online. HoodedBlack
Joined: 04 May 2013
Total Posts: 2226
06 Jun 2017 02:49 PM
He wanted it to send the name, not have it included as an 'invisible' arg
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
06 Jun 2017 03:00 PM
yes but ur not using the player u sent
ur using the player who fired the event
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