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 » Scripting Helpers
Home Search
 

Re: Trying to send 2 values through :ServerInvoke()

Previous Thread :: Next Thread 
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 01:05 PM
-- Server Script
muteSend.OnServerInvoke = function(player, isMuted)
DataStore:SetAsync(player.userId, isMuted)
end
-- local script
line 53 - function save()
line 54 - song:Stop() song.Volume = 0 song:Destroy()
line 55 - muteSend:InvokeServer(lPlr, isMuted)
line 56 - end
-----
isMuted isn't nil, and the functions connect fine, but it says isMuted can't be stored through the LocalScript's output. Line 55.
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 01:18 PM
Bumper cars
Report Abuse
NewhallDistrict is not online. NewhallDistrict
Joined: 02 Sep 2014
Total Posts: 308
14 Sep 2014 01:19 PM
Same problem but with a table
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 01:22 PM
How do I fix it?
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 01:30 PM
Mickey Mouse Bumpercars 1337
o.e
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 01:39 PM
h4lpPl0x
Report Abuse
L0cky2013 is not online. L0cky2013
Joined: 30 Jul 2012
Total Posts: 1446
14 Sep 2014 01:48 PM
muteSend:InvokeServer(isMuted)
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 01:52 PM
Still isn't working.
ServerScript line 6 - Argument 2 missing or nil
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 01:55 PM
This script is total donk :I
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 02:04 PM
bump it up
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 02:06 PM
HEEELLPP D:::
I've been working on this script forever, I just wanna be done with it!
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 02:09 PM
bump69
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 02:14 PM
dat regular bump
I'm not letting this script die until I get an answer...
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 02:44 PM
bump'd
Report Abuse
L0cky2013 is not online. L0cky2013
Joined: 30 Jul 2012
Total Posts: 1446
14 Sep 2014 03:35 PM
Post the full script.
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 03:36 PM
You don't need the full script.
Report Abuse
L0cky2013 is not online. L0cky2013
Joined: 30 Jul 2012
Total Posts: 1446
14 Sep 2014 03:39 PM
Yes I do. You just don't know what you are doing. The player argument is automatically passed when invoking the server from a localscript.
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
14 Sep 2014 03:41 PM
Does player get passed through it correctly?
-- in some instances you've messed up
Do you have any global variables that should be in local scope?
-- this may interfear with variables
Song:Destroy()
-- you don't need to change anything if youre getting rid of it
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 03:46 PM
I'm having errors with the server script, it's not getting the isMuted value, and I do have to change the song's properties, because they're very glitchy.
Report Abuse
L0cky2013 is not online. L0cky2013
Joined: 30 Jul 2012
Total Posts: 1446
14 Sep 2014 03:49 PM
This is exactly where I need to know what isMuted is.
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
14 Sep 2014 05:55 PM
isMuted = false,
gets changed to true @clientInvoke atm,
in the future it will be changed to if the song's muted or not.
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
15 Sep 2014 06:46 AM
Bump
Report Abuse
NewhallDistrict is not online. NewhallDistrict
Joined: 02 Sep 2014
Total Posts: 308
15 Sep 2014 07:27 AM
bump same problem


also are you trying to send a local data to server

Or other way around
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
15 Sep 2014 03:17 PM
local data to server
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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