I am attempting to make a car anti-theft so people cant steal it. I have to use a onTouched to make it work but it messes up other code parented into the seat
heres the code:
local seat = script.Parent local car = seat.Parent local carowner = seat.CarOwner function onTouched(part) if part.Name == "Left Leg" then local h = part.Parent:FindFirstChild("Humanoid") if (h ~= nil) then carowner.Value = h.Parent.Name end end end script.Parent.Touched:connect(onTouched)