Weightless when sitting in a vehicleseat

I need a script that makes your character weightless when sitting in a vehicleseat, but i need the script to be in the actual vehicleseat

You can just detect when a player sits on your seat, loop through its character’s parts and enable the property “Massless”. Then, once they leave the seat, undo that process.

1 Like

i dont know how to script tho…

1 Like

Well, I’m not going to spoon feed you. I taught you the process and you can try to do it yourself, someone will most likely just give you the script itself so don’t worry.

1 Like
local seat = script.Parent

local character = nil

seat:GetPropertyChangedSignal("Occupant"):Connect(function()
	if seat.Occupant then
		character = seat.Occupant.Parent
		for _, bodyPart in character:GetDescendants() do
			if bodyPart:IsA("BasePart") then
				bodyPart.Massless = true
			end
		end
	else
		if character then
			for _, bodyPart in character:GetDescendants() do
				if bodyPart:IsA("BasePart") then
					bodyPart.Massless = false
				end
			end
			character = nil
		end
	end
end)