This script is meant to make a gui come up if the answer in a text box is right or not. I have changed things around but it still does not work. No errors have came up both in the script and output, if possible please help:
Starter GUI is a child of the game and has no effect on what the player is currently visualizing. Instead, you would use a player’s PlayerGui. (Reference Link)
Instead Trying using
local PlayerGui = game.Players.LocalPlayer.PlayerGui
local answer = 1393
function Correct()
PlayerGui.Correct.Enabled = true
end
function Wrong()
PlayerGui.Wrong.Enabled = true
end
if PlayerGui.ScreenGui.TextBox.Text == tosring(answer) then
Correct()
if not answer then
Wrong()
end
end