My script is supposed to make something visible when the player clicks [a textbutton] if the IntValue called score is above 5. However, it won't work!
Here was my output error, but I'm not sure how to interpret what it said:
Players.Player.PlayerGui.Exam.Main.EndScreen.Results.LocalScript:8: attempt to compare number with userdata
local plr = game.Players.LocalPlayer
local Character = plr.Character
script.Parent.MouseButton1Click:connect(function(plr)
script.Parent.Parent.Results.Visible = false
script.Parent.Parent.Question.Visible = false
wait(3)
local value = Character.Score
if value >= 5 then
script.Parent.Parent.Parent.Pass.Visible = true
end
end)
I would greatly appreciate it if someone would help me! Thanks!

2 comments
Is score a number value or an int value? if so, then it has to be one line 8: if value.Value >= then
Thanks!