Well.. I Am Making this lift script and made a separate script where it just checks if a button is activated. The Thing is that my error doesn't show which line it is so I am having a problem what to do. Here is my code.
local this = script.Parent.Parent local Btns = this.Buttons local Events = this.Events function A1() Events.DoorOpen:Fire(Btns.ButtonF1.Floor.Value) print("Success") end function A2() Events.DoorOpen:Fire(Btns.ButtonF2.Floor.Value) print("Success") end Btns.ButtonF1.ClickDetector.MouseClick:Connect(A1) Btns.ButtonF2.ClickDetector.MouseClick:Connect(A2)
Thanks For Reading.