local b = script.Parent
local guess = b.Parent.Guess
local nums = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
local num = nums[math.random(1, #nums)]
b.MouseButton1Click:connect(function()
if guess.Text == num then
print("yay")
end
end)
print(num)
The problem is, this doesn't print "yay" when i enter the correct bumber, why is this?

2 comments
please put your code in a code block
done