I’ve been trying to get this working for around 2 days and I can’t get it working. I also checked around through here and nothing seems to work. Can someone help me? I think it’s something to do with me using A-Chassis.
Hi there. Have you tried putting a script in the seat it’s self. Like a while / if loop.
while Wait() do
if Script.parent.Occupant == "Humanoid" then
for _, v in pairs(Script.parent.Occupant.Parent:GetChildren()) do
v.Transparency = 1
end
end
end
Something along those lines I believe!
Yes, That is what I have been doing. The script didn’t work either.
Would this not work for things like R15 and Proximity Prompt seats?
Bruh just listen for seat.Changed, if the property is the occupant then use a for i, v in pairs(occupant.Parent:GetDescendants()) do loop and if the object is a base part then make it transparent, do the same when they get off but make it non transparent.
Bad practice, why would u use a loop when it can be easily achieved with events?
local character = nil
seat.Changed:GetPropertySignalChanged("Occupant"):Connect(function()
if seat.Occupant ~= nil then -- somebody is sitting
character = seat.Occupant.Parent
for i, v in pairs(character:GetDescendants()) do
if v:IsA("BasePart") then
v.Transparency = 1
end
end
else -- nobody is sitting
for i, v in pairs(character:GetDescendants()) do
if v:IsA("BasePart") then
v.Transparency = 0
end
end
character = nil
end
end
Example above
Wrote on phone so it took time sorry
To be honest, I was only trying to help
Don’t really know why, but neither of them scripts worked. I’m still completely visible when in the seat. There is also no output errors.
show me the explorer for that seat
I was having some food, sorry for the wait
Update: I got it solved! Thanks for the help.