Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why will my script not respond to an event when other scripts do?

In my workspace i have a folder called Events and in it i have a BindableEvent called CreateWorld.

I fire it in a local script and other scripts catch onto this event but this script ("A server script") wont notice the event.

workspace.Events.CreateWorld.Event:connect(function()
	print("GotEvent")
	GenerateMap()
	CreateMap()
end)

May i note that when i manually fire it in the debugger it works for this script. Also this script dose not have to wait for variables before it listens to the event, I checked.

4 comments

0

Use a RemoteEvent instead of a BindableEvent.

0

Remote events fire across server to cliant and back but i need the event to be seen by both server and client scripts an be fired by any server or client scripts.

0

I should also note that it works in studio and not in online mode.

0

Why do you need both sides to use it at the same time?

1 answer

✓ Accepted answer

Taken straight from the wiki: "please note that BindableEvents do not allows for communication between the server and client." Maybe you can make both a BindableEvent, and RemoteEvent, and use the RemoteEvent in your local script?

This discussion is preserved as it was. New answers, comments, and votes are closed.