Hello, I am trying to make a GUI appear when the Localplayer is sitting down. I currently have the Localscript placed in the frame of the GUI. So I am trying to make it so when it detects that the player is sitting down it will make the frame visible. I've tried writing a script that does this but doesn't seem to work. it doesn't even display any errors it just doesn't work.
Here is the script
wait(3)
local w = game.Players.LocalPlayer.Character.Humanoid
local d = game.Players.LocalPlayer.PlayerGui.work.Frame
---------------------------------------------
if w.Sit == true then
d = true
elseif w.Sit == false then
d.Visible = false
end
Can anyone help
