Hello! How are you today? I'm having a little issue. I want this script to make dialog appear when a part is clicked. Then after the dialog vanishes, you earn the badge. I believe I have the badge part done. Now I need the dialog part. I'm not a very advanced scripter, I'm still learning. Here's the script.
local badgeID = 498801288
local badgeService = game:GetService("BadgeService")
function onClicked(playerWhoClicked)
wait(4)
badgeService:AwardBadge(playerWhoClicked.userId, badgeID)
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

1 comment
Sorry if I confused you, but I meant dialog as in the thing that appears when you click the question mark or exclamation point.