So i made this simple localscript for a chassis, inside its plugins folder
local FE = workspace.FilteringEnabled
local F = {}
local DriveSeat = script.Parent.Parent:WaitForChild("DriveSeat")
local car2 = DriveSeat.Parent
if car2.Body.Rogue.Engine.Crash.Disabled == true then
script.Parent.Parent.IsOn.Value = false
end
All it should do is go to body, the car, the engine mesh part, the crash script and check if its disabled and then go to A-Chassis Interface and disabled the IsOn value. but i keep getting
"Infinite yield possible on 'Players.NICULL897.PlayerGui:WaitForChild("DriveSeat")'" I've been spending the last 2 hours and a half trying to figure out why. i don't know if im missing something obvious or not

4 comments
also, check if driveSeat actually exists.
Stuff in StarterGui, automatically goes to your playergui. and everytime you die, staratergui will clone it back to playergui. Including the script that is waiting for "driveSeat" (unless the gui has ResetOnSpawn set to false)
Weird, since i looked through other plugins which had the same variable, in the same folder as me and did not get this error. btw there is nothing in starter gui
btw, a gui HAS to be in playergui, or else the player will not see the gui at all.