So i want to make a script that detect if someone says something on chat but i found Frame is not a valid member of ScreenGui on Output
this is my script:
local passWord = "no" -- Set password
local LocalPlayer = game:GetService("Players").LocalPlayer
LocalPlayer.Chatted:Connect(function(msg, player)
if msg == passWord then
game.Players.LocalPlayer.PlayerGui.WOW.Frame = true
end
end)
####Re-edited by JC

5 comments
Are you doing it on a LocalScript?
This causes an error because 'Frame' is not a child of 'ScreenGui'
Make sure to use a code block since it makes it easier to read code
Also at the end where it says game.Players.LocalPlayer.PlayerGui.WOW.Frame = true. Frame = true? that doesn't make sense. are you trying to make it visible? just do Frame.Visible = true
k thanks its works now :)