local question = script.Parent.Parent
local fr2 = script.Parent.Parent.Parent.Parent.Frame2
script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Parent.Visible = false
wait(1)
local Response = math.random(5)
wait(1)
if Response == 1 then
fr2.X.Text = "You asked "..question.Text.." and it replied with Yes."
if Response == 2 then
fr2.X.Text = "You asked "..question.Text.." and it replied with No."
if Response == 3 then
fr2.X.Text = "You asked "..question.Text.." and it replied with Maybe."
if Response == 4 then
fr2.X.Text = "You asked "..question.Text.." and it replied with Probably."
if Response == 5 then
fr2.X.Text = "You asked "..question.Text.." and it replied with Probably not."
end
end
end
end
end
fr2.Visible = true
wait(5)
cd.MaxActivationDistance = 32
fr2.Visible = false
end)
No errors Local Script
