For some reason nothing is printing. I’ve made plenty of debugging parts. But not a single thing was printed. This is a Local Script, this is the object structure.
local function printDebug(msg)
print("[Debug]", msg)
end
local player = game.Players.LocalPlayer
printDebug("Got local player")
local playerGui = player:WaitForChild("PlayerGui")
printDebug("Got playerGui")
local medGui = playerGui:WaitForChild("MedGUI")
printDebug("Got medGui")
local symptoms = {
"Heavy Bleeding",
"Light Bleeding",
"Major Pain",
"Light Pain"
}
script.Parent.Parent.Help.Triggered:Connect(function()
printDebug("Help trigger started")
local numIssues = math.random(1, 5)
printDebug("Generating " .. numIssues .. " issues")
local issues = medGui:WaitForChild("Issues")
issues.Visible = true
printDebug("Made issues frame visible")
for i = 1, numIssues do
local issue = issues:WaitForChild("Issue"..i)
issue.Visible = true
printDebug("Made issue " .. i .. " visible")
local symptom = symptoms[math.random(1, #symptoms)]
issue.Text = symptom
printDebug("Set issue " .. i .. " text: " .. symptom)
end
printDebug("Done showing issues UI")
end)