I need help. I don't know if I do this right. I'm trying to make this script work in a text button or image button. I'm trying to make the text button disappear, but its won't disappear, so what did I do wrong? Can you guys help me check some error that I made and give me feed back? Thank You.
local plyr = script.Parent.Parent.Parent.Parent.Parent.Parent wait(3) if plyr.Status2.Points.Value >= 20 then script.Parent:remove() elseif plyr.Status2.Lvl.Value <= 19 then print("yay") end