Basically, this script makes the player invisible when the seat is sat on. It checks if someone is sitting on it, gets all their hats and limbs and makes those invisible. It works in play solo, but it does not work in the test server. Why?
local Player = game.Players.LocalPlayer
local Seat = script.Parent
Seat.Changed:connect(function(property)
if property == "Occupant" then
for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
if v:IsA("BasePart")then
v.Transparency = 1
end
if v:IsA("Hat") then
local Hat = v:FindFirstChild("Handle")
Hat.Transparency = 1
end
end
end
end)

2 comments
Scripts can't access Local Player.
Server Scripts can't access LocalPlayer* And LocalScripts do not work in Workspace.