Roblox studio says BanGUI is not a valid member but there's an else? [solved]
Asked by
4 years ago Edited 4 years ago
Whenever I run the script, I keep getting this error:
1 | 15 : 49 : 13.197 - BanGUI is not a valid member of PlayerGui "Players.AbsurdAwesome101.PlayerGui" |
This is the code:
1 | script.Parent.Equipped:Connect( function () |
2 | if lp.PlayerGui.BanGUI ~ = nil then |
3 | local gui = lp.PlayerGui.BanGUI |
4 | local frames = gui:GetChildren() |
7 | script.Parent.BanGUI:Clone().Parent = lp.PlayerGui |
this is inside a local script inside a tool.
Legit no reason to be giving me errors, so whats wrong????