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 Event Issues?

Previous Thread :: Next Thread 
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 09:34 AM
I'm working on an RPG but I can't get the battle script (local script) to connect to another script that makes the game realize you aren't in a battle anymore, help?

local player = game.Players.LocalPlayer
local gui = script.Parent
local othergui = gui:WaitForChild("Other")
local inbattle = player:WaitForChild("InBattle")
local other = inbattle:WaitForChild("OtherRBLXN")
local event = inbattle:WaitForChild("RemoteEvent")
local rblxnimages = {"rbxasset://textures\\GunCursor.png","rbxasset://textures\\GunCursor.png","rbxasset://textures\\GunCursor.png"} --Changed to gun cursor so peeps don't steal images

inbattle.Changed:connect(function()
gui.Visible = inbattle.Value
event:FireServer(player,"RunAway","You ran away")
othergui.Image = rblxnimages[other.Value]
end)
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 09:35 AM
Forgot the other script:

local inbattle = script.Parent
local player = inbattle.Parent
local event = inbattle:WaitForChild("RemoteEvent")

event.OnServerEvent:connect(function()
game.Workspace.BasePlate.BrickColor = BrickColor.Random()
end)
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 09:37 AM
Bump
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 09:38 AM
Bomp
Report Abuse
DermonDarble is not online. DermonDarble
Joined: 04 Jun 2015
Total Posts: 2576
16 Aug 2015 09:39 AM
player gets automatically added as the first argument, you don't need to add it yourself.
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 09:39 AM
Bewmp
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
16 Aug 2015 09:40 AM
If you're testing via Test > Test Solo, this won't work since everything is treated as on the server.
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 09:40 AM
My problem is that the server script doesn't know that the local script is connecting to it
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 09:41 AM
on the actual game it will work?
Report Abuse
DermonDarble is not online. DermonDarble
Joined: 04 Jun 2015
Total Posts: 2576
16 Aug 2015 09:41 AM
@agent

remotes work fine in play solo
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 09:44 AM
Say Dermon, didn't I see you when I needed help with my sign script?
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 09:49 AM
doesn't work play solo or online
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 09:49 AM
bamp
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 09:50 AM
butfp
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
16 Aug 2015 09:51 AM
If your values are being created by the server, local scripts can't access it
If fe
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 09:53 AM
They aren't though
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 09:54 AM
irwtptbbut
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 09:58 AM
bumpoiwfkyao
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
16 Aug 2015 10:26 AM
"@agent
remotes work fine in play solo"

They must have updated. It doesn't make sense that they work in Solo ...
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 10:30 AM
PLZ HELP!!!!!!!
BUMP
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
16 Aug 2015 10:54 AM
The server script doesn't run at all. Scripts don't run under the player.
Also, put your RemoteEvent in ReplicatedStorage and use only one. You can already differentiate each player.
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 11:04 AM
OHHHHHHHH!!! THATS HOW I DO IT
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 11:18 AM
still doesn't work :(
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
16 Aug 2015 11:18 AM
why wouldn't remoteevents work in play solo?
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
16 Aug 2015 11:21 AM
bump still doesn't work
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