Hello, I am having issues with this script:
local t = script.Parent.Parent.Parent.Parent.Text
script.Parent.MouseClick:Connect(function()
if t.SurfaceGui.TextLabel.Text == workspace.ObjectiveFolder.IMPORTANTCode.Value then
print("e")
script.Parent.Parent.Correct:Play()
t.BrickColor = BrickColor.new("Lime green")
wait(0.1)
t.BrickColor = BrickColor.new("Institutional white")
wait(0.1)
t.BrickColor = BrickColor.new("Lime green")
wait(0.1)
t.BrickColor = BrickColor.new("Institutional white")
else
script.Parent.Parent.Wrong:Play() -- this always plays
end
end)
If more information is needed, please ask.
Edit: The game didn’t save the script or keypad.