#getting vaule
1 messages · Page 1 of 1 (latest)
i fixed it but now i need help im trying to make qustions but my q2 is now gonna change the the button when im dooing the q1 my things is liek this if q1 it pressed then change q1 and q2 and q3 to the ones like 1_q1_q2_2 its like this but can i make it where my q2 dosent pcik up when its all ready in like the q1 qustions do i need to do a number vuale
Yeah...
** You are now Level 1! **
From the very little I can understand after reading this a couple times, it doesn't seem like it'd be too hard a problem to solve if it was comprehensible
i did it just one problem im trying to make it where if Q = nil then it will be able to change to 1 and if not it wont be able too
just send the script
The only thing that’s doing problems is
** You are now Level 2! **
This has just brought me more confusion
So you have something like:
if Q or Q ~= nil then
Q = 1
end
?
have you tried to do a number vuale? how did that q1q2q3q4q5 go?
yes
it is kinda
that is just to set Q to what it is replyinh too
Could you provide a snippet of the code to further clarify
no send FULL code
one sec
At this point yeah ngl
q1.MouseButton1Click:Connect(function()
if not Q or Q ~= nil then
Q = 1
end
if not screenGui.Enabled then
return
end
if textsValue and textsValue.Value then
local currentDialogNum = dialogNum or tonumber(textsValue.Value)
local followupKeyq1 = tostring(currentDialogNum) .. "_q1followup_" .. tostring(followupIndex) .. "_" .. tostring(Q)
print("Button pressed. followupIndex:", followupIndex, "dialogNum:", currentDialogNum, "followupKey:", followupKeyq1,"q:", Q)
if textrandom[followupKeyq1] then
local followup = textrandom[followupKeyq1]
local displayName = player and player.DisplayName or "Player"
local finalText = string.gsub(followup, "%[player%.display%.name%]", displayName)
textLabel.Text = finalText
followupIndex = followupIndex + 1
print("Displayed follow-up text:", finalText)
print(Q)
end
end
end)
Okay how do I make it only change it when it is nil