How to fix this Error?
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
03:16:36.979 - Banlist is not a valid member of PlayerGui
The Banlist ist a ScreenGui.
thats the script placed in StarterGui:
1 | if script.Parent.Parent.Name = = "Player" then |
2 | Reason = "Name 'Player' is'nt Allowed!" |
3 | script.Parent.Banlist.Frame.Visible = true |
4 | script.Parent.Banlist.Frame.Grund.Text = "Banned, Reason: " ..Reason |
5 | script.Parent.Parent.Character:remove() |