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

attempt to call a string value?

Asked by 2 years ago

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.

0
If it doesn't show the line, click on it. If can't even during playing, it's a plugin error. AProgrammR 398 — 2y
0
No, I Noticed That It said the line after the error so it's not a plugin error. I click the error to find out which line is the problem. Brioche_Noodle 45 — 2y

Answer this question