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)
-- Make sure Frame is a child of screen gui.
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.Visible = true -- You forgot to put visible. I always do that lol end end)