Its not working
local clipboardChildren = game.Workspace.ClipBoard:GetChildren() script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid")then local human = hit.Parent:FindFirstChild("Humanoid") if human.Sit == true then print("Human Sitting") for i,object in pairs(clipboardChildren) do object.Transparency = 0 end else print("Human Not Sitting") for i,object in pairs(clipboardChildren) do object.Transparency = 1 end end end end)
Hello there! I put together this code that should work for detecting players sitting in seats
local Players = game:GetService("Player") local Player = Players.LocalPlayer local Character = Player.Character or Player.CharacterAdded:Wait() Character:WaitForChild("Humanoid").Seated:Connect(function(IsSeated, Seat) if not IsSeated or Seat.Name ~= "seat name" then --Code here end end)
Hope this helped!