So I Am reposting this question because nobody answered that.
My Script won't fire the bindable event. Both of the scripts are in the workspace.
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)
function Open1()
local currentpart1 = Doors.DoorF1
local goal = {}
goal.Position = Vector3.new(-155.909, 7.399, -156.228)
goal.Size = Vector3.new(0.315, 12.794, 0.284)
local tweenInfo = TweenInfo.new(
Settings.DoorTime, -- Time the tween takes
Enum.EasingStyle.Quad, -- EasingStyle
Enum.EasingDirection.Out, -- EasingDirection
0, -- How many times you want it to repeat
false, -- Reverse
0 -- Delay
)
local Tween = TweenService:Create(currentpart1, tweenInfo, goal)
Tween:Play() -- Starts the tween
end
function Open2()
local currentpart1 = Doors.DoorF1
local goal = {}
goal.Position = Vector3.new(-155.909, 28.621, -151.738)
goal.Size = Vector3.new(0.315, 12.794, 0.284)
local tweenInfo = TweenInfo.new(
Settings.DoorTime, -- Time the tween takes
Enum.EasingStyle.Quad, -- EasingStyle
Enum.EasingDirection.Out, -- EasingDirection
0, -- How many times you want it to repeat
false, -- Reverse
0 -- Delay
)
local Tween = TweenService:Create(currentpart1, tweenInfo, goal)
Tween:Play() -- Starts the tween
end
function Activate(floor)
if floor == "Floor1" then
Open1()
print("A1")
elseif floor == "Floor2" then
Open2()
print("A2")
end

2 comments
Oh no, I mixed up Bindable Events and Remote Events... :(
I'll try.