----///Functions///


function HideChar(char,val)
	for _,v in pairs(char:GetDescendants()) do
		if v:IsA("Part") or v:IsA("MeshPart") then
			if v.Name ~= "HumanoidRootPart" then
				v.Transparency = val
			end
		end
	end
end

VehicleRemotes.LeaveSeat.OnServerEvent:Connect(function(plr) ---Leave seat remote
	if plr.Character.Humanoid.SeatPart ~= nil then
		local VehChair = plr.Character.Humanoid.SeatPart
		VehChair.Disabled = true
	end
end)

VehicleRemotes.EnterSeat.OnServerEvent:Connect(function(plr) ---Enter seat remote
	print("Entered")
	--HideChar(plr.Character,1)
	--plr.Character.Humanoid.JumpPower = 0
end)
