Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My Bindable Event Is Not Firing?

Asked by 2 years ago

Both of my server scripts are inside workspace but one of the scripts is not firing the event

First Script:

local this = script.Parent.Parent

local Btns = this.Buttons

local Events = this.Events
local A1 = function()
    local PassedValue = Btns.ButtonF1.Floor.Value
    Events.DoorOpen:Fire(PassedValue)
    print("Success")
end
local A2 = function()
    local PassedValue = Btns.ButtonF2.Floor.Value
    Events.DoorOpen:Fire(PassedValue)
    print("Success")
end

Btns.ButtonF1.ClickDetector.MouseClick:Connect(A1)
Btns.ButtonF2.ClickDetector.MouseClick:Connect(A2)

Second Script:

local this = script.Parent.Parent

local Btns = this.Buttons
local Doors = this.Doors

local Events = this.Events

local Settings = require(this.Scripts.LiftSettings)

local TweenService = game:GetService("TweenService")


Events.DoorOpen.Event:Connect(function(passedValue)
    print("BindableEvent Received!")
    print("Passed value is: " .. passedValue)
    print("Success | Doors")
    Activate(passedValue)
end)

MESSAGE ME IF YOU WANT THE FULL SECOND SCRIPT

0
only one script has :Fire so it makes sense other one doesn't fire it imKirda 4491 — 2y

Answer this question