I am putting a "Riddle Code" into my place. Basically, if the user puts the right code in the txt box and presses ENTER, and they haven't placed the code before, they get 200 points.
function onClicked(player)
local player = game.Players.LocalPlayer
if script.Parent.Parent.TextBox.Text == "bloxvortex" then
if player.riddlecodetrue == 0 then
player.leaderstats.Points.Value = player.leaderstats.Points.Value + 200
script.Parent.Parent.TextBox.Text = "The Answer was Correct! +200 Points!"
player.riddlecodetrue = 1
end
else
script.Parent.Parent.TextBox.Text = "The Answer was Already Entered."
end
end
script.Parent.MouseButton1Click:connect(onClicked)

7 comments
What's the error?
when I put in the answer, nothing happens.
Check the output and see if there is a error.
There is no error in output. It does say " 21:37:57.501 - This function is not yet enabled!" but that has nothing to do with my script.
And yes, its a localscript.
That's from an admin script.
?