Is there a better way of sending a message from one local script to another?

image
Thanks!

1 Like

Starting by placing the if inside the event?

local Bindable: BindableEvent = script.Parent
Bindable.Event:Connect(function(msg)
	--code
end)

also, you can make a module to save data between scripts.

Okay, this works, it’ll make the code a bit shorter.

I was just wondering if the :connect(function() was necessary.

Thanks!

what if the bindable event never fired? down the line, I have a if not message then statement, that warns the player that the event never fired, and they need to retry. Thanks!

I used a bindable function instead, and I used @SOTR654’s idea of placing the if inside the event.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.