I know this is a common question. But when I try it in studio, the TextButton works. In client however, nothing...
ap = require(script.Parent.Parent.TrelloAPI)
local Board = ap:GetBoardID("Admittance")
local List = ap:GetListID("Admitted",Board)
script.Parent.MouseButton1Click:connect(function()
if game.Players:FindFirstChild(script.Parent.Parent.Patient.Text) == nil then
script.Parent.Text = "Please enter a valid name"
wait(2)
script.Parent.Text = "Send report"
else
if script.Parent.Parent.Reason.Text == "" then
script.Parent.Text = "Please enter a valid reason"
wait(2)
script.Parent.Text = "Send report"
else
script.Parent.Text = "Submitted"
wait(5)
script.Parent.Parent.Parent.Admit.Visible = false
script.Parent.Parent.Parent.Button.Visible = true
ap:AddCard(script.Parent.Parent.Patient.Text,script.Parent.Parent.Reason.Text,List,"","top")
end
end
end)

2 comments
Is there a reason you didn't indent some things inside the if on line 7?
@Golden, cuz yolo