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: Remote Function

Previous Thread :: Next Thread 
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 01:46 AM
local script:
game.Workspace.TutorialReadyAndContinue:InvokeServer(player.Name, 53)

server script:
game.Workspace.TutorialReadyAndContinue.OnServerInvoke:connect(function(name, size)
print(name, size)
end

output:

OnServerInvoke is a callback member of RemoteFunction; you can only set the callback value, get is not available


Professional script forum reviewer.
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 01:47 AM
ples halp. Remote event works but dont wanna create a million of them.


Professional script forum reviewer.
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 01:51 AM
it changed server to this

game.Workspace.TutorialReadyAndContinue.OnServerInvoke = function(name, size)
print(name, size)
end
works but doesnt print the size just my name again


Professional script forum reviewer.
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 01:57 AM
le i frogot player is already default with it xD just removed it from local script im dumb


Professional script forum reviewer.
Report Abuse
Chrofex is not online. Chrofex
Joined: 20 Aug 2015
Total Posts: 7779
17 Jul 2017 02:46 AM
Can you help me with mine?

local hi = game.Workspace.Radio.Mid.ID.Pop.Frame.Button

hi.MouseButton1Click:connect(function()
hi.Script.RemoteEvent:FireServer()
end)
Thats the first local script placed in StarterGui

Then the second in Workspace
script.RemoteEvent.OnServerEvent:connect(function()
game.Workspace.Radio.Mid.Music.SoundId = "rbxassetid://"..script.Parent.Parent.ID.Text
game.Workspace.Radio.Mid.ID.SurfaceGui.TextLabel.Text = script.Parent.Parent.ID.Text
script.Parent.Parent.Parent:Destroy()
game.Workspace.Radio.Mid.Music:Play()
end)




Vidi nox nocti vici
Report Abuse
ScripterTutorials is not online. ScripterTutorials
Joined: 01 Sep 2013
Total Posts: 284
17 Jul 2017 02:49 AM
I'm guessing you're using a SurfaceGui inside workspace, you should move it to StarterGui if you want to be able to take input from it.


-- roblox chat syst##
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 02:49 AM
I figured it out dont worry


Professional script forum reviewer.
Report Abuse
ScripterTutorials is not online. ScripterTutorials
Joined: 01 Sep 2013
Total Posts: 284
17 Jul 2017 02:50 AM
He was asking you if you could help him.


-- roblox chat syst##
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 02:51 AM
oh ok what with?


Professional script forum reviewer.
Report Abuse
ScripterTutorials is not online. ScripterTutorials
Joined: 01 Sep 2013
Total Posts: 284
17 Jul 2017 02:52 AM
He posted the script already?


-- roblox chat syst##
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 02:52 AM
put your scripts in scriptservice so eploiters can steal them if fe is on. That why your prob using it.


Professional script forum reviewer.
Report Abuse
Chrofex is not online. Chrofex
Joined: 20 Aug 2015
Total Posts: 7779
17 Jul 2017 02:52 AM
@Scripter How will I change the scripts too make the gui only visible on click


Vidi nox nocti vici
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 02:54 AM
script.RemoteEvent.OnServerEvent = function()
game.Workspace.Radio.Mid.Music.SoundId = "rbxassetid://"..script.Parent.Parent.ID.Text
game.Workspace.Radio.Mid.ID.SurfaceGui.TextLabel.Text = script.Parent.Parent.ID.Text
script.Parent.Parent.Parent:Destroy()
game.Workspace.Radio.Mid.Music:Play()
end)


it was the top line confusing don't know why its set like that.
But that should be fixed


Professional script forum reviewer.
Report Abuse
Chrofex is not online. Chrofex
Joined: 20 Aug 2015
Total Posts: 7779
17 Jul 2017 02:59 AM
tried this and still when I click the button nothing seems to happen


Vidi nox nocti vici
Report Abuse
Chrofex is not online. Chrofex
Joined: 20 Aug 2015
Total Posts: 7779
17 Jul 2017 03:00 AM
Filtering is very confusing


Vidi nox nocti vici
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 03:00 AM
what does it say in console output and on every line put print("1")
and go up one each time to see where it breaks.


Professional script forum reviewer.
Report Abuse
Chrofex is not online. Chrofex
Joined: 20 Aug 2015
Total Posts: 7779
17 Jul 2017 03:05 AM
Hi so I put print("1") and it is not printing anything at all


Vidi nox nocti vici
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 03:06 AM
what the output any errors and can you uploade the script as a model and send me it ill fix it.


Professional script forum reviewer.
Report Abuse
Chrofex is not online. Chrofex
Joined: 20 Aug 2015
Total Posts: 7779
17 Jul 2017 03:07 AM
No it is saying OnServerEvent is not a valid member of RemoteEvent


Vidi nox nocti vici
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 03:08 AM
message me the links you might wanna use an alt if possible


Professional script forum reviewer.
Report Abuse
Chrofex is not online. Chrofex
Joined: 20 Aug 2015
Total Posts: 7779
17 Jul 2017 03:09 AM
Here it is

https://www.roblox.com/library/921529277/Radio


Vidi nox nocti vici
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 03:10 AM
k got it


Professional script forum reviewer.
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 03:12 AM
first play put remote event in button but put the script in serverscriptservice because exploits can steal stuff from workspace so dont put special scripts in workspace


Professional script forum reviewer.
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 03:14 AM
and what scripts fire the remoteevent and your using a remotevent you didnt have to use top line but it helps make it better for more varibles


Professional script forum reviewer.
Report Abuse
Spiik3yViinH is online. Spiik3yViinH
Joined: 11 Oct 2014
Total Posts: 557
17 Jul 2017 03:14 AM
looking thru script dont see anything that fites the remotevent



Professional script forum reviewer.
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