Scripting a gui, don't understand error

I’ve noticed that you used the parent argument of Instance.new on the errorGui variable which is pretty bad for performance, so I suggest to remove that and refrain from doing it, also put the .Parent assignment in the last field that you assign. If you want to know why make sure to read this post.

Also if someone already solved your issue make sure to mark the person’s post as the solution! :smile: