DarkPixlz
(Pixlz)
February 16, 2022, 9:31pm
#1
Hi!
I have a BindableEvent, but it’s not firing from a module script.
Code in module:
local succ1, err2 = pcall(function() Loader.Completed:Fire() end)
if not succ1 then Print(err2) return else print(succ1) end
Code in Client:
PS.Completed.Event:Connect(function()
print("Completed!")
script.Parent.DefaultUI:Destroy()
end)
It’s only printing true from the pcall.
Thanks for any help!
1 Like
Fire is correct for bindableevents, FireServer is used for remoteevents in client
Alexplazz
(SetAsync)
February 16, 2022, 10:06pm
#4
Mb I assumed it was a RemoteEvent didn’t see the .Event
.
2 Likes
Also I don’t believe bindableevents are for clients, I believe it’s designed for servers.
DarkPixlz
(Pixlz)
February 16, 2022, 10:08pm
#6
So what could I use in this case?
I personally don’t know, maybe values and connect a GetPropertyOnChangedSignal on it, there might be a better way but I really have no idea
1 Like
Forummer
(Forummer)
February 16, 2022, 10:30pm
#8
BindableEvents/BindableFunctions can facilitate communication between local scripts, I believe the main issue here is that “:Fire()” is called from one local script before the “.Event” event is listened for in some other local script.
DarkPixlz
(Pixlz)
February 16, 2022, 10:52pm
#9
No, I have the .Event after calling the module function.